LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

looking for a math function

Is there any kind of math function or program in labview which is capable of monitoring a variable when program running, and give a true output if the variable is in predefined certain range within certain time period.

Or any similar function?

Thanks.
0 Kudos
Message 1 of 3
(2,529 Views)
For the analysis to see if a value is within a predefined range, just use the function "In Range and Coerse" it returns a boolean indicating if the test number falls between the two end points.

For your timing question, just build the data points into an array, and then analyze the array one element at a time using a for loop (indexing enabled) and the function mentioned above.
0 Kudos
Message 2 of 3
(2,529 Views)

You can implement this functionality using the 'In Range and Coerce' function. First, check if you're in the given time period. Then, check for the data range.

See attached VI (7.1) for example. Note that you can optionally include the upper-limit as part of the range (right-click; excluded by default).

Hope this helps,

Khalid


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