LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to program varied sample rate based on long term timing conditions

Currently programming a system for long term DAQ (5-10 days at a time) which includes two load cells feeding a continuous analog signal to an excel file.

 

The problem is that the NI9237 logs at a minimum rate of ~1600 pps and with some jumbled programming ive managed to cut it in half to 800pps, which for high resolution this is acceptable. The thing is is that 80 or so million data points for the duration of the test is a little excessive and we do not need such high resolution for the entirety of 10 days, also the data file would be humongous. What was proposed was that we can limit the data logging to 100pps at default but every hour it would log data at 800pps for about 15-20 seconds.

 

My question is how would you go about making a block diagram for these conditions?

 

I'm still new to LabVIEW but have a litte programming knowledge as well as taken the core 1 class, sorry if my block diagrams are confusing and bad.

0 Kudos
Message 1 of 2
(2,728 Views)

The Signal Processing -> Signal Operation palette provides a "Decimate Continuous" VI that you could use to log every Nth sample to file.

 

Not sure what you're doing with the 800 samples per sec except logging, but an option if you need to reduce the number of samples from the 9237 is to change your Acquisition Mode to 1 Sample (On Demand). You'll get 1 sample per channel each time through your loop, effectively controlling your "samples per second" by the loop rate.

0 Kudos
Message 2 of 2
(2,690 Views)