06-30-2014 11:20 AM
Hello
I have a VI that is reading multiple thermocouples via DAQmx (Analog 1D Wfm NChan 1Samp). I have code that detect the open thermocouple channels and flags them as such.
But I would also like to process the waveform data to recognize the values >1200°C and convert them to NaN so they are ignored by the Waveform Chart. Is there an efficient way to do this? I have tried it, but the data is wrong... Processed Waveform chart not correct, string table not updating, values truncated to integer, etc.
Can someone point me in the right direction?
Thanks
Derek
06-30-2014 11:29 AM
Are you facing the problem when you update the NaN value to Table? If yes then you have stop converting the DBL data to integer and directly convert the values to string.
06-30-2014 11:48 AM
Thanks... But I don't see that issue... Waveform to DBL Array to String Array.
- Derek
06-30-2014 12:09 PM - edited 06-30-2014 12:09 PM
Your issue is where you are recreating your waveform data. You have an uninitialized shift register with a Build Array. What that will do is save the data from previous runs of the FOR loop and just keep adding on. I'm pretty sure that is not what you want. Besides, it is a lot more efficient to use an autoindexing tunnel.