lewis.examples.example_motor
Members
TCP-stream based example motor interface |
|
- class lewis.examples.example_motor.ExampleMotorStreamInterface[source]
Bases:
StreamInterface
TCP-stream based example motor interface
This motor simulation can be controlled via telnet:
$ telnet host port
Where the host and port-parameter are part of the dynamically created documentation for a concrete device instance.
The motor starts moving immediately when a new target position is set. Once it’s moving, it has to be stopped to receive a new target, otherwise an error is generated.
- class lewis.examples.example_motor.SimulatedExampleMotor(override_states: dict[str, State] | None = None, override_transitions: dict[tuple[State, State], Callable[[], bool]] | None = None, override_initial_state: State | None = None, override_initial_data: dict[str, float] | None = None)[source]
Bases:
StateMachineDevice