pylab_ml.collate_instrument.DefInter
- class DefInter(*args, **kwargs)[source]
Bases:
objectSingleton class to determine the default interface and optional backend
Methods
__init__([style])Search for the national instrument driver if exist.
style([style])Determine the default interface and optional backend
Attributes
visa_backends- check4nidriver()[source]
Search for the national instrument driver if exist.
The used key depends from the pyvisa-version search for an independent solution !! returns @default_backend or False
- Returns:
default_backend (str) – “@ni” for NI-Library or “@ivi” for IVI-Library
False (if no NI-Library is found)
- pyvisa = <module 'pyvisa' from '/home/runner/miniconda3/envs/test/lib/python3.9/site-packages/pyvisa/__init__.py'>
- style(style=None)[source]
Determine the default interface and optional backend
- Parameters:
style (str) – “Linux” : Default interface is tcpip and usbserial, default backend is “@py” “usbserial” or “Serial” : Default interface is tcpip and usbserial, default backend is “@ni” if ni driver exist else “@py” other : Default interface is tcpip and gpib, default backend is “@ni” if ni driver exist else “@py”