QInsControl.QInsControlCore
QInsControl.QInsControlCore.Controller
QInsControl.QInsControlCore.Processor
Base.read
Base.write
QInsControl.QInsControlCore._query_
QInsControl.QInsControlCore.connect!
QInsControl.QInsControlCore.disconnect!
QInsControl.QInsControlCore.fast!
QInsControl.QInsControlCore.find_resources
QInsControl.QInsControlCore.instrument
QInsControl.QInsControlCore.isconnected
QInsControl.QInsControlCore.login!
QInsControl.QInsControlCore.logout!
QInsControl.QInsControlCore.reconnect!
QInsControl.QInsControlCore.slow!
QInsControl.QInsControlCore.start!
QInsControl.QInsControlCore.stop!
QInsControl.QInsControlCore.Controller
— TypeController(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.
QInsControl.QInsControlCore.Processor
— TypeProcessor()
construct a Processor to deal with the commands sended into by Controllers.
Base.read
— Methodread(instr)
read the instrument.
Base.write
— Methodwrite(instr, msg)
write some message string to the instrument.
QInsControl.QInsControlCore._query_
— Methodquery(instr, msg; delay=0)
query the instrument with some message string.
QInsControl.QInsControlCore.connect!
— Methodconnect!(rm, instr)
connect to an instrument with given ResourceManager rm.
connect!(instr)
same but with auto-generated ResourceManager.
QInsControl.QInsControlCore.disconnect!
— Methoddisconnect!(instr)
disconnect the instrument.
QInsControl.QInsControlCore.fast!
— Methodfast!(cpu::Processor)
change the cpu mode to fast mode. Default mode is slow mode. The fast mode is not necessary in most cases.
QInsControl.QInsControlCore.find_resources
— Methodfind_resources(cpu::Processor)
auto-detect available instruments.
QInsControl.QInsControlCore.instrument
— Methodinstrument(name, addr)
generate an instrument with (name, addr) which automatically determines the type of this instrument.
QInsControl.QInsControlCore.isconnected
— Methodisconnected(instr)
determine if the instrument is connected.
QInsControl.QInsControlCore.login!
— Methodlogin!(cpu::Processor, ct::Controller)
log the Controller in the Processor which can be done before and after the cpu started.
QInsControl.QInsControlCore.logout!
— Methodlogout!(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.
QInsControl.QInsControlCore.reconnect!
— Methodreconnect!(cpu::Processor)
reconnect the instruments that log in the Processor.
QInsControl.QInsControlCore.slow!
— Methodslow!(cpu::Processor)
change the cpu mode to slow mode. Default mode is slow mode, which decrease the cpu cost.
QInsControl.QInsControlCore.start!
— Methodstart!(cpu::Processor)
start the Processor.
QInsControl.QInsControlCore.stop!
— Methodstop!(cpu::Processor)
stop the Processor.