pytec: revert changes to example.py and plot.py, save changes for other PR

This commit is contained in:
topquark12 2021-01-05 12:42:50 +08:00
parent 9f872c0113
commit 14a027c0f0
2 changed files with 118 additions and 122 deletions

View File

@ -1,5 +1,3 @@
if __name__ == "__main__":
from pytec.client import Client
tec = Client() #(host="localhost", port=6667)

View File

@ -4,8 +4,6 @@ import matplotlib.animation as animation
from threading import Thread, Lock
from pytec.client import Client
if __name__ == "__main__":
TIME_WINDOW = 300.0
tec = Client()
@ -32,7 +30,7 @@ if __name__ == "__main__":
series = {
'adc': Series(),
'sens': Series(lambda x: x * 0.0001),
'temperature': Series(),
'temperature': Series(lambda t: t - target_temperature),
'i_set': Series(),
'pid_output': Series(),
'vref': Series(),