NI-DMM C Function Reference Help

niDMM_error_query

  • Updated2023-02-21
  • 1 minute(s) read

ViStatus = niDMM_error_query(ViSession Instrument_Handle, ViStatus *Error_Code, ViChar Error_Message[])

Purpose

Reads an Error_Code and message from the DMM error queue. National Instruments DMMs do not contain an error queue. Errors are reported as they occur. Therefore, this function does not detect errors; it is included for compliance with the IviDmm Class Specification.

Parameters

Input
Name Type Description
Instrument_Handle ViSession Identifies a particular instrument session. You obtain the Instrument_Handle parameter from niDMM_init or niDMM_InitWithOptions. The default is None.
Output
Name Type Description
Error_Code ViStatus* The Error_Code returned from the instrument.

The default value is VI_SUCCESS (0).

Error_Message ViChar[] Formats the Error_Code into a user-readable message string.
Note   The array must contain at least 256 elements ViChar[256].

Return Value

Name Type Description
Status ViStatus Reports the Status of this operation. To obtain a text description of the status code, call niDMM_GetErrorMessage. To obtain additional information concerning the error condition, use niDMM_GetError.

Log in to get a better experience