Академический Документы
Профессиональный Документы
Культура Документы
TOPICS Plug-in DAQ devices Data Acquisition in LabVIEW Analog Input Data Logging Analog Output Counters Digital I/O
1
Signals
ai 0 ai 1 ai 2
Tasks
Timing and Triggering
On-line diagnostics
Scaling to voltage and physical units 50 kS/s with single point I/O Measurement multithreading
Instant calibration
Automatic selection of optimal gains Guaranteed lossless data 650 Alliance members Integration with LabVIEW Developer Exchange discussion forum Compatible with Legacy ISA Boards
no
Traditional NI-DAQ Specific VIs for performing: Analog Input Analog Output Digital I/O Counter operations
NI-DAQmx Next generation driver: VIs for performing a task One set of VIs for all measurement types
10
Analog Input
11
12
Data Logging
It is often necessary to permanently store data that is acquired from the DAQ device LabVIEW includes the ability to read and write a LabVIEW Measurement File LabVIEW Measurement File is an ASCII text file
13
Analog Output
14
15
Counters
A counter is a digital timing device Typical uses of a counter: Gate Output Event counting Frequency measurement Count Register Period measurement Source Position measurement Pulse generation
Count register Stores the current count of the counter Source Input that causes the counter to increment each time it toggles Gate Input that is used to enable or disable the function of the counter Output Signal that generates pulses or a series of pulses
16
17
Summary
MAX is the primary configuration and testing utility that is available for the DAQ device. The DAQ Assistant is used to configure the DAQ device and perform data acquisition. Most application can use the DAQ Assistant. For applications that require advanced timing and synchronization use the VIs that come with NI-DAQmx. The DAQ Assistant can perform Analog Input, Analog Output, Digital I/O, and Counter operations.
18
19
Computer
20
GPIB Communication
GPIB Interface
GPIB Instruments
GPIB Cable
Standards Introduction
1965 1975 1987 1990 1992 1993 1999 HP designs HP-IB (Hewlett Packard Interface Bus) HP-IB becomes IEEE 488 IEEE 488.2 adopted IEEE 488 becomes IEEE 488.1 SCPI (Standard Commands for Programmable Instruments) added to IEEE 488.2 IEEE 488.2 revised HS488 proposed
HS488 approved
22
DIO1 DIO2 DIO3 DIO4 EOI DAV NRFD NDAC IFC SRQ ATN SHIELD
13
12 24
DIO5 DIO6 DIO7 DIO8 REN GND (TW PAIR W/DAV) GND (TW PAIR W/NRFD) GND (TW PAIR W/NDAC) GND (TW PAIR W/IFC) GND (TW PAIR W/SRQ) GND (TW PAIR W/ATN) SIGNAL GROUND
23
NI-VISA
25
26
27
Serial
GPIB
VXI
PXI
Platform independent VISA is the backbone of the IVI and Plug & Play Instrument Drivers
Interface independent Must know SCPI command set to program directly with VISA
28
VISA Terminology
ResourceInstrument, Serial Port, or Parallel Port SessionConnection to a Resource Instrument DescriptorResource location
Format: Interface Type::Address::INSTR
Examples:
29
VXI
GPIB-VXI
30
31
Instrument Drivers
More than 1200 LabVIEW Instrument drivers Programming simplified to high-level API
32
33
34
35
Action/Status
Data
Utility
Close
36
HP34401A Initialize.vi
Error cluster
37
38
Serial Communication
Popular means of communication between computer and peripheral device
39
RS-422
DCE or DTE 8-pin
RS-485
Multidrop
40
Serial Communication
Terminology Baud rate bits per second Data bits inverted logic and LSB first Parity optional error-checking bit Stop bits 1, 1.5, or 2 inverted bits at data end Flow control hardware and software handshaking options
41
42
Summary
LabVIEW can communicate with any instrument that connects to your computer if you know the interface type Use the Measurement & Automation Explorer (MAX) to detect, configure, and test your GPIB interface and instruments Use the Instrument I/O Assistant for easy and fast GPIB and serial programming. An instrument driver eliminates the need for your to have detailed knowledge of the specific strings used by an instrument Instrument Library more than 2000 instruments supported Instrument driver VIs share a common hierarchy and come with an example to help you get started
43
Lesson 11 VI Customization
TOPICS Configuring Appearance of Front Panel SubVI Front Panels Keyboard Shortcuts VI Properties Customizing Palettes
44
Customizing VI Properties
Access VI Properties by right-clicking the icon pane or selecting it from the File menu Affects every instance of that VI in all applications
45
Window Appearance
Only affects VI panel while VI is running
46
Window Size
Set minimum and current panel size Adjust size of panel relative to the monitor Scale objects on panel as window resizes
47
48
49
Key Navigation
Assigns keyboard strokes to front panel controls
50
Preventing Editing of a VI
Opens, runs, and closes LabVIEW without user intervention Remove menus, Abort button, etc Save with Options
51
Summary
Use VI Properties to set VI execution, window, and documentation options Use SubVI Node Setup to set execution options for a single instance of a subVI Use the Key Navigation option to assign front panel controls to a keyboard key combination Use the Save with Options from the file menu to make backups of your VIs You can often edit VIs by aborting them from the diagram of another VI
52
Info-LabVIEW Listserve
User-sponsored Internet mailing list Send subscription messages to the Info-LabVIEW list processor listmanager@pica.army.mil Send other administrative messages to the Info-LabVIEW list maintainer at info-labview-REQUEST@pica.army.mil Post a message to subscribers at info-labview@pica.army.mil
54
LabVIEW Publications
LabVIEW Technical Resource quarterly newsletter by LTR Publishing LabVIEW Graphical Programming and LabVIEW Power Programming by Gary W. Johnson, McGraw-Hill LabVIEW for Everyone by Lisa K. Wells and Jeffrey Travis, Prentice-Hall LabVIEW Signal Processing by Mahesh Chugani, Abhay Samant, and Michael Cerna, Prentice-Hall LabVIEW Applications and Solutions by Rahman Jamal and Herbert Pichlik, Prentice-Hall
55