mahos.inst.pg.DTG5000#
- class mahos.inst.pg.DTG5000(name, conf, prefix=None)#
Base Class for DTG5000 series.
- Parameters:
local_dir (str) – Data exchange directory in local computer.
remote_dir (str) – Data exchange directory in remote DTG.
channels (dict[str | bytes, int]) – mapping from channel names to indices.
start_delay_sec (float) – (default: 1.0) Delay between output relay on and sequencer start. This is to wait the output relay to stabilize.
start_query_delay_sec (float) – (default: 0.1) Delay for OPC? command after start command.
start_loop_delay_sec (float) – (default: 1.0) Delay for each loop of the start loop.
start_loop_num (int) – (default: 20) Max. number of start command repeats in the start loop.
strict (bool) – (default: True) If True, check generated data strictly. Since offset will not be allowed in strict mode, the pulse pattern data should be prepared considering block granularity.
- __init__(name, conf, prefix=None)#
Methods
__init__
(name, conf[, prefix])block_granularity
(freq)check_error
()Query error once and return True if there's no error.
configure
(params[, label])Configure the instrument settings.
configure_blocks
(blocks, freq[, ...])Generate tree using default sequence and write it.
configure_blockseq
(blockseq, freq[, ...])Generate tree using explicit sequence and write it.
get
(key[, args, label])Get an instrument setting or measurement data.
get_sequencer_status
()min_block_len
(freq)set
(key[, value, label])Set an instrument setting or commanding value.
start
([label])Set all outputs on and start sequencer.
start_loop
()repeat start command until it actually starts.
start_once
()stop
([label])Stop the instrument operation.
Attributes