IviSwtch Error and Completion Codes

CVI/LabWindows IVI Class Driver

IviSwtch Error and Warning Codes

The functions in this class driver generate return values that report the status of this operation. To obtain a text description of the status code, or if the status code is not listed below, call the IviSwtch_error_message function. To obtain additional information about the error condition, use the IviSwtch_GetError and IviSwtch_ClearError functions.

Note  If a function succeeds, it returns VI_SUCCESS, which has a numeric value of 0.

Status Code Ranges

Status Code Type Numeric Range (in Hex) Include File
IviSwtch Errors 0xBFFA2001 to 0xBFFA3FFF iviswtch.h
IviSwtch Warnings 0x3FFA2001 to 0x3FFA3FFF iviswtch.h
Specific Driver Errors 0xBFFA4000 to 0xBFFA5FFF Prefix.h
Specific Driver Warnings 0x3FFA4000 to 0x3FFA5FFF Prefix.h
IVI Errors 0xBFFA0000 to 0xBFFA1FFF ivi.h
IVI Warnings 0x3FFA0000 to 0x3FFA1FFF ivi.h
Common Instrument Driver Errors 0xBFFC0000 to 0xBFFCFFFF vpptype.h
Common Instrument Driver Warnings 0x3FFC0000 to 0x3FFCFFFF vpptype.h
VISA Errors 0xBFFF0000 to 0xBFFFFFFF visa.h
VISA Warnings 0x3FFF0000 to 0x3FFFFFFF visa.h

IviSwtch Error Codes

Error Codes Value Description
IVISWTCH_ERROR_INVALID_SWITCH_PATH 0xBFFA2001 Invalid path list string.
IVISWTCH_ERROR_INVALID_SCAN_LIST 0xBFFA2002 The given scan list string does not have the correct syntax.
IVISWTCH_ERROR_RSRC_IN_USE 0xBFFA2003 One of the channels in the path is a configuration channel that is in use.
IVISWTCH_ERROR_EMPTY_SCAN_LIST 0xBFFA2004 No scan list specified.
IVISWTCH_ERROR_EMPTY_SWITCH_PATH 0xBFFA2005 The specified path list string is empty.
IVISWTCH_ERROR_SCAN_IN_PROGRESS 0xBFFA2006 The switch module is currently scanning through the scan list.
IVISWTCH_ERROR_NO_SCAN_IN_PROGRESS 0xBFFA2007 The switch module is not currently scanning through the scan list.
IVISWTCH_ERROR_NO_SUCH_PATH 0xBFFA2008 No explicit path exists between the channels.
IVISWTCH_ERROR_IS_CONFIGURATION _CHANNEL 0xBFFA2009 An explicit connection to a configuration channel is not allowed.
IVISWTCH_ERROR_NOT_A_CONFIGURATION _CHANNEL 0xBFFA200A One of the non-terminal channels in the path is not a configuration channel.
IVISWTCH_ERROR_ATTEMPT_TO_CONNECT _SOURCES 0xBFFA200B A connection between two different sources is not allowed.
IVISWTCH_ERROR_EXPLICIT_CONNECTION _EXISTS 0xBFFA200C An explicit connection between the channels already exists.
IVISWTCH_ERROR_LEG_MISSING_FIRST _CHANNEL 0xBFFA200D A leg in the path does not begin with a channel name.
IVISWTCH_ERROR_LEG_MISSING_SECOND _CHANNEL 0xBFFA200E A leg in the path is missing the second channel.
IVISWTCH_ERROR_CHANNEL_DUPLICATED _IN_LEG 0xBFFA200F The first and the second channels in the leg are the same
IVISWTCH_ERROR_CHANNEL_DUPLICATED _IN_PATH 0xBFFA2010 A channel name is duplicated in the path string.
IVISWTCH_ERROR_PATH_NOT_FOUND 0xBFFA2011 No path was found between the two channels.
IVISWTCH_ERROR_DISCONTINUOUS_PATH 0xBFFA2012 The first channel of a leg in the path is not the same as the second channel in the previous leg.
IVISWTCH_ERROR_CANNOT_CONNECT_DIRECTLY 0xBFFA2013 The path contains a leg with two channels that cannot be directly connected.
IVISWTCH_ERROR_CHANNELS_ALREADY _CONNECTED 0xBFFA2014 A leg in the path contains two channels that are already directly connected.
IVISWTCH_CANNOT_CONNECT_TO_ITSELF 0xBFFA2015 A channel cannot be connected to itself.
IVISWTCH_ERROR_TRIGGER_NOT_SOFTWARE 0xBFFA1001 The switch trigger attribute is not set to software trigger.

IviSwtch Warning Codes

Warning Codes Value Description
IVISWTCH_WARN_PATH_REMAINS 0x3FFA2001 Some connections remain after disconnecting.
IVISWTCH_WARN_IMPLICIT_CONNECTION _EXISTS 0x3FFA2002 The implicit connection exists between the channels.

Related Topic

IVI Status Codes