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~=0.1.0
Or easy_install from setuptools:
$ python -m easy_install nise
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')
Additional examples for NI Switch Executive are located in src/nise/examples/ directory.
- Exceptions and Warnings