NI CompactRIO Device Drivers Help
»View Product Info
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.
- Configure the CompactRIO system, and add an NI 9219.
- 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.
- 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.
- 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.
- Select the range from the Range pull-down menu for the selected channel(s).
- Click the OK button.
- 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.
- 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.
- 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.
- Click the Property section and select the Range property from the shortcut menu.
- Right-click the Range input and select Create»Control from the shortcut menu.
- 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.