VISAError
public enum VISAError : Error
An error that can be thrown by the SwiftVISA framework.
- systemError: Unknown system error (miscellaneous error).
- invalidSession: The given session or object reference is invalid.
- resourceLocked: Specified type of lock cannot be obtained or specified operation cannot be performed, because the resource is locked.
- invalidExpressionForSearch: Invalid expression specified for search.
- resourceNotFound: Insufficient location information or the device or resource is not present in the system.
- invalidResourceName: Invalid resource reference specified. Parsing error.
- invalidAccessMode: Invalid access mode.
- timeout: Timeout expired before operation completed.
- failedToClose: Unable to deallocate the previously allocated data structures corresponding to this session or object reference.
- invalidDegree: Specified degree is invalid.
- invalidJobIdentifier: Specified job identifier is invalid.
- unsupportedAttribute: The specified attribute is not defined or supported by the referenced session, event, or find list.
- unsupportedAttributeState: The specified state of the attribute is not valid, or is not supported as defined by the session, event, or find list.
- readOnlyAttribute: The specified attribute is Read Only.
- invalidLockType: The specified type of lock is not supported by this resource.
- invalidAccessKey: The access key to the resource associated with this session is invalid.
- invalidEvent: Specified event type is not supported by the resource.
- invalidMechanism: Invalid mechanism specified.
- handlerNotInstalled: A handler is not currently installed for the specified event.
- invalidHandlerReference: The given handler reference is invalid.
- invalidContext: Specified event context is invalid.
- queueOverflow: The event queue for the specified type has overflowed (usually due to previous events not having been closed).
- eventNotEnabled: The session must be enabled for events of the specified type in order to receive them.
- operationAborted: The operation was aborted.
- rawWriteProtocolViolation: Violation of raw write protocol occurred during transfer.
- rawReadProtocolViolation: Violation of raw read protocol occurred during transfer.
- outputProtocolViolation: Device reported an output protocol error during transfer.
- inputProtocolViolation: Device reported an input protocol error during transfer.
- busError: Bus error occurred during transfer.
- operationAlreadyInProgress: Unable to queue the asynchronous operation because there is already an operation in progress.
- invalidSetup: Unable to start operation because setup is invalid (due to attributes being set to an inconsistent state).
- queueError: Unable to queue asynchronous operation.
- insufficientSystemResources: Insufficient system resources to perform necessary memory allocation.
- invalidBufferMask: Invalid buffer mask specified.
- ioError: Could not perform operation because of I/O error.
- invalidFormat: A format specifier in the format string is invalid.
- unsupportedFormat: A format specifier in the format string is not supported.
- triggerLineInUse: The specified trigger line is currently in use.
- unsupportedMode: The specified mode is not supported by this VISA implementation.
- serviceRequestNotReceived: Service request has not been received for the session.
- invalidAddressSpace: Invalid address space specified.
- invalidOffset: Invalid offset specified.
- invalidWidth: Invalid source or destination width specified.
- unsupportedOffset: Specified offset is not accessible from this hardware.
- nonequalSourceAndDestinationWidths: Cannot support source and destination widths that are different.
- sessionNotMapped: The specified session is not currently mapped.
- responseStillPending: A previous response is still pending, causing a multiple query error.
- noListeners: No Listeners condition is detected (both
NRFDandNDACare deasserted). - notControllerInCharge: The interface associated with this session is not currently the controller in charge.
- notSystemController: The interface associated with this session is not the system controller.
- unsupportedOperation: The given session or object reference does not support this operation.
- interuptStillPending: An interrupt is still pending from a previous call.
- parityError: A parity error occurred during transfer.
- framingError: A framing error occurred during transfer.
- overrunError: An overrun error occurred during transfer. A character was not read from the hardware before the next character arrived.
- triggerNotMapped: The path from trigSrc to trigDest is not currently mapped.
- unsupportedAlignOffset: The specified offset is not properly aligned for the access width of the operation.
- invalidUserBuffer: A specified user buffer is not valid or cannot be accessed for the required size.
- resourceBusy: The resource is valid, but VISA cannot currently access it.
- unsupportedWidth: Specified width is not supported by this hardware.
- invalidParameter: The value of some parameter—which parameter is not known—is invalid.
- invalidProtocol: The protocol specified is invalid.
- invalidWindowSize: Invalid size of window specified.
- windowMapped: The specified session currently contains a mapped window.
- unimplementedOperation: The given operation is not implemented.
- invalidLength: Invalid length specified.
- invalidMode: The specified mode is invalid.
- sessionNotLocked: The current session did not have any lock on the resource.
- memoryNotShared: The device does not export any memory.
- libraryNotFound: A code library required by VISA could not be located or loaded.
- unsupportedInterrupt: The interface cannot generate an interrupt on the requested level or with the requested statusID value.
- invalidLineParameter: The value specified by the line parameter is invalid.
- fileAccessError: An error occurred while trying to open the specified file. Possible reasons include an invalid path or lack of access rights.
- fileIOError: An error occurred while performing I/O on the specified file.
- unsupportedLine: One of the specified lines (trigSrc or trigDest) is not supported by this VISA implementation, or the combination of lines is not a valid mapping.
- unsupportedMechanism: The specified mechanism is not supported by the given event type.
- interfaceNumberNotConfigured: The interface type is valid but the specified interface number is not configured.
- connectionLost: The connection for the given session has been lost.
- machineNotAvailable: The remote machine does not exist or is not accepting any connections.
- machineAccessDenied: Access to the remote machine is denied.
- unknownCVISAError: An unknown CVISA error status was returned from a call to CVISA. The status of this code is stored in
status. - couldNotDecode: Could not decode the message into the specified type.
- invalidRequestKey: The provided request key was invalid.
- invalidInstrumentIdentifier: The provided instrument identifier did not adhere to the NI-VISA standard.
- instrumentManagerCouldNotBeCreated: The
InstrumentManager.defaultwas not able to be created due to an unknown internal NI-VISA error. - invalidInstrument: The instrument class is not valid.
-
Undocumented
Declaration
Swift
case systemError -
Undocumented
Declaration
Swift
case invalidSession -
Undocumented
Declaration
Swift
case resourceLocked -
Undocumented
Declaration
Swift
case invalidExpressionForSearch -
Undocumented
Declaration
Swift
case resourceNotFound -
Undocumented
Declaration
Swift
case invalidResourceName -
Undocumented
Declaration
Swift
case invalidAccessMode -
Undocumented
Declaration
Swift
case timeout -
Undocumented
Declaration
Swift
case failedToClose -
Undocumented
Declaration
Swift
case invalidDegree -
Undocumented
Declaration
Swift
case invalidJobIdentifier -
Undocumented
Declaration
Swift
case unsupportedAttribute -
Undocumented
Declaration
Swift
case unsupportedAttributeState -
Undocumented
Declaration
Swift
case readOnlyAttribute -
Undocumented
Declaration
Swift
case invalidLockType -
Undocumented
Declaration
Swift
case invalidAccessKey -
Undocumented
Declaration
Swift
case invalidEvent -
Undocumented
Declaration
Swift
case invalidMechanism -
Undocumented
Declaration
Swift
case handlerNotInstalled -
Undocumented
Declaration
Swift
case invalidHandlerReference -
Undocumented
Declaration
Swift
case invalidContext -
Undocumented
Declaration
Swift
case queueOverflow -
Undocumented
Declaration
Swift
case eventNotEnabled -
Undocumented
Declaration
Swift
case operationAborted -
Undocumented
Declaration
Swift
case rawWriteProtocolViolation -
Undocumented
Declaration
Swift
case rawReadProtocolViolation -
Undocumented
Declaration
Swift
case outputProtocolViolation -
Undocumented
Declaration
Swift
case inputProtocolViolation -
Undocumented
Declaration
Swift
case busError -
Undocumented
Declaration
Swift
case operationAlreadyInProgress -
Undocumented
Declaration
Swift
case invalidSetup -
Undocumented
Declaration
Swift
case queueError -
Undocumented
Declaration
Swift
case insufficientSystemResources -
Undocumented
Declaration
Swift
case invalidBufferMask -
Undocumented
Declaration
Swift
case ioError -
Undocumented
Declaration
Swift
case invalidFormat -
Undocumented
Declaration
Swift
case unsupportedFormat -
Undocumented
Declaration
Swift
case triggerLineInUse -
Undocumented
Declaration
Swift
case unsupportedMode -
Undocumented
Declaration
Swift
case serviceRequestNotReceived -
Undocumented
Declaration
Swift
case invalidAddressSpace -
Undocumented
Declaration
Swift
case invalidOffset -
Undocumented
Declaration
Swift
case invalidWidth -
Undocumented
Declaration
Swift
case unsupportedOffset -
Undocumented
Declaration
Swift
case nonequalSourceAndDestinationWidths -
Undocumented
Declaration
Swift
case sessionNotMapped -
Undocumented
Declaration
Swift
case responseStillPending -
Undocumented
Declaration
Swift
case noListeners -
Undocumented
Declaration
Swift
case notControllerInCharge -
Undocumented
Declaration
Swift
case notSystemController -
Undocumented
Declaration
Swift
case unsupportedOperation -
Undocumented
Declaration
Swift
case interuptStillPending -
Undocumented
Declaration
Swift
case parityError -
Undocumented
Declaration
Swift
case framingError -
Undocumented
Declaration
Swift
case overrunError -
Undocumented
Declaration
Swift
case triggerNotMapped -
Undocumented
Declaration
Swift
case unsupportedAlignOffset -
Undocumented
Declaration
Swift
case invalidUserBuffer -
Undocumented
Declaration
Swift
case resourceBusy -
Undocumented
Declaration
Swift
case unsupportedWidth -
Undocumented
Declaration
Swift
case invalidParameter -
Undocumented
Declaration
Swift
case invalidProtocol -
Undocumented
Declaration
Swift
case invalidWindowSize -
Undocumented
Declaration
Swift
case windowMapped -
Undocumented
Declaration
Swift
case unimplementedOperation -
Undocumented
Declaration
Swift
case invalidLength -
Undocumented
Declaration
Swift
case invalidMode -
Undocumented
Declaration
Swift
case sessionNotLocked -
Undocumented
Declaration
Swift
case memoryNotShared -
Undocumented
Declaration
Swift
case libraryNotFound -
Undocumented
Declaration
Swift
case unsupportedInterrupt -
Undocumented
Declaration
Swift
case invalidLineParameter -
Undocumented
Declaration
Swift
case fileAccessError -
Undocumented
Declaration
Swift
case fileIOError -
Undocumented
Declaration
Swift
case unsupportedLine -
Undocumented
Declaration
Swift
case unsupportedMechanism -
Undocumented
Declaration
Swift
case interfaceNumberNotConfigured -
Undocumented
Declaration
Swift
case connectionLost -
Undocumented
Declaration
Swift
case machineNotAvailable -
Undocumented
Declaration
Swift
case machineAccessDenied -
Undocumented
Declaration
Swift
case unknownCVISAError(status: Int32)
-
Undocumented
Declaration
Swift
case couldNotDecode -
Undocumented
Declaration
Swift
case invalidRequestKey -
Undocumented
Declaration
Swift
case invalidInstrumentIdentifier -
Undocumented
Declaration
Swift
case instrumentManagerCouldNotBeCreated -
Undocumented
Declaration
Swift
case invalidInstrument
VISAError Enumeration Reference