READ_MEASUREMENT_DMM7510
Download Flojoy Studio to try this app
Reads a single measurement from the DMM7510. Requires a CONNECT_DMM7510 block to create the connection. Params: connection : VisaConnection The VISA address (requires the CONNECTION_DMM7510 block). Returns: out : Scalar Measurement
Python Code
from typing import Optional
from flojoy import VisaConnection, flojoy, DataContainer, Scalar
@flojoy(inject_connection=True)
def READ_MEASUREMENT_DMM7510(
connection: VisaConnection,
input: Optional[DataContainer] = None,
) -> Scalar:
"""Reads a single measurement from the DMM7510.
Requires a CONNECT_DMM7510 block to create the connection.
Parameters
----------
connection : VisaConnection
The VISA address (requires the CONNECTION_DMM7510 block).
Returns
-------
Scalar
Measurement
"""
dmm = connection.get_handle()
c = float(dmm.commands.dmm.measure.read())
return Scalar(c=c)
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!
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.