LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I access to output buffer

Hello

I've got the following problem:
My application does simultaneous analogue input and output.
I'm reading Data from a file (example: 30000 values for 30 seconds with 1000 Hz)and send it with AO-Start/AO-Write to my Output. At the same time I'm reading the response. Now I want to create a control loop but I don't know how to access to/rewrite my output-buffer-array.
Is there any possibility to "update" my outputbuffer at the same time when AO-Write is sending it to the output?

Thank you
0 Kudos
Message 1 of 2
(2,574 Views)
Surely there is a way.
You have to disable the buffer regeneration option and continuously write new data to your output buffer. Actually it works exacly like a double buffered analog input operation - just the other way round.

If you are using daqmx, have a look at the example "Cont Gen Voltage Wfm-Int Clk-Non Regeneration.vi" which should have been installed by the driver. The traditional API is shipped with an example called "continuous generation.vi" to show the concept.
Ingo Schumacher
Systems Engineering Manager CEERNational Instruments Germany
0 Kudos
Message 2 of 2
(2,558 Views)