Skip to content

SINGLE_TRIGGER_DS1047Z

Download Flojoy Studio to try this app
Activates the single trigger mode. The oscilloscope will wait for a trigger and then stop aquiring. Set the `single` parameter to False to turn back on normal triggering. Requires a CONNECTION_DS1074Z node at the start of the app to connect with the instrument. The VISA address will then be listed under 'connection'. This node should also work with compatible DS1000Z oscilloscopes Params: None : Returns: out : DataContainer String: summary of channel settings.
Python Code
from flojoy import flojoy, DataContainer, String, VisaConnection
from typing import Optional


@flojoy(inject_connection=True)
def SINGLE_TRIGGER_DS1047Z(
    connection: VisaConnection,
    single: bool = True,
    default: Optional[DataContainer] = None,
) -> String:
    """Activates the single trigger mode.

    The oscilloscope will wait for a trigger and then stop aquiring.
    Set the `single` parameter to False to turn back on normal triggering.

    Requires a CONNECTION_DS1074Z node at the start of the app to connect with
    the instrument. The VISA address will then be listed under 'connection'.

    This node should also work with compatible DS1000Z oscilloscopes

    Parameters
    ----------
    None

    Returns
    -------
    DataContainer
        String: summary of channel settings.
    """

    rigol = connection.get_handle()

    if single:
        rigol.write_raw(":SINGle")
        s = "Single trigger"
    else:
        rigol.write_raw(":TRIG:SWE NORM")
        s = "Normal trigger"

    return String(s=s)

Find this Flojoy Block on GitHub

Videos

Control DS1000Z oscilloscope with Flojoy

Example App

Having problems with this example app? Join our Discord community and we will help you out!
React Flow mini map

In this example the digital function blocks are used to control the LA channels of the Rigol DS1047Z oscilloscope.

A CONNECTION_DS1047Z block must first be used to make the connection between Flojoy and the instrument.

The DIGITAL_ON_OFF_DS1047Z block turns the LA digital channel off as well as indiviual sub-channels.

The DIGITAL_TRIGGER_DS1047Z block chooses the triggering digital channel (e.g. D0 here) and the triggering level.

The SINGLE_TRIGGER_DS1047Z block sets the triggering mode to single which stops the oscilloscope as soon as a triggering signal is detected, leaving a static trace on the screen.

The DIGITAL_TRACE_DS1047Z block extracts traces from digital channels such as D0.