Professional Documents
Culture Documents
4
QUICK REFERENCE LabWindows/CVI Using Function Panels
Use interactive function
™ ™
panels to generate library
LabWindows /CVI LabWindows/CVI meets the changing needs of test engineers with an
interactive development environment designed for virtual instrumentation.
calls, test the calls, and
insert them into the program.
A function panel is a
graphical representation of
a LabWindows/CVI function
LabWindows/CVI is a proven test and measurement ANSI C development environment that With easy-to-use development tools, you can quickly create, configure, and its parameters.
increases the productivity of engineers and scientists. LabWindows/CVI streamlines
and display measurements during program design and verification.
application development with hardware configuration assistants, comprehensive debugging
tools, and interactive execution utilities you can use to run functions at design time. LabWindows/CVI automates much of the manual coding and compiling.
Use the built-in measurement libraries to rapidly develop complex applications such as
multithreaded programs and ActiveX server/client programs. The flexibility of LabWindows/CVI
1 Designing User Interfaces 5 Editing Source Code
optimizes data acquisition, analysis, and presentation in test and measurement applications.
Design graphical user interfaces (GUIs) in the intuitive User Interface Editor. Complete your program using the built-in source editor. Use the
Select from controls designed specifically for instrumentation. source code completion options to view functions, variables,
prototypes, and help within the Source window. You also can
access input selection dialog boxes for parameters and declare
System Requirements Installation parameter variables from within the Source window.
• Personal computer using a Pentium 600 1. Insert the CD into the CD drive.
or higher microprocessor If the CD does not run automatically,
open Windows Explorer, right-click the
• Microsoft Windows CD drive icon, and select AutoPlay.
2000/NT SP6/XP
2. Click Install LabWindows/CVI
• 800 x 600 resolution (or higher) video on the National Instruments
adapter LabWindows/CVI screen.
• Minimum of 128 MB of RAM, 256 MB 3. Continue to follow the instructions
recommended on the screen.
• 150 MB free hard disk space
• Microsoft-compatible mouse
2 Customizing Controls
Customize each GUI control with easy-to-use dialog boxes.
Product Resources
6 Debugging
National Instruments provides extensive Documentation Resources Use LabWindows/CVI debugging tools to catch common programming mistakes.
product resources for new and experienced The patented User Protection feature automatically checks for invalid program
LabWindows/CVI users. • LabWindows/CVI Help—Use the behavior. Set breakpoints and use tooltips to pause program execution and view
LabWindows Help to access or modify variable values.
Online Resources comprehensive information about
For complete technical information, developer LabWindows/CVI windows, functions,
exchange opportunities, and the latest news tools, and menus. To launch the
about LabWindows/CVI, visit ni.com/cvi: LabWindows/CVI Help from
LabWindows/CVI, select Help»Contents.
• Technical support
• LabWindows/CVI Bookshelf—Use the
• Online community LabWindows/CVI Bookshelf to search PDF
versions of the following LabWindows/CVI
• Sample programs documents:
– LabWindows/CVI Release Notes
• Application notes and white papers
– Getting Started with LabWindows/CVI
• Add-on products – LabWindows/CVI Instrument Driver
Developers Guide
• Training information
– Application notes
• Product tutorials – White papers
CVI™, DIAdem™, IVI™, National Instruments™, NI™, ni.com™, NI Developer Zone™, and NI-DAQ™ are trademarks of National Instruments Corporation.
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 CD, or ni.com/patents. For a listing of the
copyrights, conditions, and disclaimers regarding components used in USI (Xerces C++, ICU, and HDF5), refer to the USICopyrights.chm.
© 2003–2004 National Instruments Corporation. All rights reserved. Printed in Ireland.
*323551B-01*
323551B-01 Sep04
323551b.qxp 7/7/2004 3:36 PM Page 2 (2,1)
Signal Generation
Utility Library
The Utility Library contains functions that perform various
operations, including using the system timer, managing disk
files, launching another executable, and using multiple threads.
Timer/Wait
NI-DAQmx Library
The NI-DAQmx Library contains functions that communicate
with and control data acquisition devices.
Task Configuration/Control
ActiveX Library
The ActiveX Library contains functions that create and control
ActiveX servers. Use these functions in conjunction with the
ActiveX Controller Instrument Drivers, which you can generate
using the Create ActiveX Controller Wizard. Also use the
ActiveX Library functions with ActiveX server code, which you
acquisition, analysis, and user interface creation. This chart illustrates classes in each Array Operations Advanced can generate using the Create ActiveX Server Wizard.
Date/Time
library. To find specific functions, use <Ctrl-Shift-P> in the Source window. You also 1D Operations Channel Creation/Configuration Variant Related Functions
Keyboard
can use the Library Tree to browse to and search for functions. 2D Operations Create Analog Input Channels Passing Values as Variants
File Utilities
Complex Operations Position Assigning Values to Variants
Directory Utilities
Complex Numbers Create TEDS Analog Input Channels Querying the Type of a Variant
Multithreading
User Interface Library 1D Complex Operations Thread Pool Position Retrieving Values from Variants
The User Interface Library contains functions that programmatically control the user interface. Signal Processing Create Analog Output Channels
Call Scheduling Functions Array Functions
Panels Timers Frequency Domain Advanced Functions Create Digital Input Channels C Array to SafeArray Conversion
Menu Structures Tables Time Domain Callbacks Create Digital Output Channels SafeArray to C Array Conversion
Menu Bars Splitters IIR Digital Filters Thread Safe Queue Create Counter Input Channels Querying SafeArrays
Menus and Submenus ActiveX Controls Cascade Filter Functions General Functions Position BSTR Functions
Menu Items Data Binding Functions Filter Information Utilities Reading/Writing Create Counter Output Channels Resource Management
Control Menus Pop-up Panels One-Step Filter Functions Callbacks Timing Error Processing
Controls/Graphs/Strip Charts Message/Prompt Popups Old-Style Filter Functions Thread Safe Variable Triggering Configuration
Pictures Bitmaps Real Matrices Signal Routing DLL Server Entry Points
The IVI Library contains functions that program and control IVI drivers. IVI-compliant drivers have a standard The VISA Library provides a single interface library for Status Functions
Callbacks
interface, so you can interchange similar instruments without changing your code. controlling VXI, GPIB, USB, and serial instruments.
Locking
Instrument Driver Session Range Tables Resource Template
Thread-Specific Status VXI Library
Locking Range Table Entries Resource Management The VXI Library contains functions that communicate with and
GPIB 488.2 Functions control VXI devices. RS-232 Library
Channels Get Range Table Num Entries Resource-Specific Operations
The RS-232 Library contains functions that control multiple
Device I/O
Basic Message-Based I/O System Configuration RS-232 ports using interrupt-driven I/O.
Repeated Capabilities Get ViInt32 Entry
Trigger and Clear
Attribute Creation Get ViReal64 Entry Formatted I/O Commander Word Serial Open/Close
SRQ and Serial Polls
Add Attribute Range Table Ptr Memory-Based I/O (High Level) Servant Word Serial Input/Output
Parallel Polls
Add Repeated Attribute Dynamic Range Tables Memory-Based I/O (Low Level) Low-Level VXIbus Access XModem
Remote/Local
Invalidation Lists Error Information Shared Memory High-Level VXIbus Access Control
System Control
Comparison Precision Instrument Specific Error Queue Interface-Specific Operations Local Resource Access Status
Low-level I/O
Callbacks Memory Allocation VXI Signals Callbacks