Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^4: RS232 and Tk with threads

by MarSkv267 (Novice)
on Jan 07, 2022 at 13:54 UTC ( [id://11140243]=note: print w/replies, xml ) Need Help??


in reply to Re^3: RS232 and Tk with threads
in thread RS232 and Tk with threads

Ex anonymus Marjacktablet

With my first posts I've tried to sign in but I never received any mail - it seems that the mail server blocked mails. Then I signed in with gmail and it worked.

I implemented your code within my script and IT WORKS!!!

In module where GUI is defined there's the following widget where read characters from COM port are sent:

$receive_T = $receive_Tk->ROText(-relief=>'groove',-width=>72,-height=>20,-font=>'Courier 8 bold')->pack();

In the same module there's the widget which repeats the module for reading COM port:

$receive_T->repeat(100,\&Receive3);

Thank you very much for your help!

I also have to finish the part for sending characters to the COM port, but it seems easier than reading the COM port and I will try to do it myself ... otherwise now I know where I can get advice.

The next step is communication with SAS. One of my coworkers wrote a script in Python few years ago, maybe I will be able to figure out from Python sources how to poll SAS commands. The coworker has no clue about GUI and I wrote many programs (executables) with GUI this one will be my first project that deals with COM port.

Replies are listed 'Best First'.
Re^5: RS232 and Tk with threads
by Marshall (Canon) on Jan 07, 2022 at 14:55 UTC
    I am very happy to hear about your success!
    Hooray!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (2)
As of 2024-04-16 23:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found