DefaultVISAStringDecoder

public struct DefaultVISAStringDecoder : VISADecoder

The default VISADecoder for String.

This decoder simply returns the ASCII message as a String.

  • Declaration

    Swift

    public typealias DecodingType = String
  • Decodes the NI-VISA ASCII message into a String.

    Declaration

    Swift

    public func decode(_ string: String) -> String

    Parameters

    string

    The ASCII message returned from the instrument.

    Return Value

    The unaltered ASCII message returned from the instrument.