Getdaqerrormessage – National Instruments Measure Data Acquisition User Manual

Page 45

Advertising
background image

Chapter 6 Using Measure Data Acquisition Tasks with VBA

© National Instruments Corporation

6-3

Measure Data Acquisition User Manual

GetDAQErrorMessage

Finds and returns a description of an error code returned by the DAQ function.

Syntax

Function GetDAQErrorMessage(ErrorCode As Integer) As String

Parameters

Option

Description

ErrorCode

A non-zero number returned by the DAQ function that indicates an
error.

Return Value

A short description of the error code.

Example

See the previous example for the DAQ function.

Advertising