National Instruments Window User Manual

National instruments window user manual
Table of Contents

Advertisement

Quick Links

RELEASE NOTES
L
W
AB
INDOWS
R
N
ELEASE
Contents
Introduction to LabWindows/CVI ...................................................................................4
LabWindows/CVI Installation for Windows ...................................................................4
Minimum System Requirements for Windows 95/NT......................................4
Minimum System Requirements for Windows 3.1 ...........................................4
Installing LabWindows/CVI on a Computer.....................................................5
Installing the Run-Time Engine on a Computer................................................5
Installing the VISA Library...............................................................................6
Installing the IVI Engine ...................................................................................6
What's New and Different in LabWindows/CVI 5.0 ......................................................6
New Features .....................................................................................................6
Changes to System Requirements .....................................................................7
Toolslib Instrument Drivers ..............................................................................7
New Sample Programs ......................................................................................7
Changes to the LabWindows/CVI Development Environment.......................................9
Debugging DLLs in Windows 95/NT ...............................................................9
DLL Debugging Menu Item (Windows 95/NT Only) ......................................9
Select External Process......................................................................................10
Automatic Generation of Object Files...............................................................10
Create Dynamic Link Library Dialog Box........................................................11
New Control in Watch Expression Dialog Box ................................................11
Activate Panels When Resuming: Clarification ................................................11
New Print Dialog Box .......................................................................................12
New Options for Source File Printing ...............................................................12
Edit Menu ..........................................................................................................12
Code Menu ........................................................................................................12
New Tools Menu ...............................................................................................12
CVI ™ , National Instruments ™ , NI_DAQ ™ , NI-VISA ™ , the National Instruments logo, and The Software is the Instrument ™ are trademarks of National
Instruments Corporation. Product and company names are trademarks or trade names of their respective companies.
320689E-01
© Copyright 1994, 1998 National Instruments Corp. All rights reserved.
/CVI V
ERSION
OTES FOR
5.0
W
INDOWS
February 1998

Advertisement

Table of Contents
loading

