Skip to content

CONNECT_DMM7510

Download Flojoy Studio to try this app
Open a VISA connection to a Keithley DMM7510. Also sets the communication language to TSP. Params: device : VisaDevice The connected VISA device. Returns: device_addr : String The IP or VISA address of the VISA device.
Python Code
from flojoy import VisaDevice, flojoy, String
from flojoy.connection_manager import DeviceConnectionManager


@flojoy
def CONNECT_DMM7510(
    device: VisaDevice,
) -> String:
    """Open a VISA connection to a Keithley DMM7510.

    Also sets the communication language to TSP.

    Parameters
    ----------
    device: VisaDevice
        The connected VISA device.

    Returns
    -------
    device_addr: String
        The IP or VISA address of the VISA device.
    """

    device_addr = device.get_address()

    dmm = DeviceConnectionManager.tm.add_dmm(device_addr)
    dmm.write("*LANG TSP")
    lang = dmm.query("*LANG?")
    if lang != "TSP":
        raise ValueError(
            "Command set language not set correctly. Try setting to 'TSP' manually."
        )

    DeviceConnectionManager.register_connection(device, dmm)

    return String(s=device_addr)

Find this Flojoy Block on GitHub

Videos

Control the DMM7510 Multimeter 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, a DC voltage measurement was extracted from a Keithley DMM7510.

First the necessary blocks were added:

  • CONNECT_DMM7510
  • RESET_DMM7510
  • FUNCTION_DMM7510
  • DIGITS_DMM7510
  • MEASUREMENT_PARAMS_DMM7510
  • MEASUREMENT_FILTER_DMM7510
  • READ_DMM7510
  • BIG_NUMBER

The instrument address was set for each DMM7510 block. The FUNCTION_DMM7510 block was changed in order to extract the correct measurement. The parameters in DIGITS_DMM7510, MEASUREMENT_PARAMS_DMM7510, and MEASUREMENT_FILTER_DMM7510 blocks were changed as necessary. The READ_DMM7510 block was connected to the BIG_NUMBER block in order to view the reading.

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