Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Delayed Analog Output transistion

There is a 2+ second delay between making a voltage change at at the AOWRite.vi inputs and the voltage changing on my PCI-MIO-16E board. This is on a very simple test program. When the code is transfered into a larger application I see delays over 24 seconds.
I am generating a zero frequency waveform, Sampling info: Fs:=1000; #s:=100. I am using the AOConfig, AOStart,AOWrite implemetation for AO; BufferSize:=100 UpdateRate:= 1000.
What is the best way to allow the user to control the AO via a panel control and allow very fast response on the board?
0 Kudos
Message 1 of 2
(2,474 Views)
Brian,

Make sure this is the only task that is running at the moment of running the VI. Maybe another task is consuming lots of processor resources.

I saw your VI, and you are changing the waveform signal on the fly, but inside the while loop. I am attaching an example program which can give an idea of how to change on the fly the values of the user.

Finally, the best way to allow the user to control the AO is to make a buffered output.

Hope this helps.

L Aguila
Applications Engineer
National Instruments
0 Kudos
Message 2 of 2
(2,474 Views)