pcdsdevices.twincat_motor.InvertedBoolEpicsSignal

class pcdsdevices.twincat_motor.InvertedBoolEpicsSignal(derived_from, *, write_access=None, name=None, parent=None, **kwargs)

Methods

describe()

Description based on the original signal description

forward(value)

Compute derived signal value -> original signal value

get(**kwargs)

Get the value from the original signal, with inverse applied to it

inverse(value: bool)

Convert motor limit enable to switch state: it’s the inverse.

read()

Put the status of the signal into a simple dictionary format for data acquisition

Returns:

dict

read_configuration()

Dictionary mapping names to value dicts with keys: value, timestamp

set(value, *, timeout=None, settle_time=None, **kwargs)

Set the value of the Signal and return a Status object.

Returns:

st (Status) – This status object will be finished upon return in the case of basic soft Signals

trigger()

Call that is used by bluesky prior to read()

Attributes

SUB_META = 'meta'
connected

Mirrors the connection state of the original signal

derived_from

Signal that this one is derived from

high_limit

The high, inclusive control limit for the Signal

hints

Field hints for plotting

kind
limits

Limits from the original signal (low, high), such that low <= value <= high

low_limit

The low, inclusive control limit for the Signal

metadata

A copy of the metadata dictionary associated with the signal

metadata_keys

Metadata keys that will be passed along on value subscriptions

read_access

Can the signal be read?

source_name
subscriptions: ClassVar[FrozenSet[str]] = frozenset({'meta', 'value'})
timestamp

Timestamp of the readback value

tolerance

The absolute tolerance associated with the value.

value

The signal’s value

write_access

Can the signal be written to?