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~=1.4.4
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')
- Exceptions and Warnings