|Download Help (Windows Only)|
The FPGA Interface C API installer installs examples at the following location:
|Windows 8/7/Vista/Server 2008 R2||C:\Users\Public\Documents\National Instruments\FPGA Interface C API\Examples\|
|Windows XP/Server 2003||C:\Documents and Settings\All Users\Documents\National Instruments\FPGA Interface C API\Examples\|
If you select LabWindows/CVI support at install time, the FPGA Interface C API installer installs examples at the following location:
|Windows 8/7/Vista/Server 2008 R2||C:\Users\Public\Documents\National Instruments\CVI\samples\FPGA Interface C API\|
|Windows XP/Server 2003||C:\Documents and Settings\All Users\Documents\National Instruments\CVI\samples\FPGA Interface C API\|
The Examples directory contains the following subdirectories:
NI recommends that you make a copy of any example files before modifying them. If you inadvertently modify installed files and want to revert changes, delete the modified files and use Add or Remove Programs to repair the FPGA Interface C API software installation.
The Platforms subdirectory contains LabVIEW source code and versions of a C/C++ application created for certain supported operating systems and compilers. Each subdirectory under Platforms contains example source code and project files specific to the minimum compatible version of the given compiler. For example, the files at \Examples\Platforms\Windows\CVI\9.0\ work with LabWindows/CVI 9.0 or later.
The C/C++ application is written in Example.cpp or Example.c, depending on the compiler. The application tests the temperature of the FPGA device, then waits while toggling either the FPGA LED (on a CompactRIO device) or Connector0/DO0 (on an R Series device). Complete the following steps to prepare an example for use.
|Note If you are using an R Series device, expand the PCI or PXI FPGA target. If you are using CompactRIO or Single-Board RIO, expand the CompactRIO FPGA target. The FPGA VI may require some modification to work with your target.|
|Note The example application does not work without modification on NI 781x devices. The application reads the board temperature, and NI 781x devices do not support temperature reading. To use the example on these devices, you must remove the temperature-reading code.|
|Note For versions of LabVIEW earlier than 2010, right-click the example FPGA VI, select Compile, and wait for the compilation to complete.|
|Note For NI Linux Real-Time targets, refer to the Fixing Build Problems in NI Linux Real-Time Applications topic.|
The Arrays, FIFOs, and IRQs subdirectories contain example source code and generated header files. They provide examples of how to write code using the Array, FIFO, and IRQ functions, but they are not ready to run.