LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Need to read a a/d board and display a waveform without taking time from the a/d transfer can it be done and how?

Using 6.1 and a gage 82g board with 2g sample rate. Need to get data from board fast. And also display a waveform every 10 -50 rep rate from the gage board. How can i do this?
0 Kudos
Message 1 of 3
(2,534 Views)
2 g samples per second is gonna be tough, the first thing to check is whether you can get a while loop to spin fast enough to acquire the data before your buffer overflows (just try acquiring, don't worry about graphing or doing anythign else with the data). Whether it will work at all will probably depend on the speed of your computer, the size of the buffer on the board and how long you'll be acquiring the data for (presumably you're acquiring for a pretty limited period of time if you are doing 2g per second). Once you start thinking about displaying the data, don't bother to display it faster than a few times a second, the human eye can't detect faster updates than that, so you'd just be wasting processing time. If you can acquire fast enough, then you should c
onsider using something like a Producer/Consumer architecture. Your producer (one while loop) would just acquire the data and toss it into a queue, your consumer would run at a lower frequency or priority than the producer, and would dequeue the data and graph it.

This tutorial has more info on the producer/consumer architecture:
http://zone.ni.com/devzone/conceptd.nsf/webmain/C54BADADD8BBDE4286256C5200533B80?opendocument

Regards,
Ryan K.
0 Kudos
Message 2 of 3
(2,534 Views)
I have tested the aquire part of this test and I can get the data from the board at the speed that I need. Now I must display the data at only a couple of time a sec. but not to slow the the aquiring of the data.
Thanks for the help!
0 Kudos
Message 3 of 3
(2,534 Views)