To download NI software, including the products shown below, visit ni.com/downloads.
Overview:
The bitfiles linked below provide simple discrete (digital) IO and PWM generation/measurement personalities for supported R-Series modules. Each personality enables individual configuration of all IO for the targeted R-Series modules on a line-by-line basis. All IO updates at a rate of once per tick of the 40 MHz Onboard Clock. This IP is intended for use with the Veristand FPGA Addon custom device, however it can also be used for other applications. If you plan to use these personalities outside of the intended use case, you must initialize your code by acknowledging the interrupt number 30 as a handshake mechanism to begin execution.
The configuration and result registers are named to indicate their corresponding digital line, bank, and physical connector. For example, “C0B1L2.ActiveEdge” corresponds to the ActiveEdge parameter for Line 2 of Bank 1 in Connector 0.
Supported Hardware:
Discrete Generation:
Description
The discrete generation personalities enable you to use supported R-Series modules to generate digital signals on the bank (port) level.
Configuration Registers
Discrete Measurement:
Description
The discrete measurement personalities enable you to use supported R-Series modules to measure digital signals on the bank (port) level. Readings can be further decomposed into line-by-line measurements by enabling bitpacking in the Veristand FPGA Addon Custom Device.
Configuration Registers
PWM Generation:
Description
The PWM generation personalities enable you to use supported R-Series modules for PWM generation. When used, each digital line on the R-Series module can be used to generate a unique PWM signal.
Configuration Registers
PWM Measurement:
Description
The PWM measurement personalities enable you to use supported R-Series modules for measurement of PWM signals. When used, each digital line on the R-Series module can be utilized for measurement.
Configuration Registers
Result Registers
Description-Separate-2
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.