TRIGger:SOURce:ALARm[:MODE]
Syntax
TRIGger:SOURce:ALARm[:MODE] <source>
TRIGger:SOURce:ALARm[:MODE]?
Description
This command selects the alarm trigger source. When an alarm is specified as the scan trigger source (see TRIGger:SOURce command), this command controls the behavior of the scan when an alarm condition is detected.
Used With:
34921A through 34925A Multiplexer Modules
34950A Digital I/O Module (digital input and counter channels only)
34952A Multifunction Module (digital input and totalizer channels only)
Parameters
Name |
Type |
Range of Values |
Default Value |
<source> |
Discrete |
{SINGle|CONTinuous} |
SINGle |
Remarks
For the SINGle source, the instrument will sweep through the scan list one time when an alarm condition is detected.
For the CONTinuous source, the instrument will sweep through the scan list continuously until the trigger count (see TRIGger:COUNt command) is met.
If the alarm tracking mode is used (see OUTPut:ALARm:MODE command) and if the alarm condition returns to within the limits during a scan, the instrument will complete the current sweep and then pause the scan. When the alarm condition goes outside the limits again, the scan will continue.
While in the continuous mode, you can use an infinite trigger count. To stop the scan, send the ABORt command or a Device Clear (the readings will remain in memory).
The instrument selects the single trigger source after a Factory Reset (*RST command). An Instrument Preset (SYSTem:PRESet command) or Card Reset (SYSTem:CPON command) does not change the setting.
Return Format
The query command returns the present trigger alarm source: "SING" or "CONT".
Examples
The following program segment selects the alarm source and configures the instrument to scan when an alarm is reported on Alarm 1. The Monitor mode is used to evaluate alarm conditions on the selected channel.
TRIG:SOUR ALARM1
!Select
trigger source
TRIG:SOUR:ALARM CONT !Select
continuous scan mode
CALC:LIM:UPP 10.25,(@1003) !Set
upper alarm limit
CALC:LIM:UPP:STAT ON,(@1003) !Enable
alarms
OUTP:ALARM1:SOUR (@1003) !Report
alarms on Alarm 1
OUTP:ALARM:MODE TRACK !Enable
track mode on all four alarm output lines
ROUT:MON:CHAN (@1003) !Select
monitor channel
ROUT:MON:CHAN:ENAB ON, (@1003) !Enable
monitoring on selected channel
ROUT:MON:STAT ON !Enable
monitor mode
TRIG:COUN 100
!Set
trigger count
INIT
The following query returns the trigger alarm source currently selected.
TRIG:SOUR:ALAR?
Typical Response: CONT