Configuring Modes and Ranges for the NI 9219 (FPGA Interface)

NI CompactRIO Device Drivers Help

Edition Date: December 2017

Part Number: 373197L-01

»View Product Info
Download Help (Windows Only)

You can configure the mode and range for each channel on the NI 9219 at edit time using the C Series Module Properties dialog box. You can programmatically change the range for each channel at run time using the FPGA I/O Property Node. The execution of an I/O Property Node that is configured with a Range property overwrites the value you configured in the C Series Module Properties dialog box.

Configuring Modes and Ranges Using the C Series Module Properties Dialog Box

Complete the following steps to configure the channel(s) mode and range using the C Series Module Properties dialog box.

  1. Configure the CompactRIO system, and add an NI 9219.
  2. Right-click the NI 9219 in the Project Explorer window and select Properties from the shortcut menu to display the C Series Module Properties dialog box.
  3. Select the channel(s) for which you want to configure the mode and range from the Channels table. You can select more than one channel by holding the <Ctrl> or <Shift> key when selecting channels.
  4. Select the mode for the channel(s) from the Channel Mode pull-down menu. If you select Digital In mode, skip the following steps and set the threshold. If you select Open Contact mode, skip the following step.
  5. Select the range from the Range pull-down menu for the selected channel(s).
  6. Click the OK button.
  7. Select File»Save All in the Project Explorer window.

Configuring Ranges Using the FPGA I/O Property Node

Complete the following steps to configure the channel range using the FPGA I/O Property Node.

  1. Create FPGA I/O items for the channel of the NI 9219 for which you want to configure a Range property. The channel must be set to Voltage mode, Resistance mode, RTD mode, Quarter Bridge mode, or Full Bridge mode.
  2. Place an FPGA I/O Property Node on the block diagram and configure it for the NI 9219 channel for which you want to configure the range.
  3. Click the Property section and select the Range property from the shortcut menu.
  4. Right-click the Range input and select Create»Control from the shortcut menu.
  5. On the front panel of the VI, select a rate from the Range pull-down menu.

You can change the channel range at run time by writing to the control from the host VI. Refer to the NI 9219 Getting Started VI in the labview\examples\CompactRIO\Module Specific\NI 9219\NI 9219 Getting Started\NI 9219 Getting Started.lvproj for an example of changing a channel range using the FPGA I/O Property Node.

WAS THIS ARTICLE HELPFUL?

Not Helpful