Enumerations
The following enumerations are available globally.
-
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.
Declaration
Swift
public enum VISAError : Error
-
The lock state of an instrument.
- locked: The instrument is locked with the given lock type.
- unlocked: The instrument is unlocked.
Declaration
Swift
public enum LockState
Enumerations Reference