DefaultVISAIntDecoder
public struct DefaultVISAIntDecoder : VISADecoder
The default VISADecoder for Int.
This decoder tries to convert the ASCII message into an integer.
-
Declaration
Swift
public typealias DecodingType = Int -
Decodes the NI-VISA ASCII message into an
Int.Throws
If the message could not be converted to an integer.Declaration
Swift
public func decode(_ string: String) throws -> IntParameters
stringThe ASCII message returned from the instrument.
Return Value
The message converted to an integer.
DefaultVISAIntDecoder Structure Reference