Linuxcnc show linuxcnc-error window when close my gui app

  • bkt
  • bkt's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
28 Nov 2024 23:20 - 30 Nov 2024 15:19 #315496 by bkt
I use a sim 1 axis only and classic ladder ... with ridicolous realtime of 8ms. My app works perfect ... but never understand how can stop linuxcnc-error windows show when close app ... sim causes usermot-error ... but simply is annoing see these error windows ... there are a way to eliminate it? ... when stop the gui ... after I call "hal_exit(comp_id);" .... and after I clean CMD , STAT channel previosly open .... So ask if there is a way to not show that error windows whitout eliminate the call from .tk or .py file of linuxcnc axis.

regards
Last edit: 30 Nov 2024 15:19 by bkt.

Please Log in or Create an account to join the conversation.

  • bkt
  • bkt's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
29 Nov 2024 21:52 #315590 by bkt
i read noe @pcw reply ..... USRMOT: ERROR: command 30 timeout
emcMotionInit: emcTrajInit failed ...... is a current bugs of 2.10 master ... someone know if actually is solved? think II use a 4 month ago version of 2.10.0 ....

regards

Please Log in or Create an account to join the conversation.

  • bkt
  • bkt's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
30 Nov 2024 15:18 #315656 by bkt
not know .tlc file programming ... but seems if we filter that messages that seems a bug ... we can eliminate error Lcnc windows at the end.

We can create debug_file or report_file in any folder if we would .... personally for now i add these at end of file:
# Open the info file
%readfile("$info_file", "file_content")

# Check if the file contains the word USERMOT
if (contains(file_content, "USRMOT: ERROR: command 30 timeout"))
    # Found USERMOT, destroy immediately
    {destroy .}
else
    # Wait for 40 seconds before destroying
    wait 40s
    {destroy .}
endif

my modify file ... only as example and for sure all can do these in better way ... personally is first time in these things ... so undersatnd me ...

in attach my file located on : /lib/tcltk/linuxcnc/show_errors.tcl

 

File Attachment:

File Name: show_errors_tcl.txt
File Size:4 KB
Attachments:

Please Log in or Create an account to join the conversation.

Time to create page: 0.046 seconds
Powered by Kunena Forum