NCGGUI and QtDragon

More
3 years 8 months ago #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
3 years 8 months ago #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.16 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.48 KB

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

More
3 years 8 months ago #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 
 
 

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

More
3 years 8 months ago #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.

More
3 years 8 months ago #265500 by Dragonick
Replied by Dragonick on topic NCGGUI and QtDragon
You are great!
You were right, I forgot to add the on_abort.ngc file. I did a few tests and forgot about it.
Thank you very much. Now it is working!

I have one more question for you.
Have you heard of Checkboxes in NGCGUI?
My friend made a code that changes in ngcgui instead of 0 or 1 we have a checkbox.

kamar-cnc.pl/?page_id=1032

This works great in linuxcnc without Qtvpc. just like in the picture.
 

However, this does not work with QtDragon_hd
Anything else I need to add? or will it not work together?

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

More
3 years 8 months ago #265517 by persei8
Replied by persei8 on topic NCGGUI and QtDragon
Your friend probably modified the original ngcgui code. Qtdragon uses it's own version of that code to make it work with qtvcp. However, it may well be possible to make the changes for qtdragon too. I'll have to look into it, right after I finish fighting with getting linuxcnc to work in a virtaul box.
Jim

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

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