© Copyright 1994, 1996 National Instruments Corporation.All rights reserved.LabWindows®/CVIStandard LibrariesReference ManualJuly 1996 EditionPart Num
ContentsLabWindows/CVI Standard Libraries x © National Instruments CorporationThreadIberr...
Formatting and I/O Library Chapter 2LabWindows/CVI Standard Libraries 2-70 © National Instruments CorporationRemarksThis example shows how a subrout
Chapter 2 Formatting and I/O Library© National Instruments Corporation 2-71 LabWindows/CVI Standard Librarieswriting beyond the end of filename. Noti
© National Instruments Corporation 3-1 LabWindows/CVI Standard LibrariesChapter 3Analysis LibraryThis chapter describes the functions in the LabWindow
Analysis Library Chapter 3LabWindows/CVI Standard Libraries 3-2 © National Instruments CorporationTable 3-1. The Analysis Library Function Tree (Con
Chapter 3 Analysis Library© National Instruments Corporation 3-3 LabWindows/CVI Standard LibrariesThe classes and subclasses in the function tree are
Analysis Library Chapter 3LabWindows/CVI Standard Libraries 3-4 © National Instruments Corporationlarge amounts of data. Large double-precision arra
Chapter 3 Analysis Library© National Instruments Corporation 3-5 LabWindows/CVI Standard LibrariesReturn Valuestatusinteger Refer to error codes inTab
Analysis Library Chapter 3LabWindows/CVI Standard Libraries 3-6 © National Instruments CorporationPurposeAdds two (2D) arrays. The function obtains
Chapter 3 Analysis Library© National Instruments Corporation 3-7 LabWindows/CVI Standard LibrariesReturn Valuestatusinteger Refer to error codes inTab
Analysis Library Chapter 3LabWindows/CVI Standard Libraries 3-8 © National Instruments CorporationParametersInputxRealdouble-precision Real part of x
Contents© National Instruments Corporation xi LabWindows/CVI Standard LibrariesChapter 6DDE Library ...
Chapter 3 Analysis Library© National Instruments Corporation 3-9 LabWindows/CVI Standard LibrariesReturn Valuestatusinteger Refer to error codes inTab
Analysis Library Chapter 3LabWindows/CVI Standard Libraries 3-10 © National Instruments CorporationCxDiv1Dint status = CxDiv1D (double arrayXReal[],
Chapter 3 Analysis Library© National Instruments Corporation 3-11 LabWindows/CVI Standard LibrariesCxLinEv1Dint status = CxLinEv1D (double arrayXReal[
Analysis Library Chapter 3LabWindows/CVI Standard Libraries 3-12 © National Instruments CorporationCxMulint status = CxMul (double xReal, double xIma
Chapter 3 Analysis Library© National Instruments Corporation 3-13 LabWindows/CVI Standard LibrariesThe function performs the operations in place; that
Analysis Library Chapter 3LabWindows/CVI Standard Libraries 3-14 © National Instruments CorporationParametersInputxRealdouble-precision Real part of
Chapter 3 Analysis Library© National Instruments Corporation 3-15 LabWindows/CVI Standard LibrariesCxSub1Dint status = CxSub1D (double arrayXReal[], d
Analysis Library Chapter 3LabWindows/CVI Standard Libraries 3-16 © National Instruments CorporationDeterminantint status = Determinant (void *inputMa
Chapter 3 Analysis Library© National Instruments Corporation 3-17 LabWindows/CVI Standard LibrariesParametersInputarrayXdouble-precisionarrayInput arr
Analysis Library Chapter 3LabWindows/CVI Standard Libraries 3-18 © National Instruments CorporationReturn Valuestatusinteger Refer to error codes inT
ContentsLabWindows/CVI Standard Libraries xii © National Instruments CorporationChapter 8Utility Library ...
Chapter 3 Analysis Library© National Instruments Corporation 3-19 LabWindows/CVI Standard LibrariesGetAnalysisErrorStringchar *message = GetAnalysisEr
Analysis Library Chapter 3LabWindows/CVI Standard Libraries 3-20 © National Instruments CorporationParametersInputinputArraydouble-precisionarrayInpu
Chapter 3 Analysis Library© National Instruments Corporation 3-21 LabWindows/CVI Standard LibrariesReturn Valuestatusinteger Refer to error codes in n
Analysis Library Chapter 3LabWindows/CVI Standard Libraries 3-22 © National Instruments CorporationLinEv2Dint status = LinEv2D (void *inputArray, int
Chapter 3 Analysis Library© National Instruments Corporation 3-23 LabWindows/CVI Standard LibrariesMatrixMulint status = MatrixMul (void *matrixX, voi
Analysis Library Chapter 3LabWindows/CVI Standard Libraries 3-24 © National Instruments CorporationMaxMin1Dint status = MaxMin1D (double inputArray[]
Chapter 3 Analysis Library© National Instruments Corporation 3-25 LabWindows/CVI Standard LibrariesParametersInputinputArraydouble-precision2D arrayIn
Analysis Library Chapter 3LabWindows/CVI Standard Libraries 3-26 © National Instruments CorporationParametersInputinputArraydouble-precisionarrayInpu
Chapter 3 Analysis Library© National Instruments Corporation 3-27 LabWindows/CVI Standard LibrariesReturn Valuestatusinteger Refer to error codes inTa
Analysis Library Chapter 3LabWindows/CVI Standard Libraries 3-28 © National Instruments CorporationNeg1Dint status = Neg1D (double inputArray[], int
Contents© National Instruments Corporation xiii LabWindows/CVI Standard LibrariesGetSystemDate...
Chapter 3 Analysis Library© National Instruments Corporation 3-29 LabWindows/CVI Standard LibrariesSortint status = Sort (double inputArray[], int num
Analysis Library Chapter 3LabWindows/CVI Standard Libraries 3-30 © National Instruments CorporationParametersInputinputArraydouble-precisionarrayInpu
Chapter 3 Analysis Library© National Instruments Corporation 3-31 LabWindows/CVI Standard LibrariesReturn Valuestatusinteger Refer to error codes inTa
Analysis Library Chapter 3LabWindows/CVI Standard Libraries 3-32 © National Instruments CorporationSubset1Dint status = Subset1D (double inputArray[]
Chapter 3 Analysis Library© National Instruments Corporation 3-33 LabWindows/CVI Standard LibrariesParametersInputxRealdouble-precision X coordinate.y
Analysis Library Chapter 3LabWindows/CVI Standard Libraries 3-34 © National Instruments CorporationParametersInputarrayXRealdouble-precisionarrayX co
Chapter 3 Analysis Library© National Instruments Corporation 3-35 LabWindows/CVI Standard LibrariesReturn Valuestatusinteger Refer to error codes inTa
Analysis Library Chapter 3LabWindows/CVI Standard Libraries 3-36 © National Instruments CorporationTransposeint status = Transpose (void *inputMatrix
Chapter 3 Analysis Library© National Instruments Corporation 3-37 LabWindows/CVI Standard LibrariesError ConditionsIf an error condition occurs during
© National Instruments Corporation 4-1 LabWindows/CVI Standard LibrariesChapter 4GPIB/GPIB-488.2 LibraryThis describes the NI-488 and NI-488.2 functio
ContentsLabWindows/CVI Standard Libraries xiv © National Instruments CorporationUnloadExternalModule...
GPIB/GPIB-488.2 Library Chapter 4LabWindows/CVI Standard Libraries 4-2 © National Instruments CorporationTable 4-1. The GPIB Functions Library Funct
Chapter 4 GPIB/GPIB-488.2 Library© National Instruments Corporation 4-3 LabWindows/CVI Standard LibrariesTable 4-1. The GPIB Functions Library Functi
GPIB/GPIB-488.2 Library Chapter 4LabWindows/CVI Standard Libraries 4-4 © National Instruments CorporationTable 4-1. The GPIB Functions Library Funct
Chapter 4 GPIB/GPIB-488.2 Library© National Instruments Corporation 4-5 LabWindows/CVI Standard Libraries• The Bus Control function panels provide lo
GPIB/GPIB-488.2 Library Chapter 4LabWindows/CVI Standard Libraries 4-6 © National Instruments Corporationdrivers are packaged with your GPIB interfac
Chapter 4 GPIB/GPIB-488.2 Library© National Instruments Corporation 4-7 LabWindows/CVI Standard LibrariesNote: When writing instrument modules, you mu
GPIB/GPIB-488.2 Library Chapter 4LabWindows/CVI Standard Libraries 4-8 © National Instruments Corporationincluded in the wait mask. Aside from the d
Chapter 4 GPIB/GPIB-488.2 Library© National Instruments Corporation 4-9 LabWindows/CVI Standard Libraries• The last GPIB call was a board call. Autop
GPIB/GPIB-488.2 Library Chapter 4LabWindows/CVI Standard Libraries 4-10 © National Instruments CorporationGlobal Variables for the GPIB LibraryThe fo
Chapter 4 GPIB/GPIB-488.2 Library© National Instruments Corporation 4-11 LabWindows/CVI Standard LibrariesIf you want to use GPIB under Windows 95 and
Contents© National Instruments Corporation xv LabWindows/CVI Standard LibrariesChannel String for Analog Output Functions ...
GPIB/GPIB-488.2 Library Chapter 4LabWindows/CVI Standard Libraries 4-12 © National Instruments CorporationNotification of SRQ and Other GPIB EventsSy
Chapter 4 GPIB/GPIB-488.2 Library© National Instruments Corporation 4-13 LabWindows/CVI Standard LibrariesGPIB Function ReferenceMost of the functions
GPIB/GPIB-488.2 Library Chapter 4LabWindows/CVI Standard Libraries 4-14 © National Instruments CorporationCloseInstrDevsint result = CloseInstrDevs (
Chapter 4 GPIB/GPIB-488.2 Library© National Instruments Corporation 4-15 LabWindows/CVI Standard LibrariesThe callback function is called when any of
GPIB/GPIB-488.2 Library Chapter 4LabWindows/CVI Standard Libraries 4-16 © National Instruments CorporationReturn Valuestatusinteger(short integer onW
Chapter 4 GPIB/GPIB-488.2 Library© National Instruments Corporation 4-17 LabWindows/CVI Standard LibrariesCallbackFunctionThe callback function must h
GPIB/GPIB-488.2 Library Chapter 4LabWindows/CVI Standard Libraries 4-18 © National Instruments CorporationOnly one callback function can apply for ea
Chapter 4 GPIB/GPIB-488.2 Library© National Instruments Corporation 4-19 LabWindows/CVI Standard LibrariesSRQI, RQS, and Auto Serial PollingIf you wan
GPIB/GPIB-488.2 Library Chapter 4LabWindows/CVI Standard Libraries 4-20 © National Instruments CorporationIf invoked because an asynchronous I/O oper
Chapter 4 GPIB/GPIB-488.2 Library© National Instruments Corporation 4-21 LabWindows/CVI Standard LibrariesOpenDevint bd = OpenDev (char *deviceName, c
ContentsLabWindows/CVI Standard Libraries xvi © National Instruments CorporationTablesTable 1-1. ANSI C Standard Library Classes ...
GPIB/GPIB-488.2 Library Chapter 4LabWindows/CVI Standard Libraries 4-22 © National Instruments CorporationThreadIbcntint threadSpecificCount = Thread
Chapter 4 GPIB/GPIB-488.2 Library© National Instruments Corporation 4-23 LabWindows/CVI Standard LibrariesIf you are not using multiple threads, the v
GPIB/GPIB-488.2 Library Chapter 4LabWindows/CVI Standard Libraries 4-24 © National Instruments CorporationReturn CodesDefinedConstant Value Descripti
Chapter 4 GPIB/GPIB-488.2 Library© National Instruments Corporation 4-25 LabWindows/CVI Standard LibrariesSee AlsoThreadIbsta, ThreadIbcnt, ThreadIbcn
GPIB/GPIB-488.2 Library Chapter 4LabWindows/CVI Standard Libraries 4-26 © National Instruments CorporationReturn CodesThe return value is a sum of th
© National Instruments Corporation 5-1 LabWindows/CVI Standard LibrariesChapter 5RS-232 LibraryThis chapter describes the functions in the LabWindows/
RS-232 Library Chapter 5LabWindows/CVI Standard Libraries 5-2 © National Instruments CorporationTable 5-1. The RS-232 Library Function Tree (Continu
Chapter 5 RS-232 Library© National Instruments Corporation 5-3 LabWindows/CVI Standard LibrariesUsing RS-485You can use all of the functions in the RS
RS-232 Library Chapter 5LabWindows/CVI Standard Libraries 5-4 © National Instruments CorporationAll functions, except the Open and Close functions, r
Chapter 5 RS-232 Library© National Instruments Corporation 5-5 LabWindows/CVI Standard LibrariesAll serial devices are either of the type Data Communi
© National Instruments Corporation xvii LabWindows/CVI Standard LibrariesAbout This Manual
RS-232 Library Chapter 5LabWindows/CVI Standard Libraries 5-6 © National Instruments Corporationapplication. Refer to the Hardware Handshaking secti
Chapter 5 RS-232 Library© National Instruments Corporation 5-7 LabWindows/CVI Standard LibrariesHardware HandshakingThe SetCTSMode function enables ha
RS-232 Library Chapter 5LabWindows/CVI Standard Libraries 5-8 © National Instruments Corporation– If the input queue of the port is nearly full, the
Chapter 5 RS-232 Library© National Instruments Corporation 5-9 LabWindows/CVI Standard LibrariesParameter DiscussionThe function does nothing if the p
RS-232 Library Chapter 5LabWindows/CVI Standard Libraries 5-10 © National Instruments CorporationParametersInputCOMPortinteger Range 1 through 32.fil
Chapter 5 RS-232 Library© National Instruments Corporation 5-11 LabWindows/CVI Standard LibrariesComRdint nbytes = ComRd (int COMPort, char buffer[],
RS-232 Library Chapter 5LabWindows/CVI Standard Libraries 5-12 © National Instruments CorporationComRdByteint byte = ComRdByte (int COMPort);PurposeR
Chapter 5 RS-232 Library© National Instruments Corporation 5-13 LabWindows/CVI Standard LibrariesParametersInputCOMPortinteger Range 1 through 32.coun
RS-232 Library Chapter 5LabWindows/CVI Standard Libraries 5-14 © National Instruments CorporationComSetEscapeint result = ComSetEscape (int COMPort,
Chapter 5 RS-232 Library© National Instruments Corporation 5-15 LabWindows/CVI Standard LibrariesThe following values may be used only with the RS-485
About This ManualLabWindows/CVI Standard Libraries xviii © National Instruments Corporation• Chapter 5, RS-232 Library, describes the functions in th
RS-232 Library Chapter 5LabWindows/CVI Standard Libraries 5-16 © National Instruments Corporationfor ComRdTerm. If both count and terminationByte are
Chapter 5 RS-232 Library© National Instruments Corporation 5-17 LabWindows/CVI Standard Librariesthe port, call GetOutQLen. GetOutQLen returns the nu
RS-232 Library Chapter 5LabWindows/CVI Standard Libraries 5-18 © National Instruments CorporationParameter DiscussionThis function times out if the o
Chapter 5 RS-232 Library© National Instruments Corporation 5-19 LabWindows/CVI Standard LibrariesFlushOutQint status = FlushOutQ (int COMPort);Purpos
RS-232 Library Chapter 5LabWindows/CVI Standard Libraries 5-20 © National Instruments CorporationTable 5-5. Bit Definitions for the GetComStat Funct
Chapter 5 RS-232 Library© National Instruments Corporation 5-21 LabWindows/CVI Standard LibrariesParameterInputCOMPortinteger Range 1 through 32.Retur
RS-232 Library Chapter 5LabWindows/CVI Standard Libraries 5-22 © National Instruments CorporationGetRS232ErrorStringchar *message = GetRS232ErrorStri
Chapter 5 RS-232 Library© National Instruments Corporation 5-23 LabWindows/CVI Standard LibrariesNote: The callback function may receive more than one
RS-232 Library Chapter 5LabWindows/CVI Standard Libraries 5-24 © National Instruments CorporationReturn Valuestatusinteger Refer to error codes in Ta
Chapter 5 RS-232 Library© National Instruments Corporation 5-25 LabWindows/CVI Standard LibrariesThe following table further describes the events.Even
About This Manual© National Instruments Corporation xix LabWindows/CVI Standard LibrariesConventions Used in This ManualThe following conventions are
RS-232 Library Chapter 5LabWindows/CVI Standard Libraries 5-26 © National Instruments CorporationReturn Valueresultinteger Refer to error codes in Ta
Chapter 5 RS-232 Library© National Instruments Corporation 5-27 LabWindows/CVI Standard LibrariesParametersInputCOMPortinteger Range 1 through 32.devi
RS-232 Library Chapter 5LabWindows/CVI Standard Libraries 5-28 © National Instruments CorporationUnder UNIX, the inputQueueSize and outputQueueSize p
Chapter 5 RS-232 Library© National Instruments Corporation 5-29 LabWindows/CVI Standard LibrariesSetComTimeint result = SetComTime (int COMPort, doubl
RS-232 Library Chapter 5LabWindows/CVI Standard Libraries 5-30 © National Instruments CorporationSetCTSModeint result = SetCTSMode (int COMPort, int
Chapter 5 RS-232 Library© National Instruments Corporation 5-31 LabWindows/CVI Standard LibrariesSetXModeint result = SetXMode (int COMPort, int mode)
RS-232 Library Chapter 5LabWindows/CVI Standard Libraries 5-32 © National Instruments CorporationParametersInputCOMPortinteger Range 1 through 32.sta
Chapter 5 RS-232 Library© National Instruments Corporation 5-33 LabWindows/CVI Standard Librariesfor an acknowledgment before it re-sends the current
RS-232 Library Chapter 5LabWindows/CVI Standard Libraries 5-34 © National Instruments CorporationXModemReceive tries ((maximum#ofTries + 1) / 2) time
Chapter 5 RS-232 Library© National Instruments Corporation 5-35 LabWindows/CVI Standard LibrariesReturn Valueresultinteger Result of the XModem sendop
Internet SupportGPIB: [email protected]: [email protected]: [email protected]: [email protected]: lw.su
About This ManualLabWindows/CVI Standard Libraries xx © National Instruments CorporationThe LabWindows/CVI Documentation SetFor a detailed discussion
RS-232 Library Chapter 5LabWindows/CVI Standard Libraries 5-36 © National Instruments CorporationError ConditionsIf an error condition occurs during
Chapter 5 RS-232 Library© National Instruments Corporation 5-37 LabWindows/CVI Standard LibrariesTable 5-6. RS-232 Library Error Codes (Continued)-25
© National Instruments Corporation 6-1 LabWindows/CVI Standard LibrariesChapter 6DDE LibraryThis chapter describes the functions in the LabWindows/CVI
DDE Library Chapter 6LabWindows/CVI Standard Libraries 6-2 © National Instruments CorporationDDE Clients and ServersInterprocess communication with D
Chapter 6 DDE Library© National Instruments Corporation 6-3 LabWindows/CVI Standard LibrariesDDE callback functions used in a program that acts as a D
DDE Library Chapter 6LabWindows/CVI Standard Libraries 6-4 © National Instruments CorporationTable 6-2. DDE Transaction Types (xType)xType Server Cl
Chapter 6 DDE Library© National Instruments Corporation 6-5 LabWindows/CVI Standard LibrariesA DDE Library Example Using Microsoft Excel and LabWindow
DDE Library Chapter 6LabWindows/CVI Standard Libraries 6-6 © National Instruments CorporationWhen the DDE_DATAREADY transaction is received in the ca
Chapter 6 DDE Library© National Instruments Corporation 6-7 LabWindows/CVI Standard LibrariesParameter DiscussiondataFormat must be a valid data forma
DDE Library Chapter 6LabWindows/CVI Standard Libraries 6-8 © National Instruments CorporationIf successful, this function returns the number of bytes
© National Instruments Corporation 1-1 LabWindows/CVI Standard LibrariesChapter 1ANSI C Library
Chapter 6 DDE Library© National Instruments Corporation 6-9 LabWindows/CVI Standard LibrariesParameter DiscussionserverName, topicName, and itemName m
DDE Library Chapter 6LabWindows/CVI Standard Libraries 6-10 © National Instruments CorporationPurposeCalled by client to send a command to be execute
Chapter 6 DDE Library© National Instruments Corporation 6-11 LabWindows/CVI Standard LibrariesdataFormatunsigned integer Valid data format; for exampl
DDE Library Chapter 6LabWindows/CVI Standard Libraries 6-12 © National Instruments CorporationPurposeCalled by client to write data to a DDE server a
Chapter 6 DDE Library© National Instruments Corporation 6-13 LabWindows/CVI Standard LibrariesSee AlsoConnectToDDEServer, ClientDDEReadConnectToDDESer
DDE Library Chapter 6LabWindows/CVI Standard Libraries 6-14 © National Instruments CorporationclientCallbackFunction defines a callback function thro
Chapter 6 DDE Library© National Instruments Corporation 6-15 LabWindows/CVI Standard LibrariesDisconnectFromDDEServerint status = DisconnectFromDDESe
DDE Library Chapter 6LabWindows/CVI Standard Libraries 6-16 © National Instruments CorporationReturn Valuemessagestring Explanation of error.Register
Chapter 6 DDE Library© National Instruments Corporation 6-17 LabWindows/CVI Standard LibrariesDDE_DISCONNECTDDE_DATAREADYDDE_REQUESTDDE_ADVISELOOPDDE_
DDE Library Chapter 6LabWindows/CVI Standard Libraries 6-18 © National Instruments CorporationThis function registers your program as a DDE server wi
ANSI C Library Chapter 1LabWindows/CVI Standard Libraries 1-2 © National Instruments CorporationTable 1-1. ANSI C Standard Library Classes (Continu
Chapter 6 DDE Library© National Instruments Corporation 6-19 LabWindows/CVI Standard LibrariesServerDDEWriteint status = ServerDDEWrite (unsigned int
DDE Library Chapter 6LabWindows/CVI Standard Libraries 6-20 © National Instruments CorporationRefer to Microsoft programmers' documention for Wi
Chapter 6 DDE Library© National Instruments Corporation 6-21 LabWindows/CVI Standard LibrariesReturn Valuestatusinteger Refer to error codes in Table
DDE Library Chapter 6LabWindows/CVI Standard Libraries 6-22 © National Instruments CorporationParameter DiscussionThe itemName represents the informa
Chapter 6 DDE Library© National Instruments Corporation 6-23 LabWindows/CVI Standard LibrariesUnregisterDDEServerint status = UnregisterDDEServer (ch
DDE Library Chapter 6LabWindows/CVI Standard Libraries 6-24 © National Instruments CorporationTable 6-3. DDE Library Error CodesCode Error Message 0
© National Instruments Corporation 7-1 LabWindows/CVI Standard LibrariesChapter 7TCP LibraryThis chapter describes the functions in the LabWindows/CVI
TCP Library Chapter 7LabWindows/CVI Standard Libraries 7-2 © National Instruments CorporationTCP Clients and ServersNetwork communication using the TC
Chapter 7 TCP Library© National Instruments Corporation 7-3 LabWindows/CVI Standard Librariesprogram is invoked to process the request. The parameter
TCP Library Chapter 7LabWindows/CVI Standard Libraries 7-4 © National Instruments CorporationParametersInputconversationHandleunsigned integer Uniquel
Chapter 1 ANSI C Library© National Instruments Corporation 1-3 LabWindows/CVI Standard LibrariesTable 1-2. C Locale Information ValuesName Type C loca
Chapter 7 TCP Library© National Instruments Corporation 7-5 LabWindows/CVI Standard LibrariesReturn Valuestatusinteger Returns the number of byteswrit
TCP Library Chapter 7LabWindows/CVI Standard Libraries 7-6 © National Instruments CorporationReturn Valuestatusinteger Refer to error codes inTable 7-
Chapter 7 TCP Library© National Instruments Corporation 7-7 LabWindows/CVI Standard LibrariesSee AlsoRegisterTCPServer, DisconnectFromTCPServerDisconn
TCP Library Chapter 7LabWindows/CVI Standard Libraries 7-8 © National Instruments CorporationSee AlsoRegisterTCPServerGetTCPErrorStringchar *message =
Chapter 7 TCP Library© National Instruments Corporation 7-9 LabWindows/CVI Standard LibrariesReturn Valuestatusinteger Refer to error codes inTable 7-
TCP Library Chapter 7LabWindows/CVI Standard Libraries 7-10 © National Instruments CorporationIt is up to you to define the meaning of the callback da
Chapter 7 TCP Library© National Instruments Corporation 7-11 LabWindows/CVI Standard LibrariesServerTCPWriteint status = ServerTCPWrite (unsigned int
TCP Library Chapter 7LabWindows/CVI Standard Libraries 7-12 © National Instruments CorporationReturn Valuestatusinteger Refer to error codes in Table
© National Instruments Corporation 8-1 LabWindows/CVI Standard LibrariesChapter 8Utility LibraryThis chapter describes the functions in the LabWindows
Utility Library Chapter 8LabWindows/CVI Standard Libraries 8-2 © National Instruments CorporationTable 8-1. The Utility Library Function Tree (Continu
ANSI C Library Chapter 1LabWindows/CVI Standard Libraries 1-4 © National Instruments CorporationUnder Windows, LabWindows/CVI implements the default
Chapter 8 Utility Library© National Instruments Corporation 8-3 LabWindows/CVI Standard LibrariesTable 8-1. The Utility Library Function Tree (Continu
Utility Library Chapter 8LabWindows/CVI Standard Libraries 8-4 © National Instruments CorporationTable 8-1. The Utility Library Function Tree (Continu
Chapter 8 Utility Library© National Instruments Corporation 8-5 LabWindows/CVI Standard Libraries• Standard Input/Output Window functions control vari
Utility Library Chapter 8LabWindows/CVI Standard Libraries 8-6 © National Instruments CorporationBreakpointvoid Breakpoint (void);PurposeDuring execut
Chapter 8 Utility Library© National Instruments Corporation 8-7 LabWindows/CVI Standard LibrariesClsvoid Cls (void);PurposeIn the LabWindows/CVI envir
Utility Library Chapter 8LabWindows/CVI Standard Libraries 8-8 © National Instruments CorporationParameter DiscussionsourceFileName and targetFileName
Chapter 8 Utility Library© National Instruments Corporation 8-9 LabWindows/CVI Standard LibrariesReturn Valueloadedinteger Indicates whether the LabWi
Utility Library Chapter 8LabWindows/CVI Standard Libraries 8-10 © National Instruments CorporationParameterInputnumberofSecondsdouble-precision Number
Chapter 8 Utility Library© National Instruments Corporation 8-11 LabWindows/CVI Standard LibrariesParameterInputfileNamestring File to delete.Return V
Utility Library Chapter 8LabWindows/CVI Standard Libraries 8-12 © National Instruments CorporationYou can use this function in conjunction with Enable
Chapter 1 ANSI C Library© National Instruments Corporation 1-5 LabWindows/CVI Standard Libraries• islower maps to the Windows function isCharLower.• i
Chapter 8 Utility Library© National Instruments Corporation 8-13 LabWindows/CVI Standard Libraries• The <Alt-Tab>, <Alt-Esc>, or <Ctrl
Utility Library Chapter 8LabWindows/CVI Standard Libraries 8-14 © National Instruments Corporationyour standalone application to be brought up in plac
Chapter 8 Utility Library© National Instruments Corporation 8-15 LabWindows/CVI Standard Libraries• Do not use the Standard I/O Window in your final
Utility Library Chapter 8LabWindows/CVI Standard Libraries 8-16 © National Instruments CorporationNote: For you to be able to use this function under
Chapter 8 Utility Library© National Instruments Corporation 8-17 LabWindows/CVI Standard LibrariesReturn Valuestatusinteger Result of operation.Return
Utility Library Chapter 8LabWindows/CVI Standard Libraries 8-18 © National Instruments CorporationGetBreakOnProtectionErrorsint state = GetBreakOnProt
Chapter 8 Utility Library© National Instruments Corporation 8-19 LabWindows/CVI Standard LibrariesReturn CodesNnn Where N.nn is the LabWindows/CVI ver
Utility Library Chapter 8LabWindows/CVI Standard Libraries 8-20 © National Instruments CorporationGetDirint result = GetDir (char currentDirectory[]);
Chapter 8 Utility Library© National Instruments Corporation 8-21 LabWindows/CVI Standard LibrariesReturn Valueresultinteger Result of operation.Return
Utility Library Chapter 8LabWindows/CVI Standard Libraries 8-22 © National Instruments CorporationReturn Codes 0Success. -1Out of memory. -4Invalid f
ANSI C Library Chapter 1LabWindows/CVI Standard Libraries 1-6 © National Instruments CorporationInput/Output FacilitiesThe function rename fails if
Chapter 8 Utility Library© National Instruments Corporation 8-23 LabWindows/CVI Standard LibrariesGetFileAttrsint result = GetFileAttrs (char fileName
Utility Library Chapter 8LabWindows/CVI Standard Libraries 8-24 © National Instruments CorporationParameter DiscussionEach attribute parameter will co
Chapter 8 Utility Library© National Instruments Corporation 8-25 LabWindows/CVI Standard LibrariesReturn Codes 0 Success.-1 File not found or director
Utility Library Chapter 8LabWindows/CVI Standard Libraries 8-26 © National Instruments CorporationReturn Codes 0 Success.-1 File not found or director
Chapter 8 Utility Library© National Instruments Corporation 8-27 LabWindows/CVI Standard LibrariesReturn Codes 0 Success.-1 File not found or director
Utility Library Chapter 8LabWindows/CVI Standard Libraries 8-28 © National Instruments CorporationUnder Windows, all of the attributes are honored. Th
Chapter 8 Utility Library© National Instruments Corporation 8-29 LabWindows/CVI Standard LibrariesParameter DiscussionsearchPath may contain the wildc
Utility Library Chapter 8LabWindows/CVI Standard Libraries 8-30 © National Instruments CorporationUsing This FunctionThis function is useful when your
Chapter 8 Utility Library© National Instruments Corporation 8-31 LabWindows/CVI Standard LibrariesParametersNoneReturn Valuekinteger Key code.Using Th
Utility Library Chapter 8LabWindows/CVI Standard Libraries 8-32 © National Instruments CorporationPurposeThis function obtains the name of the directo
Chapter 1 ANSI C Library© National Instruments Corporation 1-7 LabWindows/CVI Standard LibrariesThe AAA and BBB fields specify the names of the standa
Chapter 8 Utility Library© National Instruments Corporation 8-33 LabWindows/CVI Standard LibrariesGetNextFileint result = GetNextFile (char fileName[]
Utility Library Chapter 8LabWindows/CVI Standard Libraries 8-34 © National Instruments CorporationGetProjectDirint result = GetProjectDir (char direct
Chapter 8 Utility Library© National Instruments Corporation 8-35 LabWindows/CVI Standard LibrariesGetStdioPortvoid GetStdioPort (int *stdioPort);Purpo
Utility Library Chapter 8LabWindows/CVI Standard Libraries 8-36 © National Instruments CorporationParametersOutputmaxNumLinesinteger The maximum numbe
Chapter 8 Utility Library© National Instruments Corporation 8-37 LabWindows/CVI Standard LibrariesParametersOutputtopinteger The current distance, in
Utility Library Chapter 8LabWindows/CVI Standard Libraries 8-38 © National Instruments CorporationParametersOutputvisibleinteger 1 = Standard I/O wind
Chapter 8 Utility Library© National Instruments Corporation 8-39 LabWindows/CVI Standard LibrariesGetSystemTimeint status = GetSystemTime(int *hours,
Utility Library Chapter 8LabWindows/CVI Standard Libraries 8-40 © National Instruments CorporationParametersOutputvisibleinteger 0, if window is to be
Chapter 8 Utility Library© National Instruments Corporation 8-41 LabWindows/CVI Standard LibrariesParametersInputhInstancevoidpointer0 if called from
Utility Library Chapter 8LabWindows/CVI Standard Libraries 8-42 © National Instruments Corporation /* your other DETACH code */
ANSI C Library Chapter 1LabWindows/CVI Standard Libraries 1-8 © National Instruments Corporationor by creating another .pif file. Refer to your Mic
Chapter 8 Utility Library© National Instruments Corporation 8-43 LabWindows/CVI Standard LibrariesParametersInputportNumberinteger The port.Return Val
Utility Library Chapter 8LabWindows/CVI Standard Libraries 8-44 © National Instruments CorporationReturn Codes0Key has not been pressed.1Key has been
Chapter 8 Utility Library© National Instruments Corporation 8-45 LabWindows/CVI Standard LibrariesRefer to your DOS documentation for further help wit
Utility Library Chapter 8LabWindows/CVI Standard Libraries 8-46 © National Instruments CorporationReturn Codes under Microsoft Windows 0Command was su
Chapter 8 Utility Library© National Instruments Corporation 8-47 LabWindows/CVI Standard LibrariesLaunchExecutableExint result = LaunchExecutableEx (c
Utility Library Chapter 8LabWindows/CVI Standard Libraries 8-48 © National Instruments CorporationA handle can be passed to ExecutableHasTerminated an
Chapter 8 Utility Library© National Instruments Corporation 8-49 LabWindows/CVI Standard LibrariesLoadExternalModuleint module_id = LoadExternalModule
Utility Library Chapter 8LabWindows/CVI Standard Libraries 8-50 © National Instruments CorporationReturn Codes (Continued)-21Could not load the DLL.-2
Chapter 8 Utility Library© National Instruments Corporation 8-51 LabWindows/CVI Standard Libraries• You can call RunExternalModule. This requires tha
Utility Library Chapter 8LabWindows/CVI Standard Libraries 8-52 © National Instruments Corporation3. If the file has not been found and its extension
Chapter 1 ANSI C Library© National Instruments Corporation 1-9 LabWindows/CVI Standard LibrariesThe UNIX version of LabWindows/CVI works with all the
Chapter 8 Utility Library© National Instruments Corporation 8-53 LabWindows/CVI Standard LibrariesParametersInputpathNamestring Relative or absolute p
Utility Library Chapter 8LabWindows/CVI Standard Libraries 8-54 © National Instruments Corporationcommand in the Build menu of the Project Window to c
Chapter 8 Utility Library© National Instruments Corporation 8-55 LabWindows/CVI Standard LibrariesExample/* make a new directory named \DATA\WAVEFORM
Utility Library Chapter 8LabWindows/CVI Standard Libraries 8-56 © National Instruments Corporationoutpchar byteWritten = outp(int portNumber, char byt
Chapter 8 Utility Library© National Instruments Corporation 8-57 LabWindows/CVI Standard LibrariesReadFromPhysicalMemoryint status = ReadFromPhysicalM
Utility Library Chapter 8LabWindows/CVI Standard Libraries 8-58 © National Instruments CorporationReadFromPhysicalMemoryExint status = ReadFromPhysica
Chapter 8 Utility Library© National Instruments Corporation 8-59 LabWindows/CVI Standard LibrariesReleaseExternalModuleint status = ReleaseExternalMod
Utility Library Chapter 8LabWindows/CVI Standard Libraries 8-60 © National Instruments CorporationRenameFileint result = RenameFile (char existingFile
Chapter 8 Utility Library© National Instruments Corporation 8-61 LabWindows/CVI Standard LibrariesUnder UNIX, if the arguments to RenameFile specify f
Utility Library Chapter 8LabWindows/CVI Standard Libraries 8-62 © National Instruments CorporationReturn Valuenlong Result of the rounding operation.E
WarrantyThe media on which you receive National Instruments software are warranted not to fail to execute programminginstructions, due to defects in m
ANSI C Library Chapter 1LabWindows/CVI Standard Libraries 1-10 © National Instruments CorporationParameter Discussionmode is the same as the mode pa
Chapter 8 Utility Library© National Instruments Corporation 8-63 LabWindows/CVI Standard LibrariesParameter DiscussionmoduleID is the value LoadExtern
Utility Library Chapter 8LabWindows/CVI Standard Libraries 8-64 © National Instruments CorporationIf debugging is disabled, this function has no effec
Chapter 8 Utility Library© National Instruments Corporation 8-65 LabWindows/CVI Standard LibrariesYou can use this function to prevent LabWindows/CVI
Utility Library Chapter 8LabWindows/CVI Standard Libraries 8-66 © National Instruments CorporationSetDirint result = SetDir (char directoryName[]);Pur
Chapter 8 Utility Library© National Instruments Corporation 8-67 LabWindows/CVI Standard LibrariesReturn Valueresultinteger Result of operation.Return
Utility Library Chapter 8LabWindows/CVI Standard Libraries 8-68 © National Instruments CorporationReturn Valueresultreturn value Result of operation.R
Chapter 8 Utility Library© National Instruments Corporation 8-69 LabWindows/CVI Standard LibrariesParametersInputfileNamestring File to set attributes
Utility Library Chapter 8LabWindows/CVI Standard Libraries 8-70 © National Instruments CorporationSetFileTimeint result = SetFileTime (char fileName[]
Chapter 8 Utility Library© National Instruments Corporation 8-71 LabWindows/CVI Standard LibrariesSetPersistentVariablevoid SetPersistentVariable (int
Utility Library Chapter 8LabWindows/CVI Standard Libraries 8-72 © National Instruments CorporationParametersInputstdioPortinteger CVI_STDIO_WINDOW (0)
© National Instruments Corporation 2-1 LabWindows/CVI Standard LibrariesChapter 2Formatting and I/O LibraryThis chapter describes the functions in the
Chapter 8 Utility Library© National Instruments Corporation 8-73 LabWindows/CVI Standard LibrariesParametersInputmaxNumLinesinteger The maximum number
Utility Library Chapter 8LabWindows/CVI Standard Libraries 8-74 © National Instruments CorporationshowLineNumbers—In an executable, the default value
Chapter 8 Utility Library© National Instruments Corporation 8-75 LabWindows/CVI Standard LibrariesParameter DiscussionTo vertically center the Standar
Utility Library Chapter 8LabWindows/CVI Standard Libraries 8-76 © National Instruments CorporationSetStdioWindowVisibilityvoid SetStdioWindowVisibilit
Chapter 8 Utility Library© National Instruments Corporation 8-77 LabWindows/CVI Standard LibrariesSetSystemTimeint status = SetSystemTime(int hours, i
Utility Library Chapter 8LabWindows/CVI Standard Libraries 8-78 © National Instruments CorporationParametersInputpathNamestring Path name to be split.
Chapter 8 Utility Library© National Instruments Corporation 8-79 LabWindows/CVI Standard LibrariesSyncWaitvoid SyncWait (double beginTime, double inte
Utility Library Chapter 8LabWindows/CVI Standard Libraries 8-80 © National Instruments CorporationParametersInputhelpFilestring Points to a string con
Chapter 8 Utility Library© National Instruments Corporation 8-81 LabWindows/CVI Standard LibrariesHELP_CONTEXTPOPUP—Displays in a pop-up window a part
Utility Library Chapter 8LabWindows/CVI Standard Libraries 8-82 © National Instruments CorporationTerminateExecutableint status = TerminateExecutable
Formatting and I/O Library Chapter 2LabWindows/CVI Standard Libraries 2-2 © National Instruments CorporationTable 2-1. The Formatting and I/O Libra
Chapter 8 Utility Library© National Instruments Corporation 8-83 LabWindows/CVI Standard LibrariesTimerdouble t = Timer (void);PurposeReturns the numb
Utility Library Chapter 8LabWindows/CVI Standard Libraries 8-84 © National Instruments CorporationTruncateRealNumberdouble y = TruncateRealNumber (dou
Chapter 8 Utility Library© National Instruments Corporation 8-85 LabWindows/CVI Standard LibrariesExampleint module_id;int status;char *pathname'
Utility Library Chapter 8LabWindows/CVI Standard Libraries 8-86 © National Instruments CorporationReturn Valuestatus integer Indicates whether the fun
Chapter 8 Utility Library© National Instruments Corporation 8-87 LabWindows/CVI Standard LibrariesReturn Valuestatusinteger Indicates whether the func
© National Instruments Corporation 9-1 LabWindows/CVI Standard LibrariesChapter 9X Property Library___________________________________________________
X Property Library Chapter 9LabWindows/CVI Standard Libraries 9-2 © National Instruments CorporationTable 9-1. The X Property Library Function TreeAc
Chapter 9 X Property Library© National Instruments Corporation 9-3 LabWindows/CVI Standard LibrariesWith the LabWindows/CVI X Property Library functio
X Property Library Chapter 9LabWindows/CVI Standard Libraries 9-4 © National Instruments Corporationnot delete it, the property remains there indefini
Chapter 9 X Property Library© National Instruments Corporation 9-5 LabWindows/CVI Standard LibrariesTable 9-3. X Property Library Error Types and Desc
Chapter 2 Formatting and I/O Library© National Instruments Corporation 2-3 LabWindows/CVI Standard Libraries• The Data Formatting function panels perf
X Property Library Chapter 9LabWindows/CVI Standard Libraries 9-6 © National Instruments CorporationTable 9-3. X Property Library Error Types and Desc
Chapter 9 X Property Library© National Instruments Corporation 9-7 LabWindows/CVI Standard LibrariesUsing the Library Outside of LabWindows/CVIYou can
X Property Library Chapter 9LabWindows/CVI Standard Libraries 9-8 © National Instruments CorporationParametersInputdisplayNamestring Determines the X
Chapter 9 X Property Library© National Instruments Corporation 9-9 LabWindows/CVI Standard LibrariesSee AlsoRefer to the Xlib Programming Manual or to
X Property Library Chapter 9LabWindows/CVI Standard Libraries 9-10 © National Instruments CorporationReturn ValuesThe return value indicates the succe
Chapter 9 X Property Library© National Instruments Corporation 9-11 LabWindows/CVI Standard LibrariesThere are three predefined property types that yo
X Property Library Chapter 9LabWindows/CVI Standard Libraries 9-12 © National Instruments CorporationParameter DiscussionUsually, you can use the expr
Chapter 9 X Property Library© National Instruments Corporation 9-13 LabWindows/CVI Standard LibrariesParameterInputpropertyPropertyHandleXHandle to th
X Property Library Chapter 9LabWindows/CVI Standard Libraries 9-14 © National Instruments CorporationReturn ValuesThe return value indicates the succe
Chapter 9 X Property Library© National Instruments Corporation 9-15 LabWindows/CVI Standard LibrariesSee AlsoRefer to the Xlib Programming Manual or t
Formatting and I/O Library Chapter 2LabWindows/CVI Standard Libraries 2-4 © National Instruments Corporationdescribed in detail in the Using the For
X Property Library Chapter 9LabWindows/CVI Standard Libraries 9-16 © National Instruments CorporationWarning: The propertyName pointer points to memor
Chapter 9 X Property Library© National Instruments Corporation 9-17 LabWindows/CVI Standard LibrariesReturn ValuesThe return value indicates the succe
X Property Library Chapter 9LabWindows/CVI Standard Libraries 9-18 © National Instruments CorporationSee AlsoCreateXPropTypeGetXPropTypeSizePropLibXEr
Chapter 9 X Property Library© National Instruments Corporation 9-19 LabWindows/CVI Standard LibrariesGetXPropTypeUnitPropLibXErrType status = GetXProp
X Property Library Chapter 9LabWindows/CVI Standard Libraries 9-20 © National Instruments CorporationGetXWindowPropertyItemPropLibXErrType status = Ge
Chapter 9 X Property Library© National Instruments Corporation 9-21 LabWindows/CVI Standard LibrariesReturn ValuesThe return value indicates the succe
X Property Library Chapter 9LabWindows/CVI Standard Libraries 9-22 © National Instruments CorporationSee AlsoRefer to the Xlib Programming Manual or t
Chapter 9 X Property Library© National Instruments Corporation 9-23 LabWindows/CVI Standard LibrariesParametersInputdisplayDisplayPtrXA pointer to the
X Property Library Chapter 9LabWindows/CVI Standard Libraries 9-24 © National Instruments CorporationReturn ValuesThe return value indicates the succe
Chapter 9 X Property Library© National Instruments Corporation 9-25 LabWindows/CVI Standard LibrariesSee AlsoRefer to the Xlib Programming Manual or t
Chapter 2 Formatting and I/O Library© National Instruments Corporation 2-5 LabWindows/CVI Standard LibrariesReturn Valuestatusinteger Indicates succes
X Property Library Chapter 9LabWindows/CVI Standard Libraries 9-26 © National Instruments CorporationParameters (Continued)numberofPropertiesunsigned
Chapter 9 X Property Library© National Instruments Corporation 9-27 LabWindows/CVI Standard Librariesdefault root window of the display used by LabWin
X Property Library Chapter 9LabWindows/CVI Standard Libraries 9-28 © National Instruments CorporationReturn ValuesThe return value indicates the succe
Chapter 9 X Property Library© National Instruments Corporation 9-29 LabWindows/CVI Standard LibrariesPutXWindowPropertyValuePropLibXErrType status = P
X Property Library Chapter 9LabWindows/CVI Standard Libraries 9-30 © National Instruments CorporationReturn ValuesThe return value indicates the succe
Chapter 9 X Property Library© National Instruments Corporation 9-31 LabWindows/CVI Standard LibrariesThe following values are valid for the mode param
X Property Library Chapter 9LabWindows/CVI Standard Libraries 9-32 © National Instruments CorporationReturn ValuesThe return value indicates the succe
Chapter 9 X Property Library© National Instruments Corporation 9-33 LabWindows/CVI Standard LibrariesUninstallXPropertyCallbackPropLibXErrType status
© National Instruments Corporation 10-1 LabWindows/CVI Standard LibrariesChapter 10Easy I/O for DAQ Library
Easy I/O for DAQ Library Chapter 10LabWindows/CVI Standard Libraries 10-2 © National Instruments CorporationThe Easy I/O for DAQ functions are devic
Formatting and I/O Library Chapter 2LabWindows/CVI Standard Libraries 2-6 © National Instruments Corporation•VAL_GROUPS_TOGETHER—all points of each
Chapter 10 Easy I/O for DAQ Library© National Instruments Corporation 10-3 LabWindows/CVI Standard LibrariesTable 10-1. Easy I/O for DAQ Function Tre
Easy I/O for DAQ Library Chapter 10LabWindows/CVI Standard Libraries 10-4 © National Instruments CorporationDevice NumbersThe first parameter to mos
Chapter 10 Easy I/O for DAQ Library© National Instruments Corporation 10-5 LabWindows/CVI Standard Libraries• If you are using a Lab-PC+, DAQCard-500
Easy I/O for DAQ Library Chapter 10LabWindows/CVI Standard Libraries 10-6 © National Instruments CorporationCommand StringsYou can use command strin
Chapter 10 Easy I/O for DAQ Library© National Instruments Corporation 10-7 LabWindows/CVI Standard LibrariesChannel String for Analog Output Functions
Easy I/O for DAQ Library Chapter 10LabWindows/CVI Standard Libraries 10-8 © National Instruments CorporationEasy I/O for DAQ Function ReferenceThis
Chapter 10 Easy I/O for DAQ Library© National Instruments Corporation 10-9 LabWindows/CVI Standard LibrariesParametersInputdeviceshort integer Assigne
Easy I/O for DAQ Library Chapter 10LabWindows/CVI Standard Libraries 10-10 © National Instruments CorporationParameter DiscussionchannelString is th
Chapter 10 Easy I/O for DAQ Library© National Instruments Corporation 10-11 LabWindows/CVI Standard LibrariesFor example, if the A/D conversions (repr
Easy I/O for DAQ Library Chapter 10LabWindows/CVI Standard Libraries 10-12 © National Instruments CorporationWhen the A/D conversions are placed sid
Chapter 2 Formatting and I/O Library© National Instruments Corporation 2-7 LabWindows/CVI Standard LibrariesCloseFileint status = CloseFile (int fileH
Chapter 10 Easy I/O for DAQ Library© National Instruments Corporation 10-13 LabWindows/CVI Standard Librarieswaveforms is an array containing the volt
Easy I/O for DAQ Library Chapter 10LabWindows/CVI Standard Libraries 10-14 © National Instruments CorporationReturn ValueerrorshortintegerRefer to e
Chapter 10 Easy I/O for DAQ Library© National Instruments Corporation 10-15 LabWindows/CVI Standard LibrariesAICheckAcquisitionshort error = AICheckAc
Easy I/O for DAQ Library Chapter 10LabWindows/CVI Standard Libraries 10-16 © National Instruments CorporationAIReadAcquisitionshort error = AIReadAc
Chapter 10 Easy I/O for DAQ Library© National Instruments Corporation 10-17 LabWindows/CVI Standard Librariesfrom the internal circular buffer, where
Easy I/O for DAQ Library Chapter 10LabWindows/CVI Standard Libraries 10-18 © National Instruments CorporationParameter DiscussionsingleChannel is th
Chapter 10 Easy I/O for DAQ Library© National Instruments Corporation 10-19 LabWindows/CVI Standard LibrariesAIStartAcquisitionshort error = AIStartAc
Easy I/O for DAQ Library Chapter 10LabWindows/CVI Standard Libraries 10-20 © National Instruments CorporationAOClearWaveformsshort error = AOClearWa
Chapter 10 Easy I/O for DAQ Library© National Instruments Corporation 10-21 LabWindows/CVI Standard LibrariesAOGenerateWaveformsshort error = AOGenera
Easy I/O for DAQ Library Chapter 10LabWindows/CVI Standard Libraries 10-22 © National Instruments CorporationupdatesPerChannel is the number of D/A
Formatting and I/O Library Chapter 2LabWindows/CVI Standard Libraries 2-8 © National Instruments CorporationReturn Valueresultinteger Result of the
Chapter 10 Easy I/O for DAQ Library© National Instruments Corporation 10-23 LabWindows/CVI Standard LibrariesParametersInputdeviceshort integer Assign
Easy I/O for DAQ Library Chapter 10LabWindows/CVI Standard Libraries 10-24 © National Instruments CorporationParameter DiscussionchannelString is th
Chapter 10 Easy I/O for DAQ Library© National Instruments Corporation 10-25 LabWindows/CVI Standard LibrariesParametersInputdeviceshortintegerAssigned
Easy I/O for DAQ Library Chapter 10LabWindows/CVI Standard Libraries 10-26 © National Instruments CorporationgateMode specifies how the signal on th
Chapter 10 Easy I/O for DAQ Library© National Instruments Corporation 10-27 LabWindows/CVI Standard LibrariesParametersInputdeviceshortintegerAssigned
Easy I/O for DAQ Library Chapter 10LabWindows/CVI Standard Libraries 10-28 © National Instruments Corporation• If you use TWO_COUNTERS, counter+1 i
Chapter 10 Easy I/O for DAQ Library© National Instruments Corporation 10-29 LabWindows/CVI Standard LibrariessourceEdge is the edge of the counter sou
Easy I/O for DAQ Library Chapter 10LabWindows/CVI Standard Libraries 10-30 © National Instruments CorporationTable 10-4. Adjacent CountersAm9513cou
Chapter 10 Easy I/O for DAQ Library© National Instruments Corporation 10-31 LabWindows/CVI Standard LibrariesParametersInputdeviceshortintegerAssigned
Easy I/O for DAQ Library Chapter 10LabWindows/CVI Standard Libraries 10-32 © National Instruments CorporationReturn ValueerrorshortintegerRefer to e
Chapter 2 Formatting and I/O Library© National Instruments Corporation 2-9 LabWindows/CVI Standard LibrariesReturn Valueresultinteger Result of the co
Chapter 10 Easy I/O for DAQ Library© National Instruments Corporation 10-33 LabWindows/CVI Standard LibrariesParametersInputtaskIDunsigned longinteger
Easy I/O for DAQ Library Chapter 10LabWindows/CVI Standard Libraries 10-34 © National Instruments CorporationCounterStopshort error = CounterStop (u
Chapter 10 Easy I/O for DAQ Library© National Instruments Corporation 10-35 LabWindows/CVI Standard LibrariesParametersInputdeviceshort integer Assign
Easy I/O for DAQ Library Chapter 10LabWindows/CVI Standard Libraries 10-36 © National Instruments Corporation• pulseWidth is the desired duration o
Chapter 10 Easy I/O for DAQ Library© National Instruments Corporation 10-37 LabWindows/CVI Standard LibrariesFrequencyDividerConfigshort error = Frequ
Easy I/O for DAQ Library Chapter 10LabWindows/CVI Standard Libraries 10-38 © National Instruments CorporationParametersInputdeviceshort integer Assi
Chapter 10 Easy I/O for DAQ Library© National Instruments Corporation 10-39 LabWindows/CVI Standard LibrariestimebaseDivisor is the source frequency d
Easy I/O for DAQ Library Chapter 10LabWindows/CVI Standard Libraries 10-40 © National Instruments CorporationGetAILimitsOfChannelshort error = GetAI
Chapter 10 Easy I/O for DAQ Library© National Instruments Corporation 10-41 LabWindows/CVI Standard LibrariesinitialHighLimitVolts specifies the maxim
Easy I/O for DAQ Library Chapter 10LabWindows/CVI Standard Libraries 10-42 © National Instruments CorporationParametersInputdeviceshort integer Assi
WARNING REGARDING MEDICAL AND CLINICAL USEOF NATIONAL INSTRUMENTS PRODUCTSNational Instruments products are not designed with components and testing i
Formatting and I/O Library Chapter 2LabWindows/CVI Standard Libraries 2-10 © National Instruments CorporationParameter DiscussionBoth sourceIndex an
Chapter 10 Easy I/O for DAQ Library© National Instruments Corporation 10-43 LabWindows/CVI Standard LibrariesParametersInputdeviceshort integer Assign
Easy I/O for DAQ Library Chapter 10LabWindows/CVI Standard Libraries 10-44 © National Instruments CorporationGetNumChannelsshort error = GetNumChann
Chapter 10 Easy I/O for DAQ Library© National Instruments Corporation 10-45 LabWindows/CVI Standard LibrariesIf you acquire data in "grouped by s
Easy I/O for DAQ Library Chapter 10LabWindows/CVI Standard Libraries 10-46 © National Instruments CorporationParametersInputdeviceshort integer Assi
Chapter 10 Easy I/O for DAQ Library© National Instruments Corporation 10-47 LabWindows/CVI Standard Libraries• 5: I_HARDWARE_TRIGGERED_STROBE—similar
Easy I/O for DAQ Library Chapter 10LabWindows/CVI Standard Libraries 10-48 © National Instruments CorporationPulseWidthOrPeriodMeasConfigshort error
Chapter 10 Easy I/O for DAQ Library© National Instruments Corporation 10-49 LabWindows/CVI Standard LibrariesParameter DiscussiontypeOfMeasurement ide
Easy I/O for DAQ Library Chapter 10LabWindows/CVI Standard Libraries 10-50 © National Instruments CorporationParametersInputdeviceshort integer Assi
Chapter 10 Easy I/O for DAQ Library© National Instruments Corporation 10-51 LabWindows/CVI Standard Libraries• The portWidth for the 8255-based digit
Easy I/O for DAQ Library Chapter 10LabWindows/CVI Standard Libraries 10-52 © National Instruments CorporationReturn Valueerrorshort integer Refer to
Chapter 2 Formatting and I/O Library© National Instruments Corporation 2-11 LabWindows/CVI Standard LibrariesFileToArrayint status = FileToArray (char
Chapter 10 Easy I/O for DAQ Library© National Instruments Corporation 10-53 LabWindows/CVI Standard LibrariesSetEasyIOMultitaskingModevoid SetEasyIOMu
Easy I/O for DAQ Library Chapter 10LabWindows/CVI Standard Libraries 10-54 © National Instruments CorporationParametersInputdeviceshort integer Assi
Chapter 10 Easy I/O for DAQ Library© National Instruments Corporation 10-55 LabWindows/CVI Standard Libraries• The portWidth for the 8255-based digit
Easy I/O for DAQ Library Chapter 10LabWindows/CVI Standard Libraries 10-56 © National Instruments CorporationReturn Valueerrorshort integer Refer to
Chapter 10 Easy I/O for DAQ Library© National Instruments Corporation 10-57 LabWindows/CVI Standard LibrariesError ConditionsAll of the functions in t
Easy I/O for DAQ Library Chapter 10LabWindows/CVI Standard Libraries 10-58 © National Instruments CorporationTable 10-5. Easy I/O for DAQ Error Cod
Chapter 10 Easy I/O for DAQ Library© National Instruments Corporation 10-59 LabWindows/CVI Standard LibrariesTable 10-5. Easy I/O for DAQ Error Codes
Easy I/O for DAQ Library Chapter 10LabWindows/CVI Standard Libraries 10-60 © National Instruments CorporationTable 10-5. Easy I/O for DAQ Error Cod
Chapter 10 Easy I/O for DAQ Library© National Instruments Corporation 10-61 LabWindows/CVI Standard LibrariesTable 10-5. Easy I/O for DAQ Error Codes
Easy I/O for DAQ Library Chapter 10LabWindows/CVI Standard Libraries 10-62 © National Instruments CorporationTable 10-5. Easy I/O for DAQ Error Cod
Formatting and I/O Library Chapter 2LabWindows/CVI Standard Libraries 2-12 © National Instruments CorporationParameter DiscussionFileName may be an
Chapter 10 Easy I/O for DAQ Library© National Instruments Corporation 10-63 LabWindows/CVI Standard LibrariesTable 10-5. Easy I/O for DAQ Error Codes
Easy I/O for DAQ Library Chapter 10LabWindows/CVI Standard Libraries 10-64 © National Instruments CorporationTable 10-5. Easy I/O for DAQ Error Cod
Chapter 10 Easy I/O for DAQ Library© National Instruments Corporation 10-65 LabWindows/CVI Standard LibrariesTable 10-5. Easy I/O for DAQ Error Codes
Easy I/O for DAQ Library Chapter 10LabWindows/CVI Standard Libraries 10-66 © National Instruments CorporationTable 10-5. Easy I/O for DAQ Error Cod
© National Instruments Corporation A-1 LabWindows/CVI Standard LibrariesAppendix ACustomer CommunicationFor your convenience, this appendix contains f
Customer Communication Appendix ALabWindows/CVI Standard Libraries A-2 © National Instruments CorporationFTP SupportTo access our FTP site, log on to
Technical Support FormPhotocopy this form and update it each time you make changes to your software or hardware, and use the completedcopy of this for
Hardware and Software Configuration FormRecord the settings and revisions of your hardware and software on the line to the right of each item. Comple
Documentation Comment FormNational Instruments encourages you to comment on the documentation supplied with our products. Thisinformation helps us pr
© National Instruments Corporation G-1 LabWindows/CVI Standard LibrariesGlossaryPrefix Meaning Valuen- nano-10-9µ-micro-10-6m- milli-10-3k- kilo-103M-
Chapter 2 Formatting and I/O Library© National Instruments Corporation 2-13 LabWindows/CVI Standard LibrariesFillBytesvoid FillBytes (char buffer[], i
GlossaryLabWindows/CVI Standard Libraries G-2 © National Instruments Corporationin hardware, no data is transferred to system memory until the trigge
Glossary© National Instruments Corporation G-3 LabWindows/CVI Standard LibrariesDD/A Digital-to-analog.DAC D/AconverterAn electronic device, often an
GlossaryLabWindows/CVI Standard Libraries G-4 © National Instruments CorporationGG gain The factor by which a signal is amplified, sometimes expresse
Glossary© National Instruments Corporation G-5 LabWindows/CVI Standard LibrariesKKB Kilobytes of memory.kS 1,000 samples.ksamples 1,000 samples.LLSB L
GlossaryLabWindows/CVI Standard Libraries G-6 © National Instruments Corporationpretriggering The technique used on a DAQ board to keep a continuous
Glossary© National Instruments Corporation G-7 LabWindows/CVI Standard LibrariesTTC Terminal count.throughput rate The data, measured in bytes/s, for
© National Instruments Corporation I-1 LabWindows/CVI Standard LibrariesIndex
IndexLabWindows/CVI Standard Libraries I-2 © National Instruments CorporationMaxMin2D, 3-24 to 3-25Mean, 3-25 to 3-26Mul1D, 3-26 to 3-27Mul2D, 3-27Neg
Index© National Instruments Corporation I-3 LabWindows/CVI Standard LibrariesBBeep function, 8-5board control functions, GPIB, 4-7board control functi
IndexLabWindows/CVI Standard Libraries I-4 © National Instruments CorporationCxRecip, 3-13 to 3-14CxSub, 3-14CxSub1D, 3-15ToPolar, 3-32 to 3-33ToPolar
Formatting and I/O Library Chapter 2LabWindows/CVI Standard Libraries 2-14 © National Instruments CorporationReturn ValuendxintegerIndex in buffer w
Index© National Instruments Corporation I-5 LabWindows/CVI Standard LibrariesDateStr, 8-9GetSystemDate, 8-38GetSystemTime, 8-39SetSystemDate, 8-76SetS
IndexLabWindows/CVI Standard Libraries I-6 © National Instruments CorporationDisconnectTCPClient function, 7-7Div1D function, 3-16 to 3-17Div2D functi
Index© National Instruments Corporation I-7 LabWindows/CVI Standard Librarieserror conditionsAnalysis Library functions, 3-37DDE Library functions, 6-
IndexLabWindows/CVI Standard Libraries I-8 © National Instruments Corporationusing literals, 2-40scanning functions, 2-41 to 2-43examples, 2-41form of
Index© National Instruments Corporation I-9 LabWindows/CVI Standard Librariesinteger modifiers (%i, %d, %x, %o, %c),2-35 to 2-37string modifiers (%s),
IndexLabWindows/CVI Standard Libraries I-10 © National Instruments Corporationhardware interrupts and autopolling, 4-8to 4-9overview, 4-1platform and
Index© National Instruments Corporation I-11 LabWindows/CVI Standard Librarieshardware interrupts and autopolling, 4-8to 4-9InvMatrix function, 3-20 t
IndexLabWindows/CVI Standard Libraries I-12 © National Instruments CorporationNNeg1D function, 3-28null modem cable, 5-5NumFmtdBytes function, 2-20Oon
Index© National Instruments Corporation I-13 LabWindows/CVI Standard LibrariesRread termination, GPIB, 4-9ReadFile function, 2-22 to 2-23ReadFromDigit
IndexLabWindows/CVI Standard Libraries I-14 © National Instruments CorporationSscanning function programming examplesASCII file to two integers with e
Chapter 2 Formatting and I/O Library© National Instruments Corporation 2-15 LabWindows/CVI Standard LibrariesParametersInputformatStringString.source1
Index© National Instruments Corporation I-15 LabWindows/CVI Standard LibrariesSetStdioWindowOptions function, 8-72to 8-74SetStdioWindowPosition functi
IndexLabWindows/CVI Standard Libraries I-16 © National Instruments Corporationsynchronous callbacks, 4-12SyncWait function, 8-79system control functio
Index© National Instruments Corporation I-17 LabWindows/CVI Standard LibrariesDeleteDir, 8-10DeleteFile, 8-10 to 8-11DisableBreakOnLibraryErrors, 8-11
IndexLabWindows/CVI Standard Libraries I-18 © National Instruments CorporationTruncateRealNumber, 8-84UnloadExternalModule, 8-84 to 8-85WriteToPhysica
Index© National Instruments Corporation I-19 LabWindows/CVI Standard LibrariesPutXWindowPropertyValue, 9-29to 9-31RemoveXWindowProperty, 9-31to 9-32Un
Formatting and I/O Library Chapter 2LabWindows/CVI Standard Libraries 2-16 © National Instruments CorporationReturn Valueninteger Number of source f
Chapter 2 Formatting and I/O Library© National Instruments Corporation 2-17 LabWindows/CVI Standard LibrariesUsing This FunctionThe return value indic
Formatting and I/O Library Chapter 2LabWindows/CVI Standard Libraries 2-18 © National Instruments CorporationGetFmtErrNdxint n = GetFmtErrNdx (void)
Chapter 2 Formatting and I/O Library© National Instruments Corporation 2-19 LabWindows/CVI Standard Librarieserror). If the last function that perform
© National Instruments Corporation v LabWindows/CVI Standard LibrariesContents________________________________________________________________________
Formatting and I/O Library Chapter 2LabWindows/CVI Standard Libraries 2-20 © National Instruments CorporationNumFmtdBytesint n = NumFmtdBytes (void)
Chapter 2 Formatting and I/O Library© National Instruments Corporation 2-21 LabWindows/CVI Standard LibrariesParametersInputfileNamestring Pathname.re
Formatting and I/O Library Chapter 2LabWindows/CVI Standard Libraries 2-22 © National Instruments CorporationfileType specifies whether to treat fil
Chapter 2 Formatting and I/O Library© National Instruments Corporation 2-23 LabWindows/CVI Standard LibrariesUsing This FunctionThe return value can b
Formatting and I/O Library Chapter 2LabWindows/CVI Standard Libraries 2-24 © National Instruments Corporationcarriage-return/linefeed combination wi
Chapter 2 Formatting and I/O Library© National Instruments Corporation 2-25 LabWindows/CVI Standard LibrariesScanFileint n = ScanFile (int fileHandle,
Formatting and I/O Library Chapter 2LabWindows/CVI Standard Libraries 2-26 © National Instruments CorporationParametersInputformatStringString.Outpu
Chapter 2 Formatting and I/O Library© National Instruments Corporation 2-27 LabWindows/CVI Standard LibrariesReturn Valuepositionlong integer Offset o
Formatting and I/O Library Chapter 2LabWindows/CVI Standard Libraries 2-28 © National Instruments Corporationresult = WriteFile(handle, "Hello,
Chapter 2 Formatting and I/O Library© National Instruments Corporation 2-29 LabWindows/CVI Standard LibrariesReturn ValueNoneStringUpperCasevoid Strin
ContentsLabWindows/CVI Standard Libraries vi © National Instruments CorporationGetFmtErrNdx...
Formatting and I/O Library Chapter 2LabWindows/CVI Standard Libraries 2-30 © National Instruments CorporationReturn Code-1Error.Parameter Discussion
Chapter 2 Formatting and I/O Library© National Instruments Corporation 2-31 LabWindows/CVI Standard LibrariesReturn Code-1I/O error.Parameter Discussi
Formatting and I/O Library Chapter 2LabWindows/CVI Standard Libraries 2-32 © National Instruments CorporationConvert the integer value 23 to its ASC
Chapter 2 Formatting and I/O Library© National Instruments Corporation 2-33 LabWindows/CVI Standard LibrariesEach of these formatting functions return
Formatting and I/O Library Chapter 2LabWindows/CVI Standard Libraries 2-34 © National Instruments CorporationFormat specifiers describe the inputs a
Chapter 2 Formatting and I/O Library© National Instruments Corporation 2-35 LabWindows/CVI Standard Librariesf real number. This source or target spe
Formatting and I/O Library Chapter 2LabWindows/CVI Standard Libraries 2-36 © National Instruments Corporationthe integer is converted to a string fo
Chapter 2 Formatting and I/O Library© National Instruments Corporation 2-37 LabWindows/CVI Standard LibrariesNote: When using both the bn and on modi
Formatting and I/O Library Chapter 2LabWindows/CVI Standard Libraries 2-38 © National Instruments Corporationt Truncate. The t floating-point modif
Chapter 2 Formatting and I/O Library© National Instruments Corporation 2-39 LabWindows/CVI Standard Librariestn Terminate on Character. When applied
Contents© National Instruments Corporation vii LabWindows/CVI Standard LibrariesInteger Array to Binary File, Assuming a FixedNumber of Elements...
Formatting and I/O Library Chapter 2LabWindows/CVI Standard Libraries 2-40 © National Instruments CorporationFmt, FmtFile, FmtOut—Literals in the Fo
Chapter 2 Formatting and I/O Library© National Instruments Corporation 2-41 LabWindows/CVI Standard LibrariesScanning Functions—Format StringConsider
Formatting and I/O Library Chapter 2LabWindows/CVI Standard Libraries 2-42 © National Instruments Corporationformatcode is specified with one of the
Chapter 2 Formatting and I/O Library© National Instruments Corporation 2-43 LabWindows/CVI Standard Librariesf real number. As a source or target spe
Formatting and I/O Library Chapter 2LabWindows/CVI Standard Libraries 2-44 © National Instruments Corporationrn Specify Radix. The r integer modifi
Chapter 2 Formatting and I/O Library© National Instruments Corporation 2-45 LabWindows/CVI Standard Librariesshort int instr_buf[100];short int prog_b
Formatting and I/O Library Chapter 2LabWindows/CVI Standard Libraries 2-46 © National Instruments CorporationIf the pn modifier is omitted, a defaul
Chapter 2 Formatting and I/O Library© National Instruments Corporation 2-47 LabWindows/CVI Standard Librariesthan the number of bytes available from t
Formatting and I/O Library Chapter 2LabWindows/CVI Standard Libraries 2-48 © National Instruments Corporationx Discard Terminator. When applied to
Chapter 2 Formatting and I/O Library© National Instruments Corporation 2-49 LabWindows/CVI Standard LibrariesSome formats may have been correctly dete
ContentsLabWindows/CVI Standard Libraries viii © National Instruments CorporationChapter 3Analysis Library ...
Formatting and I/O Library Chapter 2LabWindows/CVI Standard Libraries 2-50 © National Instruments CorporationString to Integer and RealString to Str
Chapter 2 Formatting and I/O Library© National Instruments Corporation 2-51 LabWindows/CVI Standard LibrariesFmt (buf, "%s<%i[w6p0]", a);
Formatting and I/O Library Chapter 2LabWindows/CVI Standard Libraries 2-52 © National Instruments CorporationFmt (buf, "%s<%f[p0]", x);
Chapter 2 Formatting and I/O Library© National Instruments Corporation 2-53 LabWindows/CVI Standard LibrariesInteger and Real to String with Literalsc
Formatting and I/O Library Chapter 2LabWindows/CVI Standard Libraries 2-54 © National Instruments Corporationif ((i % 5) == 4)WriteFile (file_handle
Chapter 2 Formatting and I/O Library© National Instruments Corporation 2-55 LabWindows/CVI Standard LibrariesReal Array to Binary File, Assuming a Var
Formatting and I/O Library Chapter 2LabWindows/CVI Standard Libraries 2-56 © National Instruments CorporationConcatenating Two Stringschar buf[30];i
Chapter 2 Formatting and I/O Library© National Instruments Corporation 2-57 LabWindows/CVI Standard Librariescase 2:Fmt (buf, "%s<TRIANGLE;&qu
Formatting and I/O Library Chapter 2LabWindows/CVI Standard Libraries 2-58 © National Instruments CorporationWriting a Line Containing an Integer wi
Chapter 2 Formatting and I/O Library© National Instruments Corporation 2-59 LabWindows/CVI Standard LibrariesScan/ScanFile/ScanIn Examples in CThis se
Contents© National Instruments Corporation ix LabWindows/CVI Standard LibrariesToPolar1D...
Formatting and I/O Library Chapter 2LabWindows/CVI Standard Libraries 2-60 © National Instruments CorporationScan considers the occurrence of a non-
Chapter 2 Formatting and I/O Library© National Instruments Corporation 2-61 LabWindows/CVI Standard LibrariesWhen locating a real number in a string,
Formatting and I/O Library Chapter 2LabWindows/CVI Standard Libraries 2-62 © National Instruments CorporationString to Stringchar *s;char buf[10];in
Chapter 2 Formatting and I/O Library© National Instruments Corporation 2-63 LabWindows/CVI Standard LibrariesString to Integer and Stringchar *s;char
Formatting and I/O Library Chapter 2LabWindows/CVI Standard Libraries 2-64 © National Instruments CorporationString to Real, After Finding a Semicol
Chapter 2 Formatting and I/O Library© National Instruments Corporation 2-65 LabWindows/CVI Standard LibrariesString with Comma-Separated ASCII Numbers
Formatting and I/O Library Chapter 2LabWindows/CVI Standard Libraries 2-66 © National Instruments CorporationThis code shows how to insert an ASCII
Chapter 2 Formatting and I/O Library© National Instruments Corporation 2-67 LabWindows/CVI Standard LibrariesThe first call to Scan treats the 1-byte
Formatting and I/O Library Chapter 2LabWindows/CVI Standard Libraries 2-68 © National Instruments CorporationThe first call to Scan assumes that the
Chapter 2 Formatting and I/O Library© National Instruments Corporation 2-69 LabWindows/CVI Standard Librariesthen reads the correct number of elements
Kommentare zu diesen Handbüchern