CONNECTION_USB4065
The CONNECTION_MDO3XXX node connects Flojoy to aParams:NI_address : strThe NI instrument address for the instrument (e.g. 'Dev0', 'Dev1').Returns:out : DataContainerOptional: None
Python Code
from flojoy import flojoy, DataContainer, NIDevice
from flojoy.connection_manager import DeviceConnectionManager
from typing import Optional
import nidmm
@flojoy(deps={"nidmm": "1.4.6"})
def CONNECTION_USB4065(
NI_address: str = "Dev1",
default: Optional[DataContainer] = None,
) -> Optional[DataContainer]:
"""The CONNECTION_MDO3XXX node connects Flojoy to a
Parameters
----------
NI_address: str
The NI instrument address for the instrument (e.g. 'Dev0', 'Dev1').
Returns
-------
DataContainer
Optional: None
"""
session = nidmm.Session(NI_address)
DeviceConnectionManager.register_connection(NIDevice(NI_address), session)
return None
Example
Having problem with this example app? Join our Discord community and we will help you out!