Trigger
- src.trigger.trigger(oscope, sweep: Optional[str] = None, noisereject: Optional[bool] = None, mode: Optional[str] = None, holdoff: Optional[float] = None, coupling: Optional[str] = None, source: Optional[Union[int, str]] = None, slope: Optional[str] = None, level: Optional[float] = None)[source]
Send commands to control an oscilloscope’s triggering behavior. This interface is only partially implemented so as to support edge-triggering. All arguments are optional. Depending on the triggering mode, only the applicable arguments are utilized by the relevant helper function.
- Parameters
sweep (str) –
:TRIGger:SWEepnoisereject (bool) –
:TRIGger:NREJectmode (str) –
:TRIGger:MODEholdoff (float) – See helper functions.
coupling (str) – See helper functions.
source (int, str) – See helper functions.
slope (str) – See helper functions.
level (float) – See helper functions.
- Returns
A namedtuple with fields corresponding to the named arguments of this function. All fields are queried regardless of which arguments were initially provided. The
statusfield is additionally provided as a result of the query:TRIGger:STATus?.
- src.trigger.trigger_edge(oscope, trigger_query, holdoff, coupling, source, slope, level)[source]
Helper function to configure edge-triggering,
:TRIGger:MODE EDGE.- Parameters
holdoff (float) –
:TRIGger:HOLDoffcoupling (str) –
:TRIGger:COUPlingsource (int, str) –
:TRIGger:EDGe:SOURceslope (str) –
:TRIGger:EDGe:SLOPelevel (float) –
:TRIGger:EDGe:LEVel