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