- Thank you received: 0
Subroutine GUI
- piasdom
- New Member
-
Less
More
15 years 6 months ago #8577
by piasdom
Replied by piasdom on topic Re:Subroutine GUI
COOL
Please Log in to join the conversation.
15 years 6 months ago #8579
by andypugh
Replied by andypugh on topic Re:Subroutine GUI
piasdom wrote:
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.<halpin>"halui.joint.0.home"</halpin>
Bear in mind that this tag only sets the text that appears on the button, not the name of the hal pin....<text>"Home X"</text>
... So this won't work.net home-x halui.joint.0.home pyvcp.home-x
Please Log in to join the conversation.
15 years 6 months ago #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
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 to join the conversation.
15 years 6 months ago #8583
by andypugh
Replied by andypugh on topic Re:Subroutine GUI
BigJohnT wrote:
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.
Ah, yes. Good point.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.
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 to join the conversation.
15 years 6 months ago #8585
by BigJohnT
Replied by BigJohnT on topic Re:Subroutine GUI
And that is not mentioned anywhere that I know of yet...
John
John
Please Log in to join the conversation.
15 years 6 months ago #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 to join the conversation.
Time to create page: 0.153 seconds
