Subroutine GUI

More
05 Apr 2011 15:05 #8577 by piasdom
Replied by piasdom on topic Re:Subroutine GUI
COOL

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

More
05 Apr 2011 15:19 #8579 by andypugh
Replied by andypugh on topic Re:Subroutine GUI
piasdom wrote:

<halpin>"halui.joint.0.home"</halpin>

You can't do that, that pin name is already taken. You need a new, unique, chosen-by-you name for the HAL pin that belongs to the GUI button.

<text>"Home X"</text>

Bear in mind that this tag only sets the text that appears on the button, not the name of the hal pin....

net home-x halui.joint.0.home pyvcp.home-x

... So this won't work.

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

More
05 Apr 2011 15:27 #8580 by BigJohnT
Replied by BigJohnT on topic Re:Subroutine GUI
Andy,

You can actually have a pyvcp hal pin name the same as other pins as it evaluates out to pyvcp.halui.joint.0.home so it becomes unique and a valid pin even if it doesn't make sense to do so.

John

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

More
05 Apr 2011 15:31 #8583 by andypugh
Replied by andypugh on topic Re:Subroutine GUI
BigJohnT wrote:

You can actually have a pyvcp hal pin name the same as other pins as it evaluates out to pyvcp.halui.joint.0.home so it becomes unique and a valid pin even if it doesn't make sense to do so.

Ah, yes. Good point.

While we are at it, you can add things randomly to the INI file, and you will be able to access them in hal with [STANZA]ATTRIBUTE, but the rest of EMC2 will pay no attention.

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

More
05 Apr 2011 15:39 #8585 by BigJohnT
Replied by BigJohnT on topic Re:Subroutine GUI
And that is not mentioned anywhere that I know of yet...

John

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

More
05 Apr 2011 15:43 #8586 by andypugh
Replied by andypugh on topic Re:Subroutine GUI
Perhaps I ought to make sure that it is true first, then :-)

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

More
05 Apr 2011 15:49 #8587 by BigJohnT
Replied by BigJohnT on topic Re:Subroutine GUI
I noticed in the hm2 configs but didn't think of it till now...

John

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

Time to create page: 0.210 seconds
Powered by Kunena Forum