Summary of Contents for National Instruments Window

  • Page 1: Table Of Contents

    Create IVI (Intelligent Virtual Instruments) Instrument Driver...13 CVI ™ , National Instruments ™ , NI_DAQ ™ , NI-VISA ™ , the National Instruments logo, and The Software is the Instrument ™ are trademarks of National Instruments Corporation. Product and company names are trademarks or trade names of their respective companies.
  • Page 2 Linking Objects and Static Libraries in External Compilers ... 27 Use of DllMain: Clarification ... 27 Releasing Resources when a DLL Unloads: Clarification... 27 Use of Run State Change Callbacks: Clarification ... 28 LabWindows/CVI Release Notes for Windows © National Instruments Corporation...
  • Page 3 Using LabWindows/CVI Utility Library in the Borland Compiler...38 Using NetDDE on Windows ...38 Special Instructions to LabWindows/CVI 5.0 Beta Testers...38 No Support for Multiple Monitor Systems...38 Dynamically Loading DLL Created in Third-Party Compiler Might Lose Handles...38 © National Instruments Corporation LabWindows/CVI Release Notes for Windows...
  • Page 4: Introduction To Labwindows/Cvi

    Minimum of 8 MB of memory • 30 MB free hard disk space • Microsoft-compatible mouse Note The dialog box the Edit Instrument Attributes command displays requires an 800-by-600 video adapter resolution. LabWindows/CVI Release Notes for Windows © National Instruments Corporation...
  • Page 5: Installing Labwindows/Cvi On A Computer

    Base Package. The Windows SDK help file is available only with the CD-ROM version of the LabWindows/CVI FDS. National Instruments suggests you install the complete LabWindows/CVI program to take full advantage of all the LabWindows/CVI capabilities. If you choose to install with options, select the options you want and follow the directions on the screen.
  • Page 6: Installing The Visa Library

    Direct printing replaces bitmap printing on all Windows platforms • Ability to scale panels and contents to different screen resolutions and when you resize the panels • New Advanced Analysis functions for Vector & Matrix Algebra LabWindows/CVI Release Notes for Windows © National Instruments Corporation...
  • Page 7: Changes To System Requirements

    New Sample Programs Table 2 lists new samples. Filename samples\activex\ cvi\cvidemo.prj excel\exceldem.prj © National Instruments Corporation Table 1. New Toolslib Instrument Drivers 3D OpenGL plotting control Asynchronous timer control subdirectory are not multithread safe: \toolslib\ Table 2. New Sample Projects ActiveX Automation of LabWindows/CVI 5.0...
  • Page 8 Evaluates the stability of the system 3D graph plotting using CVIOGL instrument driver Uses CVIOGL instrument driver for OpenGL rendering 3D graph plotting using CVIOGL instrument driver Demonstrates creating and debugging a DLL Asynchronous timer example Description using the PolyFit © National Instruments Corporation...
  • Page 9: Changes To The Labwindows/Cvi Development Environment

    Debugging DLLs in Windows 95/NT You can now debug DLLs in the LabWindows/CVI development environment. Refer to the DLL Debugging (Windows 95/NT Only) section in Chapter 3, Project Window, of the LabWindows/CVI User Manual for more information on different ways to debug DLLs, location of files required for debugging DLLs, and what restrictions apply.
  • Page 10: Select External Process

    When you debug a DLL in LabWindows/CVI, you can use all the standard debugging features, but the run-time checking features are not available. Thus, you can use single-stepping, conditional breakpoints, watch expressions, and the Variables window, but there is no interactive reporting of library errors and no protection against overwriting arrays or misuse of pointers.
  • Page 11: Create Dynamic Link Library Dialog Box

    LabWindows/CVI removes all breakpoints and tags from any non-project files you might have open. However, LabWindows/CVI does not save breakpoints and tags in the Interactive Execution window in the project and does not remove them when you unload a project.
  • Page 12: New Print Dialog Box

    The Find and Replace commands of the Edit menu of the Function Tree Editor window and the Function Panel Editor window open dialog boxes similar to the Find and Replace dialog boxes in the Source window, which allow you to search and replace text in the entire function panel (...
  • Page 13: Create Activex Automation Controller (Windows 95/Nt Only)

    Use the Edit Instrument Attributes command to add, delete, or edit attributes for an IVI driver. You can invoke this command only if the file in the Source window has the same path and base filename as an instrument driver function panel ( file.
  • Page 14: Edit Function Tree

    Use the Go To Declaration command to display the function prototype in the header ( associated with the specified function in the Function Panel Editor window. The function panel file must have the same path and base filename as the file in the Source window. Enable Auto Replace...
  • Page 15: Generate Ivi C++ Wrapper

    IVI drivers. Context Menus You can access a context menu in the Function Tree Editor window by pressing the right mouse button. The context menu contains a selection of the most commonly used menu commands from the Function Tree Editor window menubar. The Function Tree Editor window now includes the following context menu items: •...
  • Page 16: Mouse Wheel Support

    The LabWindows/CVI environment windows now support mouse pointing devices with wheels, such as the Microsoft IntelliPoint Mouse. The mouse wheel allows you to scroll up or down in any window, listbox control, or textbox control that contains a vertical scrollbar. Changes to the User Interface Library...
  • Page 17: Clarifications And Corrections

    On all Windows platforms, the User Interface Library now uses direct Windows printing by default. Previously, the library used only bitmap printing. The new print attribute ATTR_BITMAP_PRINTING © National Instruments Corporation GetSystemPopupsAttribute to make the Windows file select dialog box movable.
  • Page 18: Revised Print Dialog Boxes On Windows

    ATTR_PRINTER_NAME . If ATTR_PRINTER_NAME NULL ATTR_PRINTER_NAME VAL_USE_PRINTER_SETTING VAL_USE_PRINTER_SETTING Using Windows System Printer Settings SetPrintAttribute . Whenever the print , the empty string, or the name of a value. allows you to value. section for more information © National Instruments Corporation...
  • Page 19: Using Windows System Printer Settings

    ATTR_XRESOLUTION • ATTR_YRESOLUTION Note The User Interface Library never changes the current system printer or the current system settings for a printer. © National Instruments Corporation applies to all print attributes for which corresponding VAL_USE_PRINTER_SETTING PrintCtrl PrintPanel VAL_USE_PRINTER_SETTING give you the option to open the dialog box:...
  • Page 20: Obsolete Value For X And Y Resolution

    VAL_USE_PRINTER_DEFAULT ATTR_YOFFSET VAL_CENTER_ON_PAPER ATTR_YRESOLUTION attributes, , which is obsolete. value does not does now. If you set an attribute only once. has the modified behavior Using Windows System Printer include file, so you userint.h replaces VAL_USE_PRINTER_SETTING © National Instruments Corporation...
  • Page 21: Application Of Attributes To Text Printing

    ATTR_PRINT_UNDERLINE ATTR_SHOW_DATE ATTR_SHOW_FILE_NAME ATTR_SHOW_LINE_NUMBERS ATTR_SHOW_PAGE_NUMBERS ATTR_SHOW_TIME ATTR_TAB_INTERVAL © National Instruments Corporation Warning of Modified Behavior Currently selected printer Number of characters in currently selected printer Specifies to display only the Windows printer-specific dialog box; do not show the LabWindows/CVI print dialog box...
  • Page 22: New Panel Attributes

    Thickness of the plot line, in pixels; applies only when VAL_SOLID ATTR_FAT_LINE LabWindows/CVI draws the plot with three times the thickness specified in this attribute system attribute specifies to what extent ATTR_LINE_STYLE ; if ATTR_PLOT_STYLE ATTR_FAT_STEP © National Instruments Corporation...
  • Page 23: Resolution Adjustment

    Minimum Height for Rescaling • Minimum Width for Rescaling • Resolution Adjustment The Floating Window option on the Other Attributes dialog box is renamed to Floating Style. The Floating Style ring control contains the following choices: • Never • When App is Active •...
  • Page 24: Changes To Existing Functions

    When LabWindows/CVI displays a popup panel, such as when you call , all LabWindows/CVI panels with the InstallPopup either VAL_FLOAT_APP_ACTIVE displayed. In previous versions of LabWindows/CVI, a floating window can cover the popup window, preventing an interaction with the popup window. LoadPanel LoadPanelEx and on files.
  • Page 25: Warning Of Change To Text Format (.Tui) Files

    • SetBitmapData • SetPanelSize © National Instruments Corporation ) file the User Interface Editor generates, you can use the panel, files for all your .tui .uir...
  • Page 26: New Error Codes

    The specified panel was not found in the The specified menubar was not found in the The specified control style was not found in the A tag or value is missing in the file. .tui file. .tui file. .tui file. .tui © National Instruments Corporation...
  • Page 27: Details Of User Protection

    The operating system calls DllEntryPoint messages. To generate the template for in the Edit menu of the Source window. Use caution when inserting code in the In particular, avoid calling into other DLLs in these two cases. The order in which Windows 95/NT initializes DLLs at startup and unloads them at process termination is not well defined.
  • Page 28: Use Of Run State Change Callbacks: Clarification

    The system information for the Arizona time zone indicates that daylight savings time is not observed. LabWindows/CVI Release Notes for Windows CVIRTEHasBeenDetached CVIRTEHasBeenDetached , receives the cvirte.dll returns FALSE, your DLL can safely CVIRTEHasBeenDetached in the Utility Library. It is returns FALSE PROCESS_DETACH that require time localtime © National Instruments Corporation...
  • Page 29: Modifying The Dst Rules String: Clarification

    It reflects the error value (zero if rs232err successful) of the last RS-232 function call in the application, regardless of thread. © National Instruments Corporation Table 4. New RS-232 Library Error Code Error Message Unable to allocate system resources an error code of –1 (Unknown System Error) on...
  • Page 30: Multithreading Limitations

    The the write error. For these reasons, National Instruments recommends that you always use instead of the rs232err If you want to know the error associated with a particular function call, save the return value from the function call in a variable.
  • Page 31: New Error Codes

    The following seven new functions in the TCP Library are listed in alphabetical order: • GetHostTCPSocketHandle TCP Library connection. • GetTCPHostAddr is running. © National Instruments Corporation Table 5. Obsolete DDE Library Error Codes (Continued) Defined Constant –kDDE_GeneralIOErr –kDDE_Reentrancy Table 6. New DDE Library Error Codes Defined Constant –kDDE_NotThreadOfServer...
  • Page 32: Changes To Existing Tcp Library Functions

    DisableTaskSwitching HKEY_LOCAL_MACHINE\Software\Microsoft\ to obtain the address of a function, you normally ServerTCPRead prevents DisableTaskSwitching © National Instruments Corporation...
  • Page 33: New Utility Library Functions

    (__stdcall * SetADouble_FnPtr)(double d) = NULL; Use the Compiler Options command in the Options menu of the Project window to determine the default calling convention. If you launch a 16-bit executable on Windows NT, cannot determine whether the executable process has terminated.
  • Page 34: Changes To The Easy I/O For Daq Library

    Instrument Drivers contain C functions to create ActiveX Objects, to call ActiveX Object methods, and to get and set ActiveX Object properties. Select Tools»Create ActiveX Automation Controller to start the wizard. LabWindows/CVI Release Notes for Windows AIAcquireWaveforms , and AIStartAcquisition AISampleChannel © National Instruments Corporation...
  • Page 35: Using Activex Automation Object Handles From Multiple Threads On Windows 95

    Note CA_VariantClear CA_VariantClear For the function CA_VariantSetCString discussion: Note CA_VariantClear CA_VariantClear © National Instruments Corporation parameters, VARIANT SAFEARRAY CA_VariantIUnknown CA_VariantSetIUnknown , add the following text to the function parameter discussion: parameter is a reference to the original value. VARIANT frees the original value.
  • Page 36: New Ivi Library

    ), or a safe array ( LPUNKNOWN , add the following text to the function to free the returned CAObjHandle CA_VariantGet2DArray to free the returned array. , and ), an automation object interface SAFEARRAY , add the © National Instruments Corporation...
  • Page 37: Function Tree Layout For New Functions

    Complex QR Factorization Complex Cholesky Factorization Complex Test Positive Definite Complex LU Factorization Additional Numerical Methods Complex Polynomial Roots Numeric Integration Peak Detector Free Analysis Memory © National Instruments Corporation Function Name SpecialMatrix GenDeterminant GenInvMatrix GenLinEqs OuterProduct MatrixRank MatrixNorm ConditionNumber...
  • Page 38: General Information

    You can control the search order for the header utility.h file. utility.h file for information on using NetDDE on readme.cvi dataacq.lib easyio.lib utility.h #include gpib.lib nivxi.lib directory. A \extlib © National Instruments Corporation...

Table of Contents