LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Independent operation of analogue outputs

I am using a PCI-MIO-16E-1 to generate analogue outputs.
The aim is to use generate a sine wave on one channel and fixed levels (DC) on the other.
I have no problem getting the correct operation individualy, however if I have the sinewave operating on channel "1" using AOGenerateWaveforms() and then I issue the call AOUpdateChannel(MIO,"0",3.0); to set a level on channel "0" the output of channel "1" is turned off.

Has anyone successfully controlled both outputs simultaneously? Are there any secrets?
0 Kudos
Message 1 of 3
(3,026 Views)
Hello NeilQ,
The particular functions you are calling are high-level "Easy IO" functions. For the most part, these functions clear and initialize the DAQ resource, configure it, and then set or read values as specified. AOUpdateChannel() happens to reset all analog output channels. Setting one channel to output a pattern and another to output a steady voltage is simple from a single thread, but for multi-threaded control of independent output channels, I would recommend posting in our Measurement Devices >> Multifunction IO group at (http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=8&RFORMNUMBER=2&RHIDETAG=TRUE&UCATEGORY_0=_30&UCATEGORY_S=0). If you post a detailed explanation of what you are trying to do, they should be able to tell you if it is pos
sible, and if so, explain how to do it (most likely through the use of low-level Data Acquisition calls).

Jeremiah Cox
Applications Engineer
National Instruments
http://www.ni.com/ask
0 Kudos
Message 2 of 3
(3,026 Views)
Jeremiah,
Maybe the function should be named AOResetAllChannelsUpdateOne(); It seems a little missleading as it is. I will follow your advice thanks.
0 Kudos
Message 3 of 3
(3,026 Views)