Spindel Load Bar wird nicht angezeigt beim verknüpfen mit Hal-Pin

More
15 May 2024 09:05 #300664 by Ludwig
Hallo liebe Leute,
ich habe erfolgreich die spindle_load_bar in Gmoccapy integriert.
Leider verschwindet sie nachdem ich sie in spindle_load.hal verknüpft habe:

net analog3 [HMOT](CARD0).7i76.0.0.analogin3 => spindle_load.bar_spindle_load

Kann mir bitte jemand auf die Sprünge helfen das zu lösen?

Linuxcnc 2.9.2 installiert von der CD am 13.05.2024

Display = Gmoccapy

EMBED_TAB_NAME = spindle_load
EMBED_TAB_LOCATION = box_custom_4
EMBED_TAB_COMMAND = gladevcp -x {XID} -H spindle_load.hal spindle_load.glade

EMBED_TAB_NAME = timer
EMBED_TAB_LOCATION = ntb_setup
EMBED_TAB_COMMAND = gladevcp -x {XID} -H timer.hal timer.glade

Grüße aus Düsseldorf
Ludwig

 

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

More
15 May 2024 09:18 #300667 by zz912
Where is path? "./"

This works me:
EMBED_TAB_COMMAND = gladevcp -x {XID} -H ./gladevcp.hal ./spindle_load.glade

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

More
15 May 2024 09:42 - 15 May 2024 13:14 #300669 by Ludwig
EMBED_TAB_NAME = spindle_load
EMBED_TAB_LOCATION = box_custom_4
EMBED_TAB_COMMAND = gladevcp -x {XID} -H ./spindle_load.hal ./spindle_load.glade

EMBED_TAB_NAME = timer
EMBED_TAB_LOCATION = ntb_setup
EMBED_TAB_COMMAND = gladevcp -x {XID} -H ./timer.hal ./timer.glade
Attachments:
Last edit: 15 May 2024 13:14 by Ludwig.

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

More
15 May 2024 09:55 #300670 by Ludwig
sorry for the worse answare. I try to add some screenshots from the control (spindle_bar.png) . Its not working.
But after I change the path its the same.

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

More
15 May 2024 12:46 #300677 by Aciera
1. could you please edit that post and remove the image (just to spare us the nuisance of scrolling past all the nonsense)

2. Try and start LinuxCNC from a Terminal (check the output on startup for relevant error messages):
$ linuxcnc

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

More
15 May 2024 13:33 #300678 by Ludwig
here is terminal printout

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

More
15 May 2024 13:37 #300679 by Ludwig

File Attachment:

File Name: LinuxcncSt...inal.txt
File Size:10 KB
Attachments:

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

More
15 May 2024 13:50 #300680 by Aciera

./spindle_load.hal:4: Ini variable '[HMOT]CARD0' not found.

Looks like you might be missing the card information in your ini file:[HMOT]
CARD0=<your_card_here>

As an alternative you could also start linuxcnc with the relevant line in 'spindle_load.hal' commented out and then look in the 'halshow' tool for the correct pin name and just use that instead of the ini lookup format you have now.

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

More
15 May 2024 14:28 #300683 by Ludwig
Hello Aciera,
yes, that was the problem.

net analog3 <= hm2_5i24.0.7i76.0.0.analogin3 => spindle_load.bar_spindle_load

Now the spindle load bar is displayed.

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

More
15 May 2024 14:29 #300684 by Ludwig
Attachments:

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

Moderators: newbynobiHansU
Time to create page: 0.103 seconds
Powered by Kunena Forum