波形输 出 问 题
我 想 输 出 模 拟 方 波 。 用 for 循 环 产 生 数 组 给 AO write.vi, 或 用 square wave.vi直 接 产 生 方 波 给 AO write.vi, 但 是 有 错 误 , 提 示 如 下 :You have connected a scalar (non-array) data type to an array of the same data type. This type conflict may be resolved by building the scalar type into an array. Check for a tunnel on a loop that has indexing incorrectly disabled.
The type of the source is Waveform(DBL).
The type of the sink is 1-D array of Waveform(DBL).
或 者
You have connected an array data type to its element data type. This type conflict may be resolved by indexing the array to access individual elements of the array. Check for a tunnel on a loop that has indexing incorrectly enabled.
The type of the source is 1-D array of double .
The type of the sink is 1-D array of Waveform(DBL).
也 就 是 说 AO write.vi需 要 的 是 1-D array of Waveform(DBL), 那 怎 么 样 才 能 产 生 这 样 的 数 据 呢 ? signal gerator.vi就不用变化了。
信号发生器或者函数发生器,一般情况下,采用expressvi即可。
页:
[1]