Spinner
This module holds the spinner class.
CLASS | DESCRIPTION |
---|---|
Spinner |
Spinner class |
Multi_Spinner |
Ensemble of spinner tools |
Documentation last updated: 2025-02-22
Spinner
Bases: TimedDeviceMixin
, Maker
Spinner class
ATTRIBUTE | DESCRIPTION |
---|---|
target_rpm |
target rpm of the spinner
TYPE:
|
timer_event |
event for timer
TYPE:
|
threads |
threads for the spinner
TYPE:
|
METHOD | DESCRIPTION |
---|---|
soak |
soak the spinner |
spin |
spin the spinner |
stop |
stop the spinner |
setSpinSpeed |
set the spin speed |
setValue |
set the spin speed |
execute |
execute the soak and spin steps |
shutdown |
shutdown procedure for the spinner |
Initialize the spinner
PARAMETER | DESCRIPTION |
---|---|
port
|
port to connect to
TYPE:
|
baudrate
|
baudrate of the connection. Defaults to 9600.
TYPE:
|
verbose
|
verbosity of the class. Defaults to False.
TYPE:
|
execute
execute(
soak_time: int | float = 0,
spin_speed: int = 2000,
spin_time: int | float = 1,
blocking: bool = True,
*args,
**kwargs,
)
Execute the soak and spin steps
PARAMETER | DESCRIPTION |
---|---|
soak_time
|
soak time. Defaults to 0.
TYPE:
|
spin_speed
|
spin speed. Defaults to 2000.
TYPE:
|
spin_time
|
spin time. Defaults to 1.
TYPE:
|
blocking
|
whether to block the thread. Defaults to True.
TYPE:
|
setSpinSpeed
Set the spin speed in rpm
PARAMETER | DESCRIPTION |
---|---|
rpm
|
spin speed in rpm
TYPE:
|
event
|
event to set. Defaults to None.
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
bool
|
whether the command was successful
TYPE:
|
setValue
Set the spin speed in rpm
PARAMETER | DESCRIPTION |
---|---|
value
|
spin speed in rpm
TYPE:
|
event
|
event to set. Defaults to None.
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
bool
|
whether the command was successful
TYPE:
|
soak
Soak the spinner for a given duration
PARAMETER | DESCRIPTION |
---|---|
duration
|
soak time in seconds
TYPE:
|
blocking
|
whether to block the thread. Defaults to True.
TYPE:
|
spin
Spin the spinner at a given speed
PARAMETER | DESCRIPTION |
---|---|
rpm
|
spin speed in rpm
TYPE:
|
duration
|
spin time in seconds
TYPE:
|
blocking
|
whether to block the thread. Defaults to True.
TYPE:
|