View Source ExVisa.Parser (ex_visa v0.1.1)

Utility functions.

Link to this section Summary

Functions

Extracts port name from the given address string: "{port name}::***".

Link to this section Functions

Link to this function

port_from_address(address)

View Source
@spec port_from_address(String.t()) :: String.t()

Extracts port name from the given address string: "{port name}::***".

example

Example

iex> "XXXX::YYYY::ZZZZ" |> ExVisa.Parser.port_from_address()
"XXXX"