LimitAlarm
LimitAlarm('Expression','Limit','DeadBand','Time')
Arguments
|
'Expression' |
Signal or expression |
|
'Limit' |
Limit from which the function returns TRUE |
|
'DeadBand' |
Specification of a dead zone below the limit within which the function does not reset to FALSE |
|
'Time' |
Specification of the time for which 'Expression' must be above the limit until the function returns TRUE |
Description
This function monitors the signal ('Expression') and sets the result to TRUE if the signal is above the threshold ('Limit') longer than the specified time ('Time'). The result of the function returns to FALSE when the signal falls below the threshold by the value specified under the dead zone ('DeadBand').
Tip |
|
|---|---|
|
You can also use the LimitAlarm function for a lower limit. For this purpose, flip the signal and the limit, i.e. multiply by (-1). For example: LimitAlarm([0:1] *(-1), 9 *(-1), 0.5, 0.4) |
|
WindowAlarm
WindowAlarm('Expression','Limit1','DeadBand1','Limit2','DeadBand2','Time')
Arguments
|
'Expression' |
Signal or expression |
|
'Limit1' |
Upper limit from which the function returns TRUE |
|
'DeadBand1' |
Specification of the dead zone below the upper limit ('Limit1') within which the function does not reset to FALSE |
|
'Limit2' |
Lower limit from which the function returns TRUE |
|
'DeadBand2' |
Specification of the dead zone above the lower limit ('Limit2') within which the function does not reset to FALSE |
|
'Time' |
Specification of the time for which 'Expression' must be greater than the upper limit or smaller than the lower limit until the function returns TRUE |
Description
This function monitors the signal ('Expression') and sets the result to TRUE if the signal is longer than the specified time ('Time') outside the range between the upper threshold ('Limit1') and the lower threshold ('Limit2'). The result of the function returns to FALSE when the signal falls below the upper limit by the value specified under 'DeadBand1', or exceeds the lower limit by the value specified under 'DeadBand2'.
