VISADecoder

public protocol VISADecoder

A type that can decode a NI-VISA ASCII message into a decoding type.

  • The type that the decoder decodes values to.

    Declaration

    Swift

    associatedtype DecodingType : VISADecodable
  • Decodes the given NI-VISA ASCII message.

    Throws

    If the value could not be decoded.

    Declaration

    Swift

    func decode(_ string: String) throws -> DecodingType

    Parameters

    string

    The NI-VISA ASCII message to decode.

    Return Value

    The decoded value.