LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Writing thermocouple data to measurement file from while loop

Hello,

 

I'm trying to write thermocouple data that has already been filtered into a measurement file.  My code works, but has many zero-time entries (probably from the filtering aspect), and some of the non-zero-time entries are even out of sequence (my output file is attached as well as my VI.)  I'd love any help regarding getting this to work!

 

Thanks in advance,

 

Megan

 

Download All
0 Kudos
Message 1 of 3
(2,609 Views)
Please ask the moderator to move your question to the LabVIEW board. Measure is an obsolete add-on for excel and not appropriate.
0 Kudos
Message 2 of 3
(2,597 Views)

Hi Megan,

 

do you really need to sample thermocouple data at 1kHz? How fast does the temperature change - and how fast do thermocouples react on that temp change? (Which sample rate is recommended for your hardware?)

 

Are your filter settings reasonable? "TC2 unfiltered" looks quite ok, while the "filtered" graph looks awful (atleast for a TC measurement)…

 

And you should definitely fetch a constant number of samples from DAQmxRead. Usually you read 1/10th of the sample rate, so reading 100 samples for 1kHz sample rate!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 3 of 3
(2,527 Views)