Skip to content

CONNECTION_USB4065

Download Flojoy Studio to try this app
Connect Flojoy to a NI USB-4065 DMM. Params: NI_address : NIDMMDevice The NI DMM instrument to connect to. Returns: out : DataContainer Optional: None
Python Code
from flojoy import flojoy, DataContainer, NIDMMDevice, String
from flojoy.connection_manager import DeviceConnectionManager
from typing import Optional
import nidmm


@flojoy
def CONNECTION_USB4065(
    NI_address: NIDMMDevice,
    default: Optional[DataContainer] = None,
) -> Optional[DataContainer]:
    """Connect Flojoy to a NI USB-4065 DMM.

    Parameters
    ----------
    NI_address: NIDMMDevice
        The NI DMM instrument to connect to.

    Returns
    -------
    DataContainer
        Optional: None
    """

    device_addr = NI_address.get_address()
    session = nidmm.Session(device_addr)
    DeviceConnectionManager.register_connection(NI_address, session)

    return String(s=device_addr)

Find this Flojoy Block on GitHub

Videos

Control USB-4605 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 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.