QInsControl.QInsControlCore

QInsControl.QInsControlCore.ControllerType
Controller(instrnm, addr)

construct a Controller to send commands to the instrument determined by (instrnm, addr). A Controller has three ways to send commands to the Processor: wirte read query.

julia> ct(write, cpu, "*IDN?", Val(:write))
"done"

julia> ct(read, cpu, Val(:read))
"read"

julia> ct(query, cpu, "*IDN?", Val(:query))
"query"

the commands needed to execute is not necessary to be wirte, read or query.

julia> idn_get(instr) = query(instr, "*IDN?")
idn_get (generic function with 1 method)

julia> ct(idn_get, cpu, Val(:read))
"query"

the definition of function idn_get must happen before the Controller ct is logged in or one can log out and log in again.

source
Base.writeMethod
write(instr, msg)

write some message string to the instrument.

source
QInsControl.QInsControlCore.logout!Method
logout!(cpu::Processor, ct::Controller)

log the Controller out the Processor.

logout!(cpu::Processor, addr::String)

log all the Controllers that control the instrument with address addr out the Processor.

source