LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Ring Buffer

Solved!
Go to solution

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

0 Kudos
Message 1 of 3
(3,209 Views)
Solution
Accepted by topic author Fasching_K

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

Best regards,
Melanie Eisfeld
Senior Applications Engineer, National Instruments Germany
Certified LabVIEW Developer
Certified TestStand Architect
Message 2 of 3
(3,190 Views)

Hello, 

 

thank you for your answer. I found the solution already. 

 

Best Regards

0 Kudos
Message 3 of 3
(3,177 Views)