Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

rate of data aquisition vs rate of recording data

Hi everyone,

 

Im pretty new to Labview and im stuck with this issue:

 

I'm attempting to build a VI that reads temps from my NI 9213 at at rate of about 1 sample/sec and I was going to record the data using the write to measurement file however recording at that same rate is too much data, I would like to instead record about once every 30 seconds. Does anyone have a solution?

 

Thanks.

 

 

0 Kudos
Message 1 of 3
(2,907 Views)

I would just use the TDMS streaming capability in DAQmx.  There is a function called Configure Logging.  Then you don't have to make a VI to log the data as the drivers will do it for you.

 

The other alternative I would go to is to use a Producer/Consumer architecture.  You can have 1 loop for acquiring the data and another loop for saving the data to disk.

 

1S/second is really slow.  How many temperatures are you reading?  I would think that any decent code could keep up with that.  If you share your VI, maybe we can help you get some better performance out and be able to log at the rate you desire.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 3
(2,902 Views)

Hi!

 

thanks for the suggestion, I actually had seen the producer/consumer system and figured thats what it would be but I couldnt find any examples on NI.com or Youtube to help explain how to properly build one. I see that it uses quite a bit of queue operations but I wasn't sure how it can log data at a different rate. I attached a basic VI that could be worked on.

0 Kudos
Message 3 of 3
(2,883 Views)