View Source ExVisa (ex_visa v0.2.1)

This module provides some simple functions to communicate with instruments via VISA (Virtual Instrument Software Architecture).

You can talk to devices using the ExVisa functions, while assuring concurrent accesses to the same port don't conflict.

If you don't need such functionality, you can also directly talk to them through ExVisa.Direct functions.

Link to this section Summary

Functions

Queries device identifier.

Currently, just an alias to ExVisa.Direct.list_resources/1.

Queries the message to the given VISA address.

Writes the message to the given VISA address.

Link to this section Functions

Queries device identifier.

Link to this function

list_resources(message \\ "?*::INSTR")

View Source

Currently, just an alias to ExVisa.Direct.list_resources/1.

Link to this function

query(address, message, read_term \\ "\n", write_term \\ "\n")

View Source

Queries the message to the given VISA address.

Link to this function

write(address, message, read_term \\ "\n", write_term \\ "\n")

View Source

Writes the message to the given VISA address.