05-18-2014 10:08 PM
The attached VI is recording temperature data from a 16 channel DAQ recorder second by second, recording 24 hours of results to a file. I am trying to configure the vi to return min & max values across the entire recording period for each channel. I have looked at various other examples of temperature logging vi's and cannot seem to get the required output. Can anyone please assist or guide me in the right direction. Thanks!
05-18-2014 10:28 PM
DO NOT set your VI to run when opened!
Your upper loop looks like the logic is correct for recording the min and max for one channel. Except why do you have it reading a U8? If the temperature is negative, you'll have problems.
The problem is that Current Temp control is in no way connected to any of the code where you are getting the data.
You need to turn that loop into a subVI, without the loop. Make it fully reentrant and make a copy for each channel coming out of your DAQ assistant.
05-18-2014 10:40 PM - edited 05-18-2014 10:40 PM
Here is another way to get the min and max for one channel. You would need a pair of shift registers (or feedback nodes) for each channel. The min and max for the all the channels could also be put into an array so that only one shift register would be required.
Lynn