background image

Getting Started with R Series Multifunction RIO

8

ni.com

Step 4. Using Your NI 78

xx

R Device with a LabVIEW FPGA Example VI 

(NI 783

x

R/784

x

R/785

x

R Only)

The NI-RIO driver installation includes a variety of example projects to help get you started. This 
section demonstrates how to use an existing LabVIEW FPGA example project to take an analog input 
measurement with the NI 783

x

R/784

x

R/785

x

R device.

Note

Examples available for your device are dependent on the device-specific minimum software 

requirements. For more information on software requirements for your device, refer to 

Step 1. Install 

Application Software and Driver

.

Each R Series example project includes:

A LabVIEW FPGA VI that can be compiled and run embedded in FPGA hardware

A Host VI that runs in LabVIEW for Windows and interacts with the LabVIEW FPGA VI

Each example is configured for a specific target and might not be pre-configured for your device. To use 
an example for a different target, you must copy the items contained within the VI to a new FPGA target.

Note

To acquire real-world data in the analog input measurement taken in this example, 

you will also need to provide your own signal source, such as a battery or function generator.

To access the analog input example project and take a measurement, complete the following steps:

1.

Launch LabVIEW.

2.

In the 

Getting Started

 window, click 

Find Examples

 to display the NI Example Finder.

3.

In the 

NI Example Finder

 window, select 

Hardware Input and Output»R Series

. This directory 

holds several example projects designed to help you get started using your R Series device.

4.

Select 

Basic I/O

 and then select 

Analog Input - R Series.lvproj

.

5.

The Analog Input example project opens in the 

Project Explorer

 window. This project is 

precompiled for the NI PCI-7831R. If you are not using an NI PCI-7831R, then you need 
to copy the example files into a new target directory and recompile the code. To compile 

Analog Input - R Series.lvproj

 for a new R Series target, complete the following steps:

a.

In the

Project Explorer

 window, right-click 

My Computer

 and select 

New»Targets and 

Devices

 to create a new target.

b.

Select the 

Existing target or device

 radio button.

c.

Expand the 

FPGA Target

 folder to display a list of the R Series devices you can add. 

From the list, select the device for which you want to create a new directory, and click 

OK

If your R Series device does not appear under this tree structure, refer to the 

Step 2. Install the 

Device, Accessories, and Cables

 section and confirm that the device was installed correctly.

d.

In the 

Project Explorer

 window, expand the original FPGA target and locate the 

Items to 

Move

 folder. This folder holds all the target VIs and I/O resources necessary to run the 

example VI. Click on the folder and drag it to the new FPGA Target.

Note

The new target must support all of the analog input items included in this folder.

e.

Right-click the 

Analog Input (FPGA).vi

 file within the 

Items to Move

 folder and select 

Compile 

to recompile the FPGA VI. Recompiling takes several minutes. When the bitstream 

generation is complete, close the 

LabVIEW FPGA Compile Server

.

f.

Open 

Analog Input (Host).vi

 under 

My Computer

 and switch to the block diagram to update 

the host VI and its references to the FPGA VI.

Summary of Contents for NI PXI-7851

Page 1: ...PXI 7851...

Page 2: ...Devices NI 78xxR Required Components The following items are necessary to set up and use the NI 78xxR The following software packages LabVIEW LabVIEW FPGA Module NI RIO device drivers Optional LabVIEW...

Page 3: ...uctions for the NI RIO driver The listed documents are available at ni com manuals In LabVIEW 8 0 or later you can also view the LabVIEW Manuals directory that contains these documents by selecting St...

Page 4: ...irst Safety and Electromagnetic Compatibility document packaged with your PXI chassis or device before removing equipment covers or connecting or disconnecting any signal wires 2 Remove the computer c...

Page 5: ...R replace the computer cover if applicable 7 Plug in and power on the computer or PXI chassis To confirm that your device is recognized complete the following additional steps 1 Select Start All Progr...

Page 6: ...D DGND DGND DGND 5V 5V DIO28 DIO31 DIO33 DIO35 DIO37 DIO39 DIO0 DIO2 DIO3 DIO5 DIO6 DIO7 DIO8 DIO1 DIO4 DIO9 DIO10 DIO11 DIO12 DIO13 DIO14 DIO15 DIO16 DIO17 DIO18 DIO19 DIO20 DIO21 DIO22 DIO23 DIO24 D...

Page 7: ...1 AI5 1 AIGND4 AI4 1 AI3 AIGND2 AI2 AI1 AIGND0 AI0 35 1 36 2 37 3 38 4 39 5 40 6 41 7 42 8 43 9 44 10 45 11 46 12 47 13 48 14 49 15 50 16 51 17 52 18 53 19 54 20 55 21 56 22 57 23 58 24 59 25 60 26 6...

Page 8: ...available at ni com manuals Table 1 R Series Connectivity Options Cable Connector Accessory Description NI 781xR NI 783xR 784xR 785xR SHC68 68 RMIO NI Recommended 0 NI SCB 68 High performance shielde...

Page 9: ...projects designed to help you get started using your R Series device 4 Select Basic I O and then select Analog Input R Series lvproj 5 The Analog Input example project opens in the Project Explorer w...

Page 10: ...earlier do not use the Configure Open FPGA VI Reference dialog to update the FPGA target in the host VI For LabVIEW version 8 5 1 and earlier right click the Open FPGA VI Reference function on the bl...

Page 11: ...om the shortcut menu as shown in the following figure 2 In the Project Explorer window right click the FPGA target and select New FPGA I O 3 In the New FPGA I O dialog box expand Connector0 and select...

Page 12: ...from the FPGA Interface palette between the Invoke method and the Read Write Control that already exists on the block diagram c Wire the FPGA VI Reference Out terminal of the Invoke Method node to th...

Page 13: ...channel 0 Where to Go From Here The following resources contain information for writing applications and taking measurements with R Series Multifunction RIO devices Software Documentation LabVIEW FPGA...

Page 14: ...the LabVIEW FPGA platform To access the LabVIEW FPGA IPNet visit ni com ipnet Where to Go for Support The National Instruments Web site is your complete resource for technical support At ni com suppo...

Page 15: ...er product and company names mentioned herein are trademarks or trade names of their respective companies For patents covering National Instruments products technology refer to the appropriate locatio...

Reviews: