Programming Interfaces

NI CompactRIO Device Drivers Help

Edition Date: December 2017

Part Number: 373197L-01

»View Product Info
Download Help (Windows Only)

 Scan Interface Mode

Hardware Supported in the Scan Interface
 C Series
 CompactRIO
 Single-Board RIO

Scan Interface mode enables you to use C Series modules directly from LabVIEW Real-Time. Modules that you use in Scan Interface mode appear under the Real-Time Scan Resources item in the Project Explorer window and I/O channels appear as I/O variables under the modules. To use I/O variables, you drag and drop them from the Project Explorer window to LabVIEW Real-Time VIs.

In Scan Interface mode, you do not need to do any LabVIEW FPGA development. LabVIEW programs the FPGA for you with a fixed FPGA bitfile that communicates with all the C Series modules that Scan Interface mode supports. LabVIEW also sends C Series data to the Real-Time host to be displayed in I/O variables. Scan Interface mode also enables you to dynamically detect which types of C Series modules are plugged into chassis slots.

 LabVIEW FPGA Interface Mode

LabVIEW FPGA Interface mode enables you to use C Series modules from LabVIEW FPGA VIs. Modules that you use in LabVIEW FPGA Interface mode appear directly under the FPGA Target item in the Project Explorer window and I/O channels appear as FPGA I/O items under the FPGA Target. To access the I/O channels, you either configure FPGA I/O Nodes in a LabVIEW FPGA VI or drag and drop the I/O channels from the Project Explorer window to a LabVIEW FPGA VI block diagram.

In LabVIEW FPGA Interface mode, you can use LabVIEW FPGA programming to add more flexibility, customization, timing, and synchronization to your applications. To use the CompactRIO system in LabVIEW FPGA Interface mode, you must either have the LabVIEW FPGA Module installed on the host computer, or have access to a compiled bitfile that you can download to the FPGA. In either case, you use the Open FPGA VI Reference function in a LabVIEW Real-Time VI to access the FPGA VI or bitfile.

Hybrid Interface Mode

Hybrid Interface mode enables you to program custom FPGA functionality while simultaneously accessing some modules in Scan Interface mode. For example, you may want to use LabVIEW FPGA Interface mode to handle waveform buffered acquisition and inline processing, or you may be using some modules that do not support Scan Interface mode. To use Hybrid Interface mode, do the following:

  1. Set up your project in LabVIEW FPGA Interface mode.
  2. In the Project Explorer window, drag the modules you want to use in Scan Interface mode from the FPGA Target item to the Real-Time Scan Resources item. Alternatively, you can add modules under the Real-Time Scan Resources item by right-clicking the Real-Time Scan Resources item and selecting New»C Series Modules and letting LabVIEW discover the modules.

Related Topics

Configuring a Project with Connected Hardware
LabVIEW FPGA Interface Mode
Using I/O Variables
Using the Open FPGA VI Reference function

WAS THIS ARTICLE HELPFUL?

Not Helpful