NCGGUI and QtDragon

More
23 Feb 2023 18:12 #265132 by Dragonick
Replied by Dragonick on topic NCGGUI and QtDragon
When I changed:

[DISPLAY]
NGCGUI_SUBFILE_PATH = /home/cnc/linuxcnc/nc_files/ngcgui_lib/

[RS274NGC]
SUBROUTINE_PATH = /home/cnc/linuxcnc/nc_files/ngcgui_lib/:~/linuxcnc/nc_files/examples/ngcgui_lib/utilitysubs; \
~/linuxcnc/nc_files/examples/probe/basic_probe/macros:~/linuxcnc/nc_files/examples/remap-subroutines:\
~/linuxcnc/nc_files/examples/ngcgui_lib/remap_lib


The same error still pops up

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

More
23 Feb 2023 18:17 #265133 by cmorley
Replied by cmorley on topic NCGGUI and QtDragon
I'll look at the code when I'm off work.

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

More
23 Feb 2023 18:41 #265135 by Dragonick
Replied by Dragonick on topic NCGGUI and QtDragon
Thank you
I am attaching the ini file
 

File Attachment:

File Name: my-mill.ini
File Size:5 KB
Attachments:

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

More
23 Feb 2023 20:31 #265146 by Roguish
Replied by Roguish on topic NCGGUI and QtDragon
yeah, it's a pain in the butt, but you have to be very careful with all the different paths.......
you'll get.

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

More
23 Feb 2023 23:56 #265175 by andypugh
Replied by andypugh on topic NCGGUI and QtDragon
I see a semicolon in the SUBROUTINE_PATH, they should all be colons.

I suspect that anything after that is likely to be ignored.

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

More
24 Feb 2023 00:34 #265179 by cmorley
Replied by cmorley on topic NCGGUI and QtDragon
Are you absolutely sure this is the right path?
/home/cnc/linuxcnc/nc_files/ngcgui_lib/
Can you show me what is in that folder?

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

More
24 Feb 2023 00:44 #265180 by cmorley
Replied by cmorley on topic NCGGUI and QtDragon
wait... you have two [RS274NGC] sections. you can only have one.

Also use this:

SUBROUTINE_PATH = ~/linuxcnc/nc_files/ngcgui_lib/:~/linuxcnc/nc_files/ngcgui_lib/utilitysubs:~/linuxcnc/nc_files/probe/basic_probe/macros

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

More
25 Feb 2023 10:56 #265310 by Dragonick
Replied by Dragonick on topic NCGGUI and QtDragon
In the file: /home/cnc/linuxcnc/nc_files/ngcgui_lib/
I have it:  

File Attachment:

File Name: ngcgui_lib.zip
File Size:115 KB

wait... you have two [RS274NGC] sections. you can only have one.

you're right, i've corrected it

SUBROUTINE_PATH = ~/linuxcnc/nc_files/ngcgui_lib/:~/linuxcnc/nc_files/ngcgui_lib/utilitysubs:~/linuxcnc/nc_files/probe/basic_probe/macros

i changed it but nothing changed. the bug still pops up.
 

File Attachment:

File Name: my-mill_20...2-25.ini
File Size:4 KB
Attachments:

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

More
25 Feb 2023 12:26 #265319 by Dragonick
Replied by Dragonick on topic NCGGUI and QtDragon
I noticed that I also have two [HAL]but when I corrected it and got:

[HAL]
HALFILE = my-mill.hal
HALFILE = custom.hal
POSTGUI_HALFILE = qtdragon_hd_postgui.hal
POSTGUI_HALFILE = qtdragon_hd_debugging.hal
POSTGUI_HALCMD = loadusr qtvcp test_probe
POSTGUI_HALCMD = loadusr qtvcp test_led
POSTGUI_HALCMD = loadusr halmeter

I receive a error:

Debug file information:
Note: Using POSIX realtime[QTvcp.QTVCP.QT_ISTAT][[33mWARNING[0m]  Invalid message configuration (missing icon) in INI File [DISPLAY] sectioN (qt_istat.py:400)Could not open command file 'qtdragon_hd_postgui.hal'79267958Stopping realtime threadsUnloading hal componentsNote: Using POSIX realtime 

When I leave only:

[HAL]
HALFILE = my-mill.hal
HALFILE = custom.hallinux

starts but I get the following message: 

NGCGUI also started to load but still not working.I see the lines but the program itself does not start, and when I press stop, this error pops up 
 
 
Attachments:

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

More
25 Feb 2023 18:30 #265338 by cmorley
Replied by cmorley on topic NCGGUI and QtDragon
You are missing the on_abort.ngc file.
linuxcnc.org/docs/2.9/html/gui/qtdragon.html#_abort_detection

The [HAL] section must reflect the actual files you want loaded. The documentation shows sample code, it's not meant to be copied verbatim.

The 'file not open' error I believe is caused by the option to reload the last file on startup.
Since (I assume) there was no loaded file in memory when qtdragon shuts down, it would cause this error.
You can turn off this setting in the settings page or eventually it should fix it's self.

Chris

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

Moderators: cmorley
Time to create page: 0.714 seconds
Powered by Kunena Forum