niSwitch_error_query

NI-SWITCH Functions

niSwitch_error_query

Specific Function

C Function Prototype

ViStatus niSwitch_error_query (ViSession vi, ViInt32* errorCode, ViChar[] errorMessage);

Purpose

This function reads an error code and a message from the instrument error queue.
NI-SWITCH does not have an error queue, so this function never returns any errors.

Parameters

Name Type Description
vi ViSession A particular NI-SWITCH session established with niSwitch_InitWithTopology, niSwitch_InitWithOptions, or niSwitch_init and used for all subsequent NI-SWITCH calls.

errorCode ViInt32 Returns the error code read from the instrument error queue.
NI-SWITCH does not have an error queue, so this function never returns any errors.

errorMessage ViChar[] Returns the error message string read from the instrument's error message queue. You must pass a ViChar array with at least 256 bytes.
NI-SWITCH does not have an error queue, so this function only returns No error.