Acquiring Data from a Module (FPGA Interface)
- Updated2025-10-09
- 2 minute(s) read
The information in this topic applies to analog input modules with a master timebase.
|
|
|
The module input channels are sampled simultaneously at the data rate configured for the module. Use the Start and Stop channels to put the module in and out of acquisition mode.
- You can not access module properties when a module is in acquisition mode.
- You can not access TEDS information, if supported, when a module is in acquisition mode.
Example
The module Getting Started (FPGA) VI at labview\examples\CompactRIO\Module Specific\<module>\<module> Getting Started shows how to read from a module.
Putting the Module in Acquisition Mode
Complete the following steps to put the module in acquisition mode.
- Configure an FPGA I/O Node with the Start channel of the module.
-
Wire a Boolean constant set to TRUE to the
Start input of the FPGA I/O Node.
A synchronization pulse is sent to the module. The module starts acquiring data at the data rate you configure.
Reading Data from the Module
When the module starts acquiring data, you can use an FPGA I/O Node to read data from the module.
Connect the AI output of the FPGA I/O Node [1]1 For the NI 9770, connect the RF In/I or RF In/Q items. to various types of functions, including an FPGA Memory function or an FPGA FIFO function.
To ensure that the VI reads the data synchronously when reading multiple channels on the module, place the channels in the same FPGA I/O Node.
The module internally acquires data at a specified rate. The FPGA I/O Node does not return data until new data has been acquired by the module.
Exiting Acquisition Mode
Complete the following steps to exit acquisition mode.
- Configure an FPGA I/O Node with the Stop channel of the module.
-
Write a TRUE to the Stop input.
The module is no longer in acquisition mode. You can now access its properties or, for some modules, TEDS information.
1 For the NI 9770, connect the RF In/I or RF In/Q items.