nidigital module

Installation

As a prerequisite to using the nidigital module, you must install the NI-Digital Pattern Driver runtime on your system. Visit ni.com/downloads to download the driver runtime for your devices.

The nimi-python modules (i.e. for NI-Digital Pattern Driver) can be installed with pip:

$ python -m pip install nidigital~=0.5.0

Or easy_install from setuptools:

$ python -m easy_install nidigital

Usage

The following is a basic example of using the nidigital module to open a session to a ….

import nidigital
with nidigital.Session(resource_name='PXI1Slot2', channels='0') as session:
    pass

Some repeated capabilities can be chained. This is useful for some methods that can be used with the pins repeated capability. They can be chained with the sites repeated capability.

import nidigital
# Configure the session.

with nidigital.Session(resource_name='PXI1Slot2', channels='0') as session:
    session.sites[0, 1].pins['PinA', 'PinB'].ppmu_source()

This will apply the method/property to ‘site0/PinA, site0/PinB, site1/PinA, site1/PinB’

Additional examples for NI-Digital Pattern Driver are located in src/nidigital/examples/ directory.

API Reference