To use the native FPGA in VeriStand, you need a LabVIEW FPGA bitfile (.lvbitx) and an FPGA configuration file (.fpgaconfig). VeriStand includes bitfiles and FPGA configuration files for many FPGA targets. You can find them at
%Public%\Documents\National Instruments\NI VeriStand (Year)\FPGA. If you can't find the hardware you are using there, you must create a custom bitfile and FPGA configuration file.
LabVIEW FPGA bitfile
- Browse to %Public%\Documents\National Instruments\NI VeriStand 2023\FPGA\Templates.
- Create a copy of NI VeriStand IO PXI-7854R.lvproj for R Series Multifunction RIO FPGA target or NI VeriStand FPGA IO cRIO.lvproj for CompactRIO FPGA target.
- Replace the FPGA target with the hardware you are using.
- Remove the FPGA target from the project.
- Right-click My Computer and select New>>Targets and Devices.
- In the Targets and Devices dialog box, select the New target or device.
- Select the device you are using and click OK.
- Under the FPGA Target, add NI VeriStand FPGA DMA IO.vi for R Series Multifunction RIO FPGA target or VeriStand FPGA DMA IO - cRIO.vi for CompactRIO FPGA target, DMA_WRITE FIFO, and DMA_READ FIFO.
- Right-click the FPGA target and select New>>FPGA I/O to add the available I/O resources.
- Open the FPGA VI in LabVIEW.
- Update the FPGA VI based on the device and your purpose. The following figure shows that 4 AI channels and 4 AO channels are configured.
Note: Update the corresponding I/O nodes with the correct pins available on the FPGA target.
- After updating the FPGA VI, compile the VI into a bitfile.
FPGA Configuration File
- Download the source code of VeriStand FPGA Configuration Editor from Github.
- Open the VeriStand FPGA Configuration Editor.lvproj LabVIEW project and build the VCE build specification.
- After the build, the editor is located at \Tool_Veristand-FPGA-Configuration-Editor-vCE--master\Export\2014\EXE.
- Run the executable VCE.exe to open the editor.
- Open an FPGA configuration file located at %Public%\Documents\National Instruments\NI VeriStand (Year)\FPGA as the baseline, then update it according to the LabVIEW FPGA VI. The following figure shows that 4 AI channels and 4 AO channels are configured that align with the above LabVIEW FPGA VI.
Note: The Bitfile name in the FPGA configuration file should be the same as the name of the LabVIEW FPGA bitfile.
- Click Save, then Exit.
- Copy the custom bitfile and configuration file to %Public%\Documents\National Instruments\NI VeriStand (Year)\FPGA, then you can add your hardware under the native FPGA in VeriStand.