Download LabVIEW Real-Time Module User Manual

Transcript
Contents
Real-Time FIFO VIs ....................................................................................... 3-8
Communicating with Applications on an RT Target .................................................... 3-8
Front Panel Communication ........................................................................... 3-9
Network Communication ................................................................................ 3-10
Creating Communication VIs with the RT Communication Wizard ............................ 3-11
Exploring Communication Methods ............................................................................. 3-12
Shared Memory............................................................................................... 3-13
Network Communication ................................................................................ 3-14
TCP ................................................................................................... 3-14
UDP .................................................................................................. 3-14
DataSocket (ETS Only) .................................................................... 3-15
VI Server........................................................................................... 3-16
SMTP (ETS Only) ............................................................................ 3-16
Bus Communication........................................................................................ 3-17
Serial (ETS Only) ............................................................................. 3-17
CAN (ETS Only) .............................................................................. 3-17
IrDA Wireless Communication (ETS Only)................................................... 3-17
Chapter 4
Timing Applications and Acquiring Data
Timing Control Loops ................................................................................................... 4-1
Timing Control Loops Using Software........................................................... 4-1
Wait (ms) .......................................................................................... 4-1
Wait Until Next ms Multiple Function............................................. 4-2
Real-Time Timing VIs...................................................................... 4-4
LabVIEW Timed Loop (ETS Only) ................................................. 4-4
Timing Control Loops Using Hardware ......................................................... 4-4
Acquiring Data with VIs Running on an RT Target ..................................................... 4-5
RT Series Data Acquisition Devices (ETS Only) ........................................... 4-5
RT Series FieldPoint Modules (ETS Only) .................................................... 4-5
NI PCI-7831 Plug-in Device (ETS and RTX) ................................................ 4-5
Chapter 5
Optimizing Applications
Avoiding Shared Resources .......................................................................................... 5-1
Memory Allocations and Preallocating Arrays............................................... 5-1
Casting Data to Proper Data Types................................................................. 5-3
Reducing the Use of Global Variables............................................................ 5-3
Avoiding Contiguous Memory Conflicts ...................................................................... 5-3
Avoiding SubVI Overhead ............................................................................................ 5-5
Setting VI Properties ..................................................................................................... 5-5
Real-Time Module User Manual
vi
ni.com