- class TMSiSDK.device.tmsi_thread.TMSiThread(looping_function, pause=0.01, name='TMSi Thread')#
Bases:
Thread
A class to handle all the sampling threads.
- __init__(looping_function, pause=0.01, name='TMSi Thread')#
_summary_
- Parameters:
looping_function (function) – the function which must be exectuted.
pause (float, optional) – pause time between each loop of the thread, defaults to 0.01
name (str, optional) – name of the thread, defaults to “Sampling Thread”
Methods
__init__
(looping_function[, pause, name])_summary_
Get the pause time of the thread.
run
()Run the thread.
set_pause
(pause)Set the pause time of the thread.
stop
()Stop the thread.
Attributes
- get_pause()#
Get the pause time of the thread.
- Returns:
the pause time between each loop of the thread.
- Return type:
float
- run()#
Run the thread.
- set_pause(pause)#
Set the pause time of the thread.
- Parameters:
pause (float) – the pause time between each loop of the thread.
- stop()#
Stop the thread.