Writing to CompactRIO Channels (FPGA Interface)

CompactRIO

Writing to CompactRIO Channels (FPGA Interface)

Complete the following steps to write to CompactRIO output channels.

  1. Configure the CompactRIO system.
  2. Make sure the output channel is added to the CompactRIO system.
  3. Right-click the FPGA target in the Project Explorer window and select New»VI from the shortcut menu to add a new FPGA VI to the CompactRIO system.
  4. Place an FPGA I/O Node on the block diagram of the FPGA VI.
  5. Click the element section of the FPGA I/O Node and select Module»Module/Channel from the shortcut menu, where Module represents a C Series module and Module/Channel is the channel to which you want to write. If you configure an FPGA I/O Node for multiple channels, the I/O Node accesses the channels simultaneously or sequentially depending on the type of module and other factors.
Note  LabVIEW can write to CompactRIO digital output lines as ports for some I/O modules. Refer to the reference topic for the module you are using for more information. You can find the reference topic for the module by navigating on the Contents tab to FPGA Module»CompactRIO Reference and Procedures»Digital Output Modules»NI 9xxx.

Confirming the State of Digital Output Channels

For digital channels, you also can read the digital output channel. Complete the following steps to read from the digital output channels.

  1. Place another FPGA I/O Node function on the block diagram. This FPGA I/O Node must execute after the FPGA I/O Node you added above.
  2. Click the element section of the FPGA I/O Node and select Module»Module/Channel from the shortcut menu, where Module represents a C Series module and Module/Channel is the channel you want to read.
  3. Right-click the new FPGA I/O Node and select Change to Read from the shortcut menu.