API

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
QInsControlCore.connect!Method
connect!(rm, instr)

connect to an instrument with given ResourceManager rm.

connect!(instr)

same but with auto-generated ResourceManager.

source
QInsControlCore.fast!Method
fast!(cpu::Processor)

change the cpu mode to fast mode. Default mode is slow mode. The fast mode is not necessary in most cases.

source
QInsControlCore.instrumentMethod
instrument(name, addr)

generate an instrument with (name, addr) which automatically determines the type of this instrument.

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

log the Controller in the Processor which can be done before and after the cpu started.

source
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
QInsControlCore.slow!Method
slow!(cpu::Processor)

change the cpu mode to slow mode. Default mode is slow mode, which decrease the cpu cost.

source