Set trigger level – Measurement Computing TempScan/1100 User Manual
Page 237

TempScan / MultiScan User’s Manual
889897
API
Command Reference A-41
L
- Set Trigger Level
TYPE
Channel
EXECUTION
Deferred
SYNTAX
Lchan,
level,
hyst
Sets the level against which the testing of channel readings should be
performed where
chan
is the channel number such that
1
<
chan
<
max
,
where
max
=
992
for the TempScan/1100 and
max
=
744
for the
MultiScan/1200.
level
is the level against which the readings are tested to determine if the
level has been exceeded.
hyst
is the hysteresis level.
L?
Query the current level settings
DESCRIPTION
The Set Trigger Level (
L
) command simply sets the level against which the testing of channel readings should be
performed. The Set Trigger Configuration (
T
) command should be used to configure whether the level condition
should be tested for going above the specified level or below the specified level.
The parameter
level
is the value, which, if exceeded by going above or below it as defined, generates a
Trigger (trigger start event) or Stop (trigger stop event). The parameter
hyst
is the hysteresis value that, with
level
, is used to test whether the level condition still persists. The level condition will persist until the channel
readings no longer exceed the level as specified. Further, in order to come out of the level condition, the channel
readings must retreat from the exceeded level value by the amount of the hysteresis value. The temperature and
volts format for the
level
and
hyst
arguments follow the rules defined under the Set Data Format (
F
)
command and in the section Data Format Configuration in the chapter System Configuration.
Note: The Set Trigger Level (
L
) command is only valid for Trigger Types 4 and 5, as defined by the Set Trigger
Configuration (
T
) command.
EXAMPLE
PRINT#1, “OUTPUT07;F0,0X”
‘ Set the Engineering Units format to be degrees C
PRINT#1, “OUTPUT07;L1,100.0,10.0X”
‘ Set the level channel to be Channel 1 at a level 100.0
°C with a hysteresis of 10.0 °C
PRINT#1, “OUTPUT07;L?X”
‘ Read the current level setting
PRINT#1, “ENTER07"
LINE INPUT #2, L$
PRINT L$
L001,+0100.0,+0010.0
‘ The screen shows the current level settings
PRINT#1, “OUTPUT07;T4,5,0,0X”
‘ Set the Trigger on channel going above the level and
set the Stop on the channel going below the level