mxcubecore.Command.Sardana#

Sardana Control System

Functions

end_of_macro(macobj)

processSardanaEvents()

wait_end_of_command(cmdobj)

Classes

AttributeEvent(event)

SardanaChannel(name, attribute_name[, ...])

Creates a Sardana Channel

SardanaCommand(name, command[, taurusname, ...])

SardanaMacro(name, macro[, doorname, username])

Sardana macro

SardanaObject()

Sardana Object

class mxcubecore.Command.Sardana.SardanaChannel(name, attribute_name, username=None, uribase=None, polling=None, **kwargs)[source]#

Bases: ChannelObject, SardanaObject

Creates a Sardana Channel

get_value()[source]#

Get channel value.

Parameters:

force (bool, optional) – Force get value. Defaults to False.

Raises:

NotImplementedError – If method has not been implemented for this object.

is_connected()[source]#

Check if signal is connected.

Returns:

True if connected, else False.

Return type:

bool

update(event)[source]#

Update command object.

Parameters:

value (Any) – Updated value.

class mxcubecore.Command.Sardana.SardanaCommand(name, command, taurusname=None, username=None, **kwargs)[source]#

Bases: CommandObject

is_connected()[source]#

Check if signal is connected.

Returns:

True if connected, else False.

Return type:

bool

class mxcubecore.Command.Sardana.SardanaMacro(name, macro, doorname=None, username=None, **kwargs)[source]#

Bases: CommandObject, SardanaObject, ChannelObject

Sardana macro

is_connected()[source]#

Check if signal is connected.

Returns:

True if connected, else False.

Return type:

bool

update(event)[source]#

update the macro command status: commandCanExecute, commandReady, commandNotReady, commandReplyArrive, commandReplyAbort and commandFailed

class mxcubecore.Command.Sardana.SardanaObject[source]#

Bases: object

Sardana Object