LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Reducing Number of Data Points Acquired?

Hi,

 

I attached a screenshot of a quick piece of code I set up to emulate what you are doing in your program.  I tried to simplify it down to where you would gain a better understanding of what is happening.  To decimate your data it is fine the way you are currently doing it by using the Decimate vi and Sample Compression Vi.  However, I would only use one of these functions to compress your data that is acquired, you do not need both.  The screenshot I attached shows the different ways you can compress and save your data to a file.  I used the DAQ assistant as my signal source but in your case it would be the RTD measurements.

 

The easiest way to write to a file would be to use the Write to Measurement File.vi (I attached a screenshot).  When using this function, the start time, time between samples, and the actual samples acquired will be included in the file.  This way you do not need to worry about formatting the timestamps, organizing all the information, etc. 

 

Regards,
Jordan F
National Instruments
Download All
0 Kudos
Message 11 of 12
(743 Views)
Thanks for the reply. I have implemented what you suggested with the decimate Vi.  However, whenever I run it with decimate = 5, no data is ever written to the file.  I reduced it to 2 and I received data, but it wasn't in a equal intervals.  Some times there was 2 samples written per second and then other times where it is almost 3 minutes before the next point was written. What could be the cause of this? I've attached the updated VI and the text file.
Download All
0 Kudos
Message 12 of 12
(726 Views)