Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^3: Tk and threads and Control::CLI- change Port-(Object) in Tk an let workers know

by Marshall (Canon)
on Mar 13, 2023 at 17:00 UTC ( [id://11150958]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Tk and threads and Control::CLI- change Port-(Object) in Tk an let workers know
in thread Tk and threads and Control::CLI- change Port-(Object) in Tk an let workers know

You should be able to run the serial ports without needing threads. The main mechanism from Tk is that you can have a subroutine called every x ms. That sub services the ports using non-blocking calls. As long as you do what you need within the sub quickly (less than several hundred ms), all will be fine. If you want some help on that please show your serial port code.

It would be helpful if you explained a bit more about the protocol that you are using over the serial port. And a bit more about how the GUI fits into what the application does.

I'm not sure what you are doing with this other script that you call with open3. Again some code would be helpful.

  • Comment on Re^3: Tk and threads and Control::CLI- change Port-(Object) in Tk an let workers know

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11150958]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (3)
As of 2024-04-25 19:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found