Qtvcp GUI and hal pins

More
27 Apr 2026 01:35 #345963 by cmorley
Replied by cmorley on topic Qtvcp GUI and hal pins
I pushed some changes to master to fix this and much other stuff.

The fix for running macros with a button was two characters in the handler file.
If you just want to edit your's directly let me know and I'll give instructions.

I also added to the online docs to help.

Thanks for the report and please let me know if this is fixed for you.

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

More
27 Apr 2026 21:10 - 27 Apr 2026 21:18 #345993 by COFHAL
Replied by COFHAL on topic Qtvcp GUI and hal pins
Thank you so much for your support. You mentioned updating that on the main branch; I imagine you mean linuxcnc. How can I access those changes?
And if you could help me so I could make some modifications myself, I would appreciate it.
Last edit: 27 Apr 2026 21:18 by COFHAL.

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

More
28 Apr 2026 15:54 #346013 by cmorley
Replied by cmorley on topic Qtvcp GUI and hal pins
How did you get linuxcnc originally? What version are you using?
What mods would you like to do?
The following user(s) said Thank You: COFHAL

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

More
29 Apr 2026 00:10 #346025 by COFHAL
Replied by COFHAL on topic Qtvcp GUI and hal pins
I'm using the latest available version of LNC 2.9. I regularly update my system, and the LNC version updates automatically. I initially installed it from the official ISO and also the DE.

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

More
30 Apr 2026 01:00 #346051 by cmorley
Replied by cmorley on topic Qtvcp GUI and hal pins
hmm linuxcnc 2,9 doesn't have the hal_bridge component nor a way to use it.

That may be why it wasn't working too :)

Could probably get it to work in 2.9, but it would take some experimenting.

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

More
30 Apr 2026 14:17 #346057 by COFHAL
Replied by COFHAL on topic Qtvcp GUI and hal pins
with which version of LNC is it possible to use the hal_bridge component?

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

More
30 Apr 2026 19:01 #346060 by cmorley
Replied by cmorley on topic Qtvcp GUI and hal pins
The easiest is master branch aka 2.10.
The following user(s) said Thank You: COFHAL

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

More
02 May 2026 01:12 #346088 by COFHAL
Replied by COFHAL on topic Qtvcp GUI and hal pins
Indeed, with Linuxcnc version 2.10, the HAL Bridge works and the Bridge pins now appear. Interestingly, in the QTDRAGON configuration examples, the macros and MDI-Command-macro are defined in the ini file, but the instruction HALBRIDGE=hal_bridge is not defined in [HAL]. It would be good to update the configuration to include it.

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

More
02 May 2026 17:43 #346106 by COFHAL
Replied by COFHAL on topic Qtvcp GUI and hal pins
I can now call macros with external buttons, but unlike the buttons created and displayed on the main screen, which automatically switch QTDRAGON to MDI when clicked, with external buttons you have to manually switch to MDI for them to run. Another problem I'm having is that it can't execute macros defined as `O <XXXXXXXXX> call`. The status screen always shows "File not open," and the terminal debugs this error:

[QTvcp.QTVCP.WIDGETS.ACTION_BUTTON][DEBUG] INI MDI COMMAND #: 7 (action_button.py:717)
[QTvcp.QTVCP.QT_ACTION][DEBUG] COMMAND= O <touch_plate_z> call (qt_action.py:234)
[QTvcp.QTVCP.QT_ACTION][DEBUG] CALL_INI_MDI command:O <touch_plate_z> call (qt_action.py:249)
emc/task/emctask.cc 70: interp_error: File not open
File not open
The path where the macros are executed is defined in SUBROUTINE_PATHS= There are .ngc files to run those macros.

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

More
03 May 2026 17:00 #346139 by cmorley
Replied by cmorley on topic Qtvcp GUI and hal pins
Ok I pushed work to master to allow selecting auto switch to MDI for macro buttons and HAL pin macros on Qtdragon's setting page.

I didn't get a change to push it to the other Qtdragon variations.
I have not looked into the O word problem yet.
The following user(s) said Thank You: tommylight, COFHAL

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

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