Skip to content

READ_USB4065

Reads a measurement from a NI USB-4065 DMM. Pair with a block setting the measurement unit (e.g. DC_VOLTAGE_USB4065). Requires a CONNECTION_USB4065 block to connect Flojoy to the instrument. The USB-4065 is a NI (National Instruments) multimeter. It is possible that the block will work with other NI DMMs (digital multimeters) such as the 4070 and 4080 series. This instrument will likely only be compatible with Windows systems due to NI driver availablity. To use the instrument you must install the runtime: https://www.ni.com/en/support/downloads/drivers/download.ni-dmm.html Params: NI_address : NIConnection The NI instrument. Returns: out : DataContainer Scalar: The DMM reading.
Python Code
from flojoy import flojoy, DataContainer, Scalar, NIConnection
from typing import Optional


@flojoy(inject_connection=True)
def READ_USB4065(
    connection: NIConnection,
    default: Optional[DataContainer] = None,
) -> Scalar:
    """Reads a measurement from a NI USB-4065 DMM.

    Pair with a block setting the measurement unit (e.g. DC_VOLTAGE_USB4065).

    Requires a CONNECTION_USB4065 block to connect Flojoy to the instrument.

    The USB-4065 is a NI (National Instruments) multimeter. It is possible
    that the block will work with other NI DMMs (digital multimeters) such
    as the 4070 and 4080 series.

    This instrument will likely only be compatible with Windows systems due to
    NI driver availablity. To use the instrument you must install the runtime:

    https://www.ni.com/en/support/downloads/drivers/download.ni-dmm.html

    Parameters
    ----------
    NI_address: NIConnection
        The NI instrument.

    Returns
    -------
    DataContainer
        Scalar: The DMM reading.
    """

    session = connection.get_handle()
    return Scalar(c=session.read())

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 four wire resistance measurement is made with a NI USB-4065 digital multimeter.

Place the blocks:

  • CONNECTION USB4065
  • RESISTANCE 4W USB4065
  • READ USB4065
  • BIG NUMBER

First ensure the 4065 blocks have the correct instrument set in the parameters. Run the app to perform a reading.

Note the RESISTANCE 4W USB4065 block has an optional parameter to take a single reading. However, the READ USB4065 block can be used to make the same measurement multiple times without changing any settings.