Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

How to generate analog output simultaneously in multi physical channels in defined time by NI 6703

Dear All,
I want to generate analog volatge output in multi phyiscal channels of NI 6703 simultaneously in the given time. For example Make channel ao1,ao2,ao3 generate analog volatge 3V,5V,10V respectively simultaneously, and keep the volatage output in 30 seconds,40 seconds and 50 seconds respectively. After the given time is reached, make the output of the voltage back to its default value. Would you tell me how to make the program?

Thanks in advance^_^
0 Kudos
Message 1 of 7
(3,864 Views)
Single point generation is the best way to go in your particular case
 
You could use a 'Multiple channel-single sample'  instance of DAQmx Write to write 3 different voltages on 3 channels
After which, program a wait for 30 seconds>> update the voltage on the channel you wish,  and so on
 
Hope this helps,
 
Regards,
Dev
 
 

Message Edited by devchander on 04-10-2007 02:27 AM

Message 2 of 7
(3,857 Views)
Thank you Devchander. But I still don't know how to realize time control to make different physical channel generate analog voltage output in different period of time.
0 Kudos
Message 3 of 7
(3,842 Views)
I think the different AO channel should output the signal in the same period of time, you can do is just output different values. For example: 0-10S 10-20S 20-30S AO1 1 0 0 AO2 1 1 0 AO3 1 1 1 The three channels ouput signals during the 30s. But the value are different. It looks like the AO1 works 10s, AO2 works 20s, and AO3 works 30s.
0 Kudos
Message 4 of 7
(3,833 Views)

simplest method would be to put them in a sequence structure and use a 'Wait(mS)' function found in Functions>>timing palette to wait for specified time between each AO update sequence

Look at attached pic

Ofcourse, the more elegant and more controllable would be a state machine architecture

Hope this helps

Message Edited by devchander on 04-12-2007 03:58 AM

Message Edited by devchander on 04-12-2007 03:58 AM

Message 5 of 7
(3,833 Views)