beautypg.com

Daqgetlasterror – Measurement Computing Data Acquisition Systems rev.10.4 User Manual

Page 253

background image



daqGetLastError

Also See: daqDefaultErrorHandler,

daqProcessError, daqSetDefaultErrorHandler

Format

daqGetLastError (handle, errCode)

Purpose

daqGetLastError

retrieves the last error condition code registered by the driver.

Parameter Summary

Parameter Type

Description

handle DaqHandleT

Handle to the device

errCode DaqError

Pointer to a value which holds the last returned error code

Parameter Values

handle:

obtained from the daqOpen function

errCode:

pointer to a valid error code ranging from 0 to 1,000

Returns

DerrNoError

No error

Function Usage

This function will return the last error registered by the driver against the device specified by the handle
parameter. The last error registered against the device will be returned in the memory pointed to by the
errorCode

parameter.

For more details on error messages refer to the Daq Error Table.

Prototypes

C/C++

daqGetLastError(DaqHandleT handle, DaqError *errCode);

Visual BASIC

VBdaqGetLastError&(ByVal handle&, errCode&)

Program References

None

Programmer’s Manual

908794

Daq API Command Reference 4.5-23