Quantcast
Viewing all articles
Browse latest Browse all 4859

Python • Re: PID controller help

so i played with this for a little bit now, it does work better than the conglomeration i had come up with for sure, but i am still having some grief

ive gotten the GUI buttons to change the max_duty and that part is all somewhat playing nice, but when i add in the thread for the RTD temperature i cannot get it to share the global variable with the GUI which worked without issue before. it just spits back "not defined". now that i see your reply about adding to the thread2, im assuming maybe thats where i buggered this up by adding it in a new thread?

also while changing the max_duty works, if i try to use the "max_duty" to display a number on the GUI it just stays at the "100" regardless of it being changed with the buttons. the only similar thing ive seen to what i want to do is a code that saved the parameter to a txt file and would read/write to that file for every change. if i had to take a wild guess, that is the route i need to go to get this to work?

Statistics: Posted by Ykdave — Fri Oct 18, 2024 12:57 am



Viewing all articles
Browse latest Browse all 4859

Trending Articles