NI LabVIEW,CVI,数据采集等产品讨论区

取消
显示结果 
搜索替代 
您的意思是: 

how to generate 3 different waveform on 3 chanels Simultaneously(请教一下如何把文件中的数据,在3通道中用waveform同步输出 )

Dear all

I'm a new user of labview. I want to generate 3 different waveform from the file on 3 chanels Simultaneously. Referring to the examples in the labview(there are only examples of single channel in my version),I wrote the file below(multi-AO.vi).But an erro dialog message(the specified resource is reversed.)  show up when running it.

my email: tyututy@126.com

waiting for your reply,thank you

 

我是一个新手,现在想把文件中的数据在3通道中用waveform同步输出

参照labview中的例子,写了下面的程序(multi-AO.vi),运行时出错(错误对话框显示:the specified resource is reversed.)

请教高人指点一下

我的邮箱:tyututy@126.com

0 项奖励
1 条消息(共 6 条)
4,543 次查看
为什么channel x, channel y 和 channel z都是Dev1/ao0:1? 这样肯定出错的。建议你先找个例子程序看看吧。
0 项奖励
2 条消息(共 6 条)
4,541 次查看

谢谢 pine

 

不好意思,忘了说明,physical I/O要分别选择Dev1/ao0  Dev1/ao1  Dev1/ao2

我的labview中,没有多通道的例子 

0 项奖励
3 条消息(共 6 条)
4,534 次查看

addition:

the parameter need to be set

the physical I/O of channel x: dev1/ao0 

the physical I/O of channel y: dev1/ao1 

the physical I/O of channel z: dev1/ao2

 

the structure of the data file is

 x1 y1 z1

 x2 y2 z2

 x3 y3 z3

...

 

 

 

补充:

文件里的参数需要设定一下

三个通道的physical i/o 需要在框图中分别选择为dev1/ao0 dev1/ao1 dev1/ao2

 

数据文件的结构为:

 x1 y1 z1

 x2 y2 z2

 x3 y3 z3

...

0 项奖励
4 条消息(共 6 条)
4,530 次查看

也可以设置输出通道为 Dev1/ao0:2, 这意味着Dev1/ao0为x信号,Dev1/ao1为y信号,Dev1/ao2为z信号,再把x,y,z三组信号合并成一个数组作为输出信号。这样你就只需要一个while循环了,而且不用做额外的同步处理。

0 项奖励
5 条消息(共 6 条)
4,520 次查看

谢谢pine

问题按你说的方法解决了

 

0 项奖励
6 条消息(共 6 条)
4,511 次查看