expconf
¶
Experiment configuration related macros
-
get_meas
(self, macro)[source]¶ Activate measurement group.
It gets the ActiveMntGrp environment variable.
-
get_meas_conf
(self, detail, meas_grp)[source]¶ Print measurement group configuration in form of a table.
Examples of usage:
>>> get_meas_conf # get <ActiveMntGrp> simple configuration >>> get_meas_conf all # get <ActiveMntGrp> complete configuration >>> get_meas_conf simple mntgrp01 # get mntgrp01 simple configuration >>> get_meas_conf all mntgrp01 # get mntgrp01 complete configuration
-
set_meas
(self, meas_grp, macro)[source]¶ Activate measurement group.
It sets the ActiveMntGrp environment variable.
-
set_meas_conf
(self, parameter, value, items, meas_grp)[source]¶ Set measurement group configuration parameter.
Available configuration parameters and values:
Enabled: True/1 or False/0
Output: True/1 or False/0
PlotType: No, Spectrum or Image
PlotAxes: idx, mov or a <channel name> e.g. ct01 (for image use “|” as separator of axes e.g. idx|ct01)
Timer: <channel name> e.g. ct01
Monitor: <channel name> e.g. ct01
Synchronizer: software or <trigger/gate name> e.g. tg01
Synchronization: 0/Trigger, 1/Gate or 2/Start
ValueRefEnabled - True/1 or False/0
ValueRefPattern - URI e.g. file:///tmp/img_{index}.tiff
Examples of usage:
>>> # enable all channels in <ActiveMntGrp> >>> set_meas_conf enabled True >>> # enable spectrum plotting for ct01 on <ActiveMntGrp> >>> set_meas_conf plottype spectrum ct01 >>> # set plot x-axis to <moveable> for all channels of <ActiveMntGrp> >>> set_meas_conf plotaxes mov >>> # enable spectrum plotting for all mntgrp01 >>> set_meas_conf plottype spectrum [] mntgrp01