Spanni26 / pyHPSU

Python Script to read and send commands to a Rotex HPSU
26 stars 15 forks source link

auto mode, not all values are published with same timer #31

Closed pdcemulator closed 3 years ago

pdcemulator commented 4 years ago

Hello,

I am using auto mode and configured many values with the same query time (60s). I found that most of the time only the last value is published. Then I changed timers so no command is using the same time as all others. Now all values are published. So it seems that only the last timer command is running. My Python skills are limited, but the thread part in HPSU.py looks good to me. But I dont know how the threads lib is working.

t_vbh = 60
tvbh2 = 60
t_r1 = 60
t_return = 60
tliq2 = 60
t_hs = 60

=> sends only t_hs (most of the time)

t_vbh = 58
tvbh2 = 59
t_r1 = 60
t_return = 61
tliq2 = 62
t_hs = 63

=> sends all values

My system runs on a Pi2 with PyCAN.

pdcemulator commented 3 years ago

resolved by 701aeec5d8fc012acbc453ad696554745465e6ac