LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I acquire my data at a specific rate while continuing to monitor the data in real time?

The attached vi does the acquire the data properly but I also need to monitor data in real time.

Any help would be greatly appreciated.

0 Kudos
Message 1 of 5
(2,764 Views)

If I understand you correctly, you want to do DAQ in a loop at a specified rate, but you want the data to display on the front panel at a slower rate.  If that's the case, you can create another loop that run at a slower rate to display your data.  You can pass the data from one loop to another through a queue.

------------------------------------------------------------------

Kudos and Accepted as Solution are welcome!
0 Kudos
Message 2 of 5
(2,762 Views)
Not quite sure I understand what you mean - what I'm trying to do is show realtime continuous data on the front panel without changing how the data is streamed to file. Should I put another DAQ in a loop?
0 Kudos
Message 3 of 5
(2,747 Views)
No, you don't want to use another DAQ loop. Use a second loop and pass the data read from your acquire loop to the other task using a queue. If you need to read the data quickly I would also avoid updating the display in the same loop you are using to acquire the data since the UI updates may slow down your data acquisition.


Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 4 of 5
(2,742 Views)

Hi HelpMe9211,

 

As Mark alluded to, having extraneous code in the same loop as your data acquisition could cause issues. It is generally a good idea to minimize the amount of code in your data acquisition loop and perform processing (display, file I/O, etc.) in other loops. This is often known as a Producer/Consumer architecture. This looks like it may be the way to go for your application. You can find the framework for the Producer/Consumer architecture by going to File»New and then browsing to VI»From Template»Frameworks»Design Patterns»Producer/Consumer Design Pattern (Data).

 

Hope this is helpful!

 

Aaron P

National Instruments

Applications Engineer

http://www.ni.com/support

0 Kudos
Message 5 of 5
(2,711 Views)