Using Your Device with a LabVIEW FPGA Example VI

Note You must install the NI FlexRIO Adapter Module Support software before running this example. Refer to the NI FlexRIO FPGA Module Installation Guide and Specifications for more information about installing your software.

The NI FlexRIO Adapter Module Support software includes a variety of example projects to help you create your LabVIEW FPGA application. This section explains how to use an existing LabVIEW FPGA example project to generate and acquire samples with the NI-5734R. This example requires at least one BNC cable for connecting signals to your device.

Note The examples available for your device are dependent on the version of the software and driver you are using. For more information about which software versions are compatible with your device, visit ni.com/info and enter rdsoftwareversion as the Info Code.

Each NI-5734R example project includes the following components:

  • A LabVIEW FPGA VI that can be compiled and run on the FPGA embedded in the hardware
  • A VI that runs on Windows that interacts with the LabVIEW FPGA VI
Note In the LabVIEW FPGA Module software, NI FlexRIO adapter modules are referred to as IO Modules.

Complete the following steps to run an example that acquires a waveform on AI 0 of the NI-5734.

  1. Connect one end of an BNC cable to AI 0 on the front panel of the NI-5734 and the other end of the cable to your device under test (DUT).
  2. Launch LabVIEW.
  3. In the Getting Started window, click Find Examples to display the NI Example Finder.
  4. In the NI Example Finder window, select Hardware Input and Output»FlexRIO»IO Modules»NI 573X»NI 573y (where y represents the device number you are using).
  5. Select NI 573y - Getting Started.lvproj. Wait for the project to finish opening.
  6. In the Project Explorer window, open NI 573y - Getting Started (Host).vi under My Computer. The host VI opens. The Open FPGA VI Reference function in this VI uses the NI 7952R as the FPGA target by default. If you are using an NI FlexRIO FPGA module other than the NI 7952R, complete the following steps to change to the FPGA VI to support your target.
    1. Select Window»Show Block Diagram to open the VI block diagram.
    2. On the block diagram, right-click the Open FPGA VI Reference (PXI-7952R) function and select Configure Open FPGA VI Reference.
    3. In the Configure Open FPGA VI Reference dialog box, click the Browse button next to the Bitfile button.
    4. In the Select Bitfile dialog box that opens, select the bitfile for your desired target. The bitfile name is based on the adapter module, example type, and FPGA module.
    5. Click the Select button.
    6. Click OK in the Configure Open FPGA VI Reference dialog box.
    7. Save the VI.
  7. On the front panel, in the RIO Resource pull-down menu, select a resource that corresponds with the target configured in step 6.
  8. Select AI 0 in the AI Channel control.
  9. Set the Trigger Level (V) and Record Size controls to the desired value.
  10. In the Trigger Type control, you can select either Software Trigger or Data Edge. If you select Software Trigger, the VI acquires data every time you click the Software Trigger button on the front panel of the VI. If you select Data Edge, the VI acquires data every time an edge occurs.
  11. Set the Sample Rate control to the default sample rate of your device.
    Note The Sample Rate control does not change the sample rate of your device; it only adjusts the time display.
  12. Click the Run button to run the VI.
  13. Click the Software Trigger button if you selected Software Trigger in the Trigger Type control. The VI acquires data and displays the captured waveform on the Acquired Waveform graph as shown in Figure 5.
  14. Click the STOP button to stop the VI. Close the VI.
Figure 5. NI 573x - Getting Started (Host) VI Front Panel

1378