LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

varying alarm limits at different intervals

Hi All.

I am using LABVIEW 8 and D515 datalogger. i am getting temperature from10 thermocouple inputs. i take avarage of these temperatures and log them on an excel sheet. i am getting temperature readings after every 25 seconds and log data for 6 hours. this is a refrigeratin system and over 6 hour time span my temperature drops from 30 degree to 3 degree. now i want to add an alarm in a way that it has a variable upper and lower limits. for example for 25th reading temperature upper and lower limits will be 25 and 22 degree respectively and for 50th reading these limits will be 24 and 21 degree respectively and so on. (please refer to figure attached). In this way i will get a check that my temperature is falling with desired rate, please let me know how i can implement this? if there is any example code that can be of any help please let me know. i am new labview user so please reply in a simpler way. thankyou.

                                                                        Hamid

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

I did something that sounds very similar a couple of years ago. The temperature profiles I was working with employed specific dwells, ramps etc. in the cycle, which were generated by the engineering department as part of an ISO9000 design process. So we had to employ these curves. (I managed to do some value add in the whole process to guarantee / achieve traceability). Your curves might have to follow a specific equation that you could use and calculate the limits at each time interval.

In my case, I had the engineers export the calculated Excel as text files which are used as basis for the limit curves (there was also a nominal cycle curve). These were then loaded into a multi dimensional array (2D) before the start of the cycle. The measured data was stored in the same 2D array during the cycle. The whole lot could then be graphed quite readily. Limits were easy to check because the position in the array represented a specific part of the cycle and just needed reading across the array at the same index for the limit checking. I guess you would have about 1M worth of data so it should not be a problem for one cycle. One word of caution, our batch had to finish processing otherwise the whole batch had to be thrown, at considerable cost. So the system had power protection generators. But I also wrote the data to hard disc (mirrored) during the process every couple of minutes for security, it has saved the day a few times! I also arranged for XCOPY to run every night to move the new data over to a server (check out the options for XCOPY).

I can't say it was based on a specifically pre-written example but the inspiration for it was the Frequency Analysis Of A Filter Design.VI. In LabVIEW 8 this example has evolved a bit since I first saw it.
Try searching with the keyword LIMIT in the example VI's there are some cool examples using the Express blocks as well.




0 Kudos
Message 2 of 3
(2,525 Views)
0 Kudos
Message 3 of 3
(2,514 Views)