Skip to content

DISPLAY_ON_OFF_T3DSO1XXX

Download Flojoy Studio to try this app
Turn the display of the channels on or off on an T3DSO1000(A)-2000 oscilloscope. Requires a CONNECT_T3DSO1XXX block at the start of the app to connect with the instrument. The VISA address will then be listed under 'connection'. This block should work with any Teledyne LeCroy T3DSO1000(A)-2000 series oscilloscope. Params: connection : VisaConnection The VISA address (requires the CONNECT_T3DSO1XXX block) display_ch1 : select Turn channel 1 on or off display_ch2 : select Turn channel 2 on or off display_ch3 : select Turn channel 3 on or off display_ch4 : select Turn channel 4 on or off Returns: out : Optional[DataContainer] None
Python Code
from flojoy import flojoy, DataContainer, VisaConnection
from typing import Optional


@flojoy(inject_connection=True)
def DISPLAY_ON_OFF_T3DSO1XXX(
    connection: VisaConnection,
    display_ch1: bool = True,
    display_ch2: bool = True,
    display_ch3: bool = True,
    display_ch4: bool = True,
    default: Optional[DataContainer] = None,
) -> Optional[DataContainer]:
    """Turn the display of the channels on or off on an T3DSO1000(A)-2000 oscilloscope.

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

    This block should work with any Teledyne LeCroy T3DSO1000(A)-2000 series oscilloscope.

    Parameters
    ----------
    connection: VisaConnection
        The VISA address (requires the CONNECT_T3DSO1XXX block)
    display_ch1: select
        Turn channel 1 on or off
    display_ch2: select
        Turn channel 2 on or off
    display_ch3: select
        Turn channel 3 on or off
    display_ch4: select
        Turn channel 4 on or off

    Returns
    -------
    Optional[DataContainer]
        None
    """

    scope = connection.get_handle()

    scope.write(f"C1:TRACE {'ON' if display_ch1 else 'OFF'}")
    scope.write(f"C2:TRACE {'ON' if display_ch2 else 'OFF'}")
    scope.write(f"C3:TRACE {'ON' if display_ch3 else 'OFF'}")
    scope.write(f"C4:TRACE {'ON' if display_ch4 else 'OFF'}")

    return None

Find this Flojoy Block on GitHub

Example App

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

This app shows how to use the blocks for a T3DSO1000(A)-2000 oscilloscope.

Blocks used:

  • CONNECT_T3DSO1XXX
  • RESET_T3DSO1XXX
  • AUTO_SETUP_T3DSO1XXX
  • DISPLAY_ON_OFF_T3DSO1XXX
  • SET_HORIZONTAL_SCALE_T3DSO1XXX
  • SET_VERTICAL_SCALE_T3DSO1XXX
  • EXTRACT_TRACE_T3DSO1XXX
  • MEASUREMENT_T3DSO1XXX
  • SCREENSHOT_T3DSO1XXX
  • 2x BIG_NUMBER
  • SCATTER
  • IMAGE

The blocks were connected as shown, and the app was run. The result displayed the trace of the signal, the frequency, and the amplitude of the signal, along with a screenshot of the oscilloscope screen for verification.