NI-SCOPE C Function Reference

niScope_ClearError

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

C Function Prototype

ViStatus niScope_ClearError (ViSession vi);

Purpose

Note   This function is included for compliance with the IviScope Class Specification.

Clears the error information for the current execution thread and the IVI session you specify. If you pass VI_NULL for the Instrument Handle parameter, this function clears the error information only for the current execution thread.

Parameters

Input
Name Type Description
vi ViSession The instrument handle you obtain from niScope_init that identifies a particular instrument session.

Return Value

Name Type Description
Status ViStatus Reports the status of this operation. To obtain a text description of the status code, call niScope_GetErrorMessage. To obtain additional information concerning the error condition, use niScope_GetError and niScope_ClearError. The general meaning of the status code is as follows:

Value Meaning
0 Success
Positive Values Warnings
Negative Values Errors

Log in to get a better experience