4-2
|
ni.com
Chapter 4
Developing with LabVIEW FPGA
Adding Items to the NI-793xR Target
You can add new or existing FPGA VIs, FPGA I/O items, FPGA FIFO, or FPGA clocks to the
NI-793xR target in the
Project Explorer
window. You can also use folders to organize items
under the FPGA target in the
Project Explorer
window. You might use the folder option for
organizing items if you intend to use multiple FPGA I/O items.
Complete the following steps to add an item to the NI-793xR target in the
Project Explorer
window.
1.
Right-click the FPGA target and select
New
from the shortcut menu to add a new item, such
as a VI, FPGA I/O item, or folder. Then select the item you want to add to the project. The
item appears in the
Project Explorer
window under the FPGA target.
2.
Double-click the new item in the
Project Explorer
window to edit or configure the item.
If you added an FPGA base clock, right-click the FPGA base clock and select
Properties
from the shortcut menu to configure the clock.
Note
You also can drag and drop existing items into the FPGA target in the
Project
Explorer
window.
Adding NI-793xR Target I/O
Complete the following steps to add target I/O for the NI-793xR and to access signals from any
instantiated CLIP on the block diagram:
1.
Place an FPGA I/O node on the FPGA target block diagram. The FPGA I/O node is located
on the palette under
Functions»FPGA I/O»FPGA I/O Node
.
2.
Right-click the FPGA I/O node and select
Add New FPGA I/O
.
3.
In the
New FPGA I/O
dialog box, select resources under
Available Resources
and add
them to
New FPGA I/O
using the right arrow button.
4.
To remove a resource, select the resource under
New FPGA I/O
and click the left arrow
button.
5.
Click
OK
.
Configuring a 10 MHz Reference Clock
Note
By default, the NI-793xR derives its 10 MHz Reference Clock from an
internal oscillator.
To source an external 10 MHz reference clock from the REF IN front panel, complete the
following steps.
1.
Once the target has been added to the project, expand the FPGA target and right-click
Reference Clock Source (Onboard 10 MHz Clock) and select
Properties
.
2.
Enable the
Use the external front panel clock input as the reference clock
checkbox.
3.
Click
OK
.