12-21-2017 05:44 AM
Hi, I am using a DAQ-6212 with Labview to get three types of simple data and saving with the "Write to Measurement File" function with a time column.
I'm getting the signal of an accelerometer, the electrical current signal and the signal of a simple encoder of a DC motor. I'm having a very simple problem.
The problem is: The accelerometer and current data are being saved correctly, but the encoder data (which passes through the "Tone Measurements" block) is being saved in an amount different from the other data. Every 100 values of the accelerometer and the electric current I get only 1 encoder value.
How can I get the same data rate for all entries? Is this a Tone Measurements block difference? I'm using it because I need the frequency of the encoder signal to calculate the motor speed.
I'm using continuous samples with 100 samples to read and 1k in rate (Hz).
Solved! Go to Solution.
12-21-2017 05:56 AM - edited 12-21-2017 05:57 AM
Hi Adrian,
instead of describing your VI with just words you could have attached that VI here…
Is this a Tone Measurements block difference?
When it's the only difference between those 3 signals then it will be the problem…
I'm using it because I need the frequency of the encoder signal to calculate the motor speed.
So you get one Tone measurement value for each block of 100 samples?
Initialize an array of 100 elements using that Tone measurement result!