LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

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().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

 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

...

 

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

参照labview中的例子,写了下面的程序,可是出错(错误对话框显示:the specified resource is reversed.)

请教高人指点一下

我的邮箱:tyututy@126.com


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

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

 

数据文件的结构为:

 x1 y1 z1

 x2 y2 z2

 x3 y3 z3

...

0 Kudos
Message 1 of 4
(3,149 Views)

您好,

 

在一个VI里不能对I/O设备同时调用多个DAQmx读写操作。您可以把三个任务分别写到三个SubVI中,或者把三个任务集成成一个任务。

Regards
MY
0 Kudos
Message 2 of 4
(3,140 Views)

Hi KECHE,

 

here is an example written in LabVIEW 8.6.1. I have used a simulated I/O card just to see if the program can run successfully. You should check your program and adjust where to make necessary changes.

 

Hope it can help you.

Regards
MY
0 Kudos
Message 3 of 4
(3,133 Views)

 

Thank MY NI for your help.

I merged the three tasks into one, and it work out.

 

谢谢MY NI 的帮助

通过合并三个任务为一个,我的问题解决了 

 

0 Kudos
Message 4 of 4
(3,117 Views)