Analog & Digital I/O VIs

NI-Motion VI

Analog & Digital I/O VIs

You can use the analog and digital I/O VIs to control the general-purpose analog and digital I/O resources on the NI motion controller. These resources include up to 32 bits of general-purpose digital I/O, PWM outputs, RTSI lines, and any extra encoders, ADC channels, and DAC outputs that are not mapped to an axis.

The 32 bits of digital I/O are available on the Digital I/O Connector. These bits are organized into 8-bit ports that you can configure as inputs or outputs on a port-wise basis, or on a bitwise basis. Each bit has individually programmable polarity that you can configure as active low or active high. You can use the general-purpose digital I/O for system integration applications including operator panel switch inputs and outputs, relay and solenoid activation, trigger I/O between other controllers and/or instruments in the system, and so on.

You can use encoders, ADC channels, and DAC outputs that are not mapped to an axis for general-purpose I/O. Typical uses for encoder inputs include velocity monitoring, masters for master-slave gearing, and digital potentiometer applications.

You can use unused ADC inputs and DAC outputs for any analog I/O that is within their specifications. Typical analog input applications include analog joysticks, potentiometers, force, pressure, level and strain sensors, and so on. Analog output applications vary from heater element control to laser intensity modulation.

Click the icons for VI descriptions.

Up to Owning Palette Set I/O Port Direction Set I/O Port Polarity Set I/O Port MOMO Read I/O Port Enable ADCs Read ADCs Set ADC Range Load DAC Enable Encoders Read Encoder Position Reset Encoder Position Configure Encoder Filter Configure PWM Output Load PWM Duty Cycle Select Signal Configure Encoder Polarity

Set I/O Port Direction Enable Encoders
Set I/O Port Polarity Read Encoder Position
Set I/O Port MOMO Reset Encoder Position
Read I/O Port Configure Encoder Filter
Enable ADCs Configure Encoder Polarity
Read ADC Configure PWM Output
Set ADC Range Load PWM Duty Cycle
Load DAC Select Signal