Why pin gmoccapy.jog.turtle-jog does not exist?

More
25 Dec 2022 08:50 - 25 Dec 2022 08:56 #260274 by Ondrej
Hello,

Iam following this video 
, When I write connect via net: button with gmoccappy.jog.tutle-jog in the configurations hal config it works. 
But when I type the code into Hal:
net turtle-btn input.btn-b toggle.0.in
net turtle-select toggle.0.out gmoccapy.jog.turtle-jog

and run the configuration I get an error : Pin gmoccappy.jog.turtle-jog does not exist.

Do you know whats happening? Thx
Last edit: 25 Dec 2022 08:56 by Ondrej.

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

More
25 Dec 2022 09:23 #260275 by HansU

When I write connect via net: button with gmoccappy.jog.tutle-jog in the configurations hal config it works.

I guess you mean writing that command in halcmd oder halshow? Is that correct?

But when I type the code into Hal:

Here I guess you are meaning the HAL file defined as HALFILE in the INI file?
If my assumptions ar correct, you have to connect the gmoccapy pin in a HAL file defined as POSTGUI_HALFILE. Because the gmoccapy pins are created when GUI is loaded and are not available before.
The following user(s) said Thank You: tommylight, Ondrej

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

More
25 Dec 2022 15:40 #260280 by Ondrej
Yes thats correct. I copied the whole  HALUI-signals and USB device jog button signals code into custom_postgui.hal. Now I dont get this error, but another one : 
HAL : ERROR : thread 'servo-thread' not found
custom_postgui.hal:7: addf failed.

I havet found anything on the internet so far but maybe you will be faster. thx
 

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

More
25 Dec 2022 18:33 - 25 Dec 2022 18:35 #260284 by Ondrej
Ok I fixed this error by moving the line: source postgui_call_list.hal from the HALFILE behind the loadrt [EMCMOT]EMCMOT servo_period_nsec=[EMCMOT]SERVO_PERIOD num_joints=[KINS]JOINTS. 

But the old problem is again here, where I run the configuration, I get an error : pin gmoccappy.jog.turtle-jog does not exist.
 
Last edit: 25 Dec 2022 18:35 by Ondrej.

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

More
25 Dec 2022 18:41 #260285 by tommylight
Move it to the other file, not inside the file.
Hansu explained that, but maybe translation is messing up.

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

More
25 Dec 2022 19:29 - 25 Dec 2022 19:36 #260286 by Ondrej
I moved it to other file called custom_postgui.hal (not sure if its correct name but I hope I know what you mean tommy - move that code into another file).
As I said now Iam getting still same error. 
 
Last edit: 25 Dec 2022 19:36 by Ondrej.
The following user(s) said Thank You: tommylight

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

More
25 Dec 2022 20:05 #260287 by tommylight
Yes, that is what he means, and i agree as GmoccaPY creates pins after GUI started.
Sorry i can not help more since i do not use GmoccaPY, i use Axis GUI mostly.
The following user(s) said Thank You: Ondrej

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

More
25 Dec 2022 20:25 #260290 by Ondrej
Never mind. Yes the pin is called gmoccapy.jog.turtle-jog (I checked all the names multiple times..)

Its exciting for me really, because now I think I have done same way all the steps from the video till this part and it still doesnt work

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

More
26 Dec 2022 01:01 #260295 by cmorley
Please post your config files.

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

More
26 Dec 2022 10:46 #260305 by HansU
Yes, please post your config files, otherwise it#s only guessing.
It could also be a problem that the dash charcter is the wrong one in the pdf. You could type the dash instead of copy it.

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

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