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:SWEep

  • noisereject (bool) – :TRIGger:NREJect

  • mode (str) – :TRIGger:MODE

  • holdoff (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 status field 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:HOLDoff

  • coupling (str) – :TRIGger:COUPling

  • source (int, str) – :TRIGger:EDGe:SOURce

  • slope (str) – :TRIGger:EDGe:SLOPe

  • level (float) – :TRIGger:EDGe:LEVel