Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
TOPICS
A. Hardware Setup and Installation
B. Target Configuration
C. Input and Output Hardware Configuration
D. Connecting to the Target in LabVIEW
ni . com / traini
ng
Configuring Your Hardware
ni . com / traini
ng
A. Hardware Setup and
Installation
• Refer to the documentation for your target
hardware for hardware setup and
installation instructions
• Target hardware arrives pre-installed with
operating system
• Classroom systems have been pre-
installed and set up
ni . com / traini
ng
Hardware Setup and
Installation, cont.
• hidden slide – do not delete
ni . com / traini
ng
Host PC Setup and Installation
ni . com / traini
ng
Configuring Your Hardware
ni . com / traini
ng
B. Target Configuration
• Use one of the following connection
methods:
• Connect target and host computer to the
same local area network
• Connect target directly to host computer
using a CAT-5 crossover cable
ni . com / traini
ng 7
Detect the Remote Target
• Use the Measurement & Automation Explorer
(MAX) to detect and configure your RT target
systems
• Host computer must be on the same subnet to
configure the
RT Series target systems
ni . com / traini
ng 8
Configured and Unconfigured
Systems
• An unconfigured RT system will have an IP
address of 0.0.0.0.
ni . com / traini
ng
Target Configuration—do not
delete slide, used for notes
ni . com / traini
ng
Assign IP Address to Target
ni . com / traini
ng 12
Static IP – Network Settings
• Static IP Address Configuration for RT
Target
4
2
blank.
leave them 3
available,
not
and DNS are
If a Gateway
1
ni . com / traini
ng 13
Static IP – Crossover Cable
• Crossover Cable
requires
both PC and RT
Target to
use static IP
addresses
• Set PC to use static
IP address
−Control
Panel»Network
Connections
−Local Area
Connection» ni . com / traini
ng 14
Static IP – Crossover Cable
1
ni . com / traini
ng 16
Assign IP Address – Automatic
IP
Automatic IP Address from DHCP Server
•
ni . com / traini
ng 17
Add/Remove Software on
Target
ni . com / traini
ng 18
Exercise 2-1: Configure
Hardware
ni . com / traini
ng
Configuring Your Hardware
ni . com / traini
ng
C. Input and Output Hardware
Configuration
• Use MAX to configure the remote I/O
hardware if necessary
• Refer to product-specific documentation
for assistance
ni . com / traini
ng
Demonstration
ni . com / traini
ng
Configuring Your Hardware
ni . com / traini
ng
D. Connecting to the Target in
LabVIEW
For LabVIEW to connect to the RT target
•
ni . com / traini
ng
LabVIEW Projects
ni . com / traini
ng
Project Explorer Views
ni . com / traini
ng
Project Libraries
ni . com / traini
ng
Creating a Project
• Select File»New
Project to open
the Project Explorer
window
• Project starts with
the
My Computer
Target
− Add VIs that run on
the
host computer to
the
ni . com / traini
My Computer ng
Creating a Real-Time Target
• Right-click the project
in the Project
Explorer window and
selecting
New»Targets and
Devices
• Select the type of RT
target
• Select a device
ni . com / traini
ng
Connecting to a Target
• Ways to connect to
a target:
• Right-click the RT
target and select
Connect
• Run a VI on the
target
ni . com / traini
ng
Adding VIs to a Target
• Any VIs added to the
target become
targeted to that
system
− Right-click to
create new VIs or
add existing VIs
− Drag VIs from
Windows Explorer
or other project
folders
• Targeted VIs
ni . com / traini
automatically ng
Running VIs on a Target
• When you run an RT VI, the compiled code
for the VI downloads to the RT target
• The compiled code on the RT target and the
VI on the RT host exchange data through
front panel communication
Host PC RT Target
ni . com / traini
ng
Closing a Front Panel
Connection Without Closing
VIs
• Selecting File»Exit while a
VI runs results in the dialog
box at right:
• Right-click the target and select
Disconnect
− RT VIs continue to run on the target, but
no longer exchange front panel
communication or debugging information
with the host
− Reconnecting to the target automatically
opens and
re-establishes a connection with any
ni . com / traini
ng
Exercise 2-2: Targeting
Real-Time Hardware
the course.
•
ni . com / traini
ng
Summary – Quiz
ni . com / traini
ng
Summary – Quiz
ni . com / traini
ng
Summary – Quiz Answer
ni . com / traini
ng
Summary – Quiz
ni . com / traini
ng
Summary – Quiz Answer
ni . com / traini
ng