standard

This is the standard macro module

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

Show all motor positions

prepare(filter, **opts)[source]

Macro API. Prepare phase. Overwrite as necessary. Default implementation does nothing

run(filter)[source]

Macro API. Runs the macro. Overwrite MANDATORY! Default implementation raises RuntimeError.

Raises:RuntimeError
class pwa(*args, **kwargs)[source]

Show all motor positions in a pretty table

run(filter)[source]

Macro API. Runs the macro. Overwrite MANDATORY! Default implementation raises RuntimeError.

Raises:RuntimeError
class set_lim(*args, **kwargs)[source]

Sets the software limits on the specified motor hello

run(motor, low, high)[source]

Macro API. Runs the macro. Overwrite MANDATORY! Default implementation raises RuntimeError.

Raises:RuntimeError
class set_lm(*args, **kwargs)[source]

Sets the dial limits on the specified motor

run(motor, low, high)[source]

Macro API. Runs the macro. Overwrite MANDATORY! Default implementation raises RuntimeError.

Raises:RuntimeError
class set_pos(*args, **kwargs)[source]

Sets the position of the motor to the specified value

run(motor, pos)[source]

Macro API. Runs the macro. Overwrite MANDATORY! Default implementation raises RuntimeError.

Raises:RuntimeError
class wm(*args, **kwargs)[source]

Show the position of the specified motors.

prepare(motor_list, **opts)[source]

Macro API. Prepare phase. Overwrite as necessary. Default implementation does nothing

run(motor_list)[source]

Macro API. Runs the macro. Overwrite MANDATORY! Default implementation raises RuntimeError.

Raises:RuntimeError
class pwm(*args, **kwargs)[source]

Show the position of the specified motors in a pretty table

run(motor_list)[source]

Macro API. Runs the macro. Overwrite MANDATORY! Default implementation raises RuntimeError.

Raises:RuntimeError
class mv(*args, **kwargs)[source]

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

run(motor_pos_list)[source]

Macro API. Runs the macro. Overwrite MANDATORY! Default implementation raises RuntimeError.

Raises:RuntimeError
class mstate(*args, **kwargs)[source]

Prints the state of a motor

run(motor)[source]

Macro API. Runs the macro. Overwrite MANDATORY! Default implementation raises RuntimeError.

Raises:RuntimeError
class umv(*args, **kwargs)[source]

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

prepare(motor_pos_list, **opts)[source]

Macro API. Prepare phase. Overwrite as necessary. Default implementation does nothing

run(motor_pos_list)[source]

Macro API. Runs the macro. Overwrite MANDATORY! Default implementation raises RuntimeError.

Raises:RuntimeError
class mvr(*args, **kwargs)[source]

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

run(motor_disp_list)[source]

Macro API. Runs the macro. Overwrite MANDATORY! Default implementation raises RuntimeError.

Raises:RuntimeError
class umvr(*args, **kwargs)[source]

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

run(motor_disp_list)[source]

Macro API. Runs the macro. Overwrite MANDATORY! Default implementation raises RuntimeError.

Raises:RuntimeError
class tw(*args, **kwargs)[source]

Tweak motor by variable delta

run(motor, delta)[source]

Macro API. Runs the macro. Overwrite MANDATORY! Default implementation raises RuntimeError.

Raises:RuntimeError
class ct(*args, **kwargs)[source]

Count for the specified time on the active measurement group

prepare(integ_time, **opts)[source]

Macro API. Prepare phase. Overwrite as necessary. Default implementation does nothing

run(integ_time)[source]

Macro API. Runs the macro. Overwrite MANDATORY! Default implementation raises RuntimeError.

Raises:RuntimeError
class uct(*args, **kwargs)[source]

Count on the active measurement group and update

prepare(integ_time, **opts)[source]

Macro API. Prepare phase. Overwrite as necessary. Default implementation does nothing

run(integ_time)[source]

Macro API. Runs the macro. Overwrite MANDATORY! Default implementation raises RuntimeError.

Raises:RuntimeError
class settimer(*args, **kwargs)[source]

Defines the timer channel for the active measurement group

run(timer)[source]

Macro API. Runs the macro. Overwrite MANDATORY! Default implementation raises RuntimeError.

Raises:RuntimeError
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

run(offon, mode)[source]

Macro API. Runs the macro. Overwrite MANDATORY! Default implementation raises RuntimeError.

Raises:RuntimeError
class repeat(*args, **kwargs)[source]

This macro executes as many repetitions of it’s body hook macros as specified by nr parameter. If nr parameter has negative value, repetitions will be executed until you stop repeat macro.

prepare(nr)[source]

Macro API. Prepare phase. Overwrite as necessary. Default implementation does nothing

run(nr)[source]

Macro API. Runs the macro. Overwrite MANDATORY! Default implementation raises RuntimeError.

Raises:RuntimeError