Trigger¶
Trigger configuration and modes
Trigger configuration and control for Siglent oscilloscopes.
Trigger
¶
Trigger configuration and control for oscilloscope.
Provides methods to configure trigger settings including mode, source, level, slope, type, and other trigger parameters.
Initialize trigger control.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
oscilloscope
|
Oscilloscope
|
Parent Oscilloscope instance |
required |
Source code in scpi_control/trigger.py
mode
property
writable
¶
Get trigger mode.
Returns:
| Type | Description |
|---|---|
str
|
Trigger mode: 'AUTO', 'NORM', 'SINGLE', or 'STOP' |
source
property
writable
¶
Get trigger source channel.
Returns:
| Type | Description |
|---|---|
str
|
Trigger source (e.g., 'C1', 'C2', 'C3', 'C4', 'EX', 'EX5', 'LINE') |
trigger_type
property
writable
¶
Get trigger type.
Returns:
| Type | Description |
|---|---|
str
|
Trigger type: 'EDGE', 'SLEW', 'GLIT', 'INTV', 'RUNT', 'PATTERN', etc. |
level
property
writable
¶
Get trigger level voltage.
Returns:
| Type | Description |
|---|---|
float
|
Trigger level in volts |
Raises:
| Type | Description |
|---|---|
FeatureNotSupportedError
|
The current trigger source has no documented level command on this dialect -- LINE on legacy/lecroy/tektronix, and the external input on tektronix (no AUX form in the ⅘/6 MSO manual). EX/EX5 are supported on legacy/lecroy (RC01020-E01C p.128 / MAUI p.7-33). Modern's :TRIGger:EDGE:LEVel (EN11G p.493) takes no source argument, so nothing gates there -- LINE included. |
slope
property
writable
¶
Get trigger slope.
Returns:
| Type | Description |
|---|---|
str
|
Trigger slope: 'POS', 'NEG', or 'WINDOW' |
coupling
property
writable
¶
Get trigger coupling.
Returns:
| Name | Type | Description |
|---|---|---|
Coupling |
str
|
'DC', 'AC', 'HFREJ', 'LFREJ'. Unmapped instrument states |
str
|
(e.g. 'NOISEREJ' set from Tektronix front panel) pass through uppercased |
|
str
|
as read-only; such states cannot be set via this API. |
holdoff
property
writable
¶
Get trigger holdoff time.
Returns:
| Type | Description |
|---|---|
float
|
Holdoff time in seconds |
set_mode
¶
auto
¶
normal
¶
single
¶
stop
¶
force
¶
set_source
¶
set_edge_trigger
¶
Configure edge trigger.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
source
|
str
|
Trigger source channel (default: 'C1') |
'C1'
|
slope
|
str
|
Trigger slope - 'POS' (rising), 'NEG' (falling) (default: 'POS') |
'POS'
|
Source code in scpi_control/trigger.py
set_level
¶
Convenience wrapper to set trigger level for a specific channel.
Note
This sets the source and then the level. A source write can be silently coerced by the instrument -- selecting a switched-off channel or an absent external input lands somewhere else with no error queued -- so this is not proof the scope is triggering where you asked. See the trigger source documentation.
Source code in scpi_control/trigger.py
set_slope
¶
get_configuration
¶
Get all trigger configuration parameters.
Returns:
| Type | Description |
|---|---|
dict
|
Dictionary with all trigger settings |
Source code in scpi_control/trigger.py
See Also¶
- Oscilloscope - Main oscilloscope control class for SCPI communication
- Vocabulary - String-compatible enums for token-valued parameters (coupling, trigger mode/slope/source/coupling/type, bandwidth limit, tracking mode) -- enums in, strings out
- Channel - Channel configuration and control