LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to configure temperature logging vi to return min & max values across time period

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!

0 Kudos
Message 1 of 3
(2,660 Views)

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.

0 Kudos
Message 2 of 3
(2,648 Views)

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

 

Min and max.png

0 Kudos
Message 3 of 3
(2,639 Views)