02-01-2011 02:34 PM
I'm trying to create a .vi that will view an incoming signal (temperature or pressure, in this case), compare it to data over a specified amount of time, find the delta, and if it fits into a set range, output a true boolean.
In real terms, I want to view a temperature over, say, the last five minutes, and if the delta is less than two degrees, light up a boolean.
I know I'll need the elapsed time module, with a control multiplied by sixty for the "time target", and the "time has elapsed" as the boolean control. I'm assuming it will also look at a comparison between the present values and the values stored in an array and if it's outside the specified delta it will output a true value to the "reset". This will also have to reset the array, is my assumption.
I'm new to programming in general, and LabVIEW, so that's about as far as I got in the logic before I decided to see what the forums have to offer.
Thanks,
-Ian
02-01-2011 02:37 PM
@iyeager wrote:
...In real terms, I want to view a temperature over, say, the last five minutes, and if the delta is less than two degrees, light up a boolean.
...
You want to light up the boolean if the delta is less than 2 degrees the entire time, with no exception?
Or do you mean on average it was less than 2 degrees?
02-01-2011 02:45 PM
Delta is less than two degrees in that five minutes, with no exception. We're looking for a stable condition before acquiring a datapoint.
In our case, the temperature will slowly rise over time than begin to plateau. I want to illuminate the boolean at the plateau.
-Ian
02-01-2011 04:15 PM
Is this steps in the right direction? Seems like it should work, anyone see any flaws here?
-Ian