03-01-2017 05:14 AM
Hi,
I am new to Labview, I have just created a simple acceleration data acquisition function that converts voltage signals to acceleration (g). I would like to save my data to excel by using 'write to measurement file' but the data saved is much slower to the actual time measurement. For instance, the function was running for 10 sec and data saved was only for 2 sec. I would like to able to save data for 20 mins running time. I believe it has to do with the Timing settings. ( If I use a wave graph at the same time, an error appears)
Acquisition mode: Continuous samples
Samples to Read: 1K
Rate (Hz): 1k
The accelerometer I am using is this.
Accelerometer Sensitivity (mV/g): 300
Nominal Zero-g Voltage: 1.5
I would appreciate it if someone has something to suggest.
Thank you.
03-01-2017 05:50 AM
1. You do not need the Wait in this loop. The reading from the DAQ will limit the loop rate.
2. Look into using a Producer/Consumer setup. The idea is to move the logging into a parallel loop so that it does not slow down the acquisition. You use a queue to send the data from the DAQ loop to the logging loop.
03-07-2017 06:49 AM
Thank you so much.
Can you please guide me how to put data in the queue from 'write to measurement file' ?
03-07-2017 06:50 AM
@pblanos wrote:
Thank you so much.
Can you please guide me how to put data in the queue from 'write to measurement file' ?
Did you follow the link I supplied in my previous post? Here it is again: Producer/Consumer
03-07-2017 10:07 AM
Would this be suitable for my case?