07-14-2016 08:06 AM
Hello,
as in the topic I would like to implement a ring buffer. I have a analog/digital card and would like to generate a signal on the analog outputs. Now I have two arrays and begin to fill one of them. When the array is full I would like to send it to the analog output. In the meantime the second array should get filled up.
This process reapeats until the end condition is reached.
I do not know if that is possible with Lab Windows and the USB. PCI Express 6364?
Do somebody has a example code for such a task?
Best Regards
Solved! Go to Solution.
07-15-2016 06:59 AM
Hi,
in general this is not a complex application, you want to implement. In general, you can use one of the DAQmx shipping examples for CVI as a starting point.
You have to add the filling of the arrays to the example. You can realize that by having a loop generting the data and put it into the array.
By the way: Since the hardware has an onboard buffer, you can also write the samples directly to the device, when they are available. The device will output the samples in the order they were written to the device.
Best regards,
Melanie Eisfeld
Staff Applications Engineer
National Instruments
07-16-2016 08:38 AM
Hello,
thank you for your answer. I found the solution already.
Best Regards