standard
¶
This is the standard macro module
-
class
ct
(*args, **kwargs)[source]¶ Count for the specified time on the measurement group or experimental channel given as second argument (if not given the active measurement group is used)
-
class
repeat
(*args, **kwargs)[source]¶ This macro executes as many repetitions of a set of macros as specified by nr parameter. The macros to be repeated can be given as parameters or as body hooks. If both are given first will be executed the ones given as parameters and then the ones given as body hooks. If nr has negative value, repetitions will be executed until you stop repeat macro.
Note
The repeat macro has been included in Sardana on a provisional basis. Backwards incompatible changes (up to and including removal of the macro) may occur if deemed necessary by the core developers.
-
class
set_user_pos
(*args, **kwargs)[source]¶ Sets the USER position of the motor to the specified value (by changing OFFSET and keeping DIAL) and recalculates the USER limits (can be disabled with the
update_limit
parameter).
-
class
uct
(*args, **kwargs)[source]¶ Count on the active measurement group and update
-
class
umv
(*args, **kwargs)[source]¶ Move motor(s) to the specified position(s) and update
-
class
wa
(*args, **kwargs)[source]¶ Show all motor positions
-
class
wm
(*args, **kwargs)[source]¶ Show the position of the specified motors.
-
static
format_value
(fmt, str_fmt, value)[source]¶ Formats given value following the fmt and/or str_fmt rules.
-
static
-
class
logmacro
(*args, **kwargs)[source]¶ Turn on/off logging of the spock output.
Note
The logmacro class has been included in Sardana on a provisional basis. Backwards incompatible changes (up to and including its removal) may occur if deemed necessary by the core developers
-
class
newfile
(*args, **kwargs)[source]¶ Sets the ScanDir and ScanFile as well as ScanID in the environment.
If ScanFilePath is only a file name, the ScanDir must be set externally via
senv ScanDir
or using the %expconf. Otherwise, the path in ScanFilePath must be absolute and existing on the MacroServer host.The ScanID should be set to the value before the upcoming scan number. Default value is 0.
-
class
plotselect
(*args, **kwargs)[source]¶ select channels for plotting in the active measurement group
-
class
pic
(*args, **kwargs)[source]¶ This macro moves the motor of the last scan to the PEAK position for a given channel. If no channel is given, it selects the first channel from the ScanStats env variable.