Skip to content

BEEP_2450

Causes the 2450 to beep audibly. Requires a CONNECT_2450 block to create the connection. Params: connection : VisaConnection The VISA address (requires the CONNECTION_2450 block). duration : float, default=0.25 The duration of the beep in seconds. frequency : float, default=2000 The frequency, or tone, of the beep in Hz. Returns: out : TextBlob Beep
Python Code
from typing import Optional
from flojoy import VisaConnection, flojoy, DataContainer, TextBlob


@flojoy(deps={"tm_devices": "1.0"}, inject_connection=True)
def BEEP_2450(
    connection: VisaConnection,
    input: Optional[DataContainer] = None,
    duration: float = 0.25,
    frequency: float = 2000,
) -> TextBlob:
    """Causes the 2450 to beep audibly.

    Requires a CONNECT_2450 block to create the connection.

    Parameters
    ----------
    connection : VisaConnection
        The VISA address (requires the CONNECTION_2450 block).
    duration : float, default=0.25
        The duration of the beep in seconds.
    frequency : float, default=2000
        The frequency, or tone, of the beep in Hz.

    Returns
    -------
    TextBlob
        Beep
    """

    # Retrieve oscilloscope instrument connection
    smu = connection.get_handle()

    smu.commands.beeper.beep(duration=duration, frequency=frequency)

    return TextBlob(text_blob="BEEP")

Find this Flojoy Block on GitHub

Example

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

In this example, a Keithley 2450 to generate 1V and then sweep between 0 and 1V.

First the necessary blocks were added:

  • CONNECT_2450
  • BEEP_2450
  • RESET_2450
  • SOURCE_2450
  • MEASURE_SETTINGS_2450
  • MEASUREMENT_READ_2450
  • IV_SWEEP_2450
  • BIG_NUMBER
  • LINE

The instrument address was set for each 2450 block. The SOURCE_2450 block was changed in order to source 1V. The parameters in the MEASURE_SETTINGS_2450 block were changed as necessary. The MEASUREMENT_READ_2450 block was connected to the BIG_NUMBER block in order to view the reading.

The IV_SWEEP_2450 block output was connected to the LINE plot to show the output of the sweep.

The blocks were connected as shown and the app was run.