standard
¶
This is the standard macro module
-
class
wa
(*args, **kwargs)[source]¶ Show all motor positions
-
class
wm
(*args, **kwargs)[source]¶ Show the position of the specified motors.
-
class
umv
(*args, **kwargs)[source]¶ Move motor(s) to the specified position(s) and update
-
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
uct
(*args, **kwargs)[source]¶ Count on the active measurement group and update
-
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
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
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 <PathToScanFile> 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.