National Instruments NI 78xxR Скачать руководство пользователя страница 8

Getting Started with R Series Intelligent DAQ

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

The examples are configured for a specific target and may not be configured for your device. To use the 
examples 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.

Right-click 

My Computer

 and select 

New»Targets and Devices

 to create a new target 

in the

Project Explorer

 window.

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.

Содержание NI 78xxR

Страница 1: ...Components The following items are necessary to set up and use the NI PCI PXI 78xxR The following software packages LabVIEW LabVIEW FPGA Module NI RIO device drivers Optional LabVIEW Real Time Module Refer to Step 1 Install Application Software and Driver for information on R Series software support Development computer or PXI CompactPCI chassis and PXI CompactPCI embedded controller running Windo...

Страница 2: ...ilable at ni com manuals In LabVIEW 8 0 or later you can also view the LabVIEW Manuals directory that contains these documents by selecting Start All Programs National Instruments LabVIEW LabVIEW Manuals Step 2 Install the Device Accessories and Cables This section describes how to unpack and install the NI PXI 78xxR and NI PCI 78xxR devices Note You must install NI RIO before installing the NI 78...

Страница 3: ...o the Read Me First Safety and Radio Frequency Interference document packaged with your PXI chassis or device before removing equipment covers or connecting or disconnecting any signal wires 2 Remove the computer cover and or the expansion slot cover on the computer or the filler panel of an unused PXI slot on the PXI chassis 3 Touch any metal part of the computer or chassis to discharge any stati...

Страница 4: ...lace 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 Programs National Instruments Measurement Automation to open Measurement Automation Explorer MAX 2 Expand Devices and Interfaces 3 Verify that the device appears under Devices and Interfaces RIO Devices 1 PXI C...

Страница 5: ...GND 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 DIO25 DIO26 DIO27 DIO29 DIO30 DIO32 DIO34 DIO36 DIO38 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 61 ...

Страница 6: ...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 61 27 62 28 63 29 64 30 65 31 66 32 67 33 68 34 1 No Connect on the NI 7830R DGND DGND DGND DGND DGND DGND DGND DGND DGND DGND DGND DGND DGND DGND DGND DGND DGND DGND DGND DGND DGND DGND DGND DGND DGND ...

Страница 7: ... SHC68 68 RMIO NI Recommended 0 NI SCB 68 High performance shielded cable wired specifically for signal connection from the RMIO connector to the NI SCB 68 terminal block to provide higher signal integrity and noise immunity SHC68 68 RDIO NI Recommended 1 2 NI SCB 68 High performance shielded cable wired specifically for signal connection from the RDIO connector to the NI SCB 68 terminal block to ...

Страница 8: ...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 ...

Страница 9: ...he new target and click OK i In the Project Explorer window right click the original FPGA target and select Remove to delete it from the project j Save the project to a new directory by selecting File Save As 6 Click the Run button in Analog Input Host vi to run the VI The host VI displays the data being acquired by the R Series device To view real world data wire a signal source or voltage source...

Страница 10: ...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 AO0 Note This example reflects the naming conventions and graphic interface of LabVIEW 8 5 Items such as FPGA I O resources may appear differently if you are using earlier versions of LabVIEW 4 Click...

Страница 11: ... 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 the FPGA VI Reference In terminal of the new Read Write Control Wire the FPGA Reference Out terminal of the new Read Write Control to the FPGA VI Reference In terminal of the existing Read Write Control...

Страница 12: ... 0 Where to Go From Here The following resources contain information for writing applications and taking measurements with R Series Intelligent DAQ devices LabVIEW FPGA documentation Getting Started with LabVIEW FPGA 8 x This KnowledgeBase available at ni com kb provides links to the top resources that can be used to assist in getting started with programming in LabVIEW FPGA FPGA Module book in th...

Страница 13: ... 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 support you have access to everything from troubleshooting and application development self help resources to email and phone assistance from NI Application Engineers National Instruments corporate headquarters is located at 11500 ...

Страница 14: ... Instruments trademarks Other product and company names mentioned herein are trademarks or trade names of their respective companies For patents covering National Instruments products refer to the appropriate location Help Patents in your software the patents txt file on your media or ni com patents 2003 2008 National Instruments Corporation All rights reserved 373256F 01 Apr08 ...

Отзывы: