nise module
Installation
As a prerequisite to using the nise module, you must install the NI Switch Executive runtime on your system. Visit ni.com/downloads to download the driver runtime for your devices.
The nimi-python modules (i.e. for NI Switch Executive) can be installed with pip:
$ python -m pip install nise
Usage
The following is a basic example of using the nise module to open a session to a Switch Executive Virtual Device and connect a routegroup.
import nise
with nise.Session('SwitchExecutiveExample') as session:
session.connect('DIOToUUT')
API Reference
- Session
- Methods
- Enums
- ExpandAction
- MulticonnectMode
- OperationOrder
- PathCapability
PathCapability
PathCapability.PATH_NEEDS_HARDWIRE
PathCapability.PATH_NEEDS_CONFIG_CHANNEL
PathCapability.PATH_AVAILABLE
PathCapability.PATH_EXISTS
PathCapability.PATH_UNSUPPORTED
PathCapability.RESOURCE_IN_USE
PathCapability.EXCLUSION_CONFLICT
PathCapability.CHANNEL_NOT_AVAILABLE
PathCapability.CHANNELS_HARDWIRED
- Exceptions and Warnings
- Examples