![background image](http://html1.mh-extra.com/html/national-instruments/ni-5791r/ni-5791r_user-manual-and-specifications_3383568014.webp)
Using the Included Streaming Example
Complete the following steps to run an example that acquires a waveform using the NI 5791.
1.
Connect an antenna to the RX IN connector on the front panel of the NI 5791.
2.
Launch LabVIEW.
3.
Select
File
»
Open Project
.
4.
Navigate to
<labview>\examples\instr\ni579x\Streaming
.
5.
Select
Streaming.lvproj
.
6.
In the
Project Explorer
window, select
Rx Streaming (Host).vi
under
My Computer
to
open the host VI. The Open FPGA VI Reference function in this VI uses the NI 7966R as
the FPGA target by default. If you are using an NI FlexRIO FPGA module other than the
NI 7966R, complete the following steps to change to the FPGA VI to support your target.
a)
Specify the center frequency in the
LO Frequency [Hz]
control.
b)
On the block diagram, right-click the Open FPGA VI Reference (PXI-7966R)
function and select
Configure Open FPGA VI Reference
.
c)
In the
Configure Open FPGA VI Reference
dialog box, click the
Browse
button
next to the
Bitfile
button.
d)
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.
e)
Click the
Select
button.
f)
Click
OK
in the
Configure Open FPGA VI Reference
dialog box.
g)
Save the VI.
7.
On the front panel, in the
RIO Device
pull-down menu, select an NI 5791 resource that
corresponds with the target configured in step 6.
8.
Configure your measurement.
a)
Specify the center frequency in the
LO Frequency [Hz]
control.
b)
Specify the reference level in the
Reference Level [dBm]
control.
c)
Specify the sample rate in the
Sample Rate [S/s]
control.
9.
Click the
Run
button to run the VI.
10. The VI acquires data and displays the captured waveform on the
Power Level, Power
Spectrum, and I & Q Data
graphs.
11. Click the
STOP
button to stop the VI.
12. Close the VI.
Creating a LabVIEW Project
This section explains how to set up your target and create an FPGA VI and host VI for data
communication. This section focuses on proper project configuration, proper CLIP
configuration, and how to access NI 5791 I/O nodes.
Creating a Project
1.
Launch LabVIEW, or if LabVIEW is already running, select
File
»
Create Project
.
2.
In the
Create Project
dialog box, select
LabVIEW FPGA Project
and click
Finish
.
3.
Select
FlexRIO on My Computer
and click
Next
.
14 | NI 5791R User Manual and Specifications | ni.com