standard

This is the standard macro module

class wa(*args, **kwargs)[source]

Show all motor positions

class pwa(*args, **kwargs)[source]

Show all motor positions in a pretty table

class set_lim(*args, **kwargs)[source]

Sets the software limits on the specified motor hello

class set_lm(*args, **kwargs)[source]

Sets the dial limits on the specified motor

class set_pos(*args, **kwargs)[source]

Sets the position of the motor to the specified value

class wm(*args, **kwargs)[source]

Show the position of the specified motors.

class pwm(*args, **kwargs)[source]

Show the position of the specified motors in a pretty table

class mv(*args, **kwargs)[source]

Move motor(s) to the specified position(s)

class mstate(*args, **kwargs)[source]

Prints the state of a motor

class umv(*args, **kwargs)[source]

Move motor(s) to the specified position(s) and update

class mvr(*args, **kwargs)[source]

Move motor(s) relative to the current position(s)

class umvr(*args, **kwargs)[source]

Move motor(s) relative to the current position(s) and update

class tw(*args, **kwargs)[source]

Tweak motor by variable delta

class ct(*args, **kwargs)[source]

Count for the specified time on the active measurement group

class uct(*args, **kwargs)[source]

Count on the active measurement group and update

class settimer(*args, **kwargs)[source]

Defines the timer channel for the active measurement group

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.