Subroutine GUI

More
05 Apr 2011 12:49 #8559 by piasdom
Replied by piasdom on topic Re:Subroutine GUI
i can't get the terminal to get the whole output. i have scroll line at 2000.
can't see where to change the buffer.
attached.

File Attachment:

File Name: HalReadout.txt
File Size:103 KB
Attachments:

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

More
05 Apr 2011 13:10 #8560 by andypugh
Replied by andypugh on topic Re:Subroutine GUI
I assume that the rapid-to-home button is working? it seems to be correctly configured.

JT has already spotted the home-all problem. It seems that you don't get that pin without a home sequence.

Anyway, keep that listing, (well, the bottom third, you seem to have three copies there) as a guide to what pins you have available to put together in interesting ways.

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

More
05 Apr 2011 13:15 - 05 Apr 2011 13:21 #8561 by piasdom
Replied by piasdom on topic Re:Subroutine GUI
Thanks BigJohnT and andypugh,

working on that now and yes the rapid-to-home works


and i now see the pyxcp and halui reference
Last edit: 05 Apr 2011 13:21 by piasdom. Reason: reference

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

More
05 Apr 2011 13:35 #8563 by piasdom
Replied by piasdom on topic Re:Subroutine GUI
well,

xml
<pyvcp>
<button>
<halpin>"halui.joint.0.home"</halpin>
<text>"Home X"</text>
<font>('Helvetica',10)</font>
</button>
</pyvcp>

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

and ini
[HALUI]
MDI_COMMAND = G0 X0 Y0 Z0
HOME_X = 0

and i get
pin pyvcp.home-x does not exist

but i think it's my ini. didn't know what to equal HOME_X to.
don't think i should use g0 x0. i'm thinking it will move the table, but i tried it and got error.
from what ya'll showed me, i got it ALL right, but i'm not sure about the ini = to thingy :)

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

More
05 Apr 2011 13:50 #8565 by BigJohnT
Replied by BigJohnT on topic Re:Subroutine GUI
The first problem is you can't name your pyvcp button hal pin the same name as an existing pin.

The second problem is you are linking the pin pyvcp.home-x but you have not created it in your xml file.

The third problem is you can't just make stuff up to put in the ini file. So remove the home x stuff from your ini file.

John

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

More
05 Apr 2011 14:29 #8567 by piasdom
Replied by piasdom on topic Re:Subroutine GUI
now i'm really lost.
i changed parts of the MyVCP.xml, renaming parts of MDI Command. pin/frame/text, at each change i restarted emc.
no matter what i changed, it started with the MDI command and it home all.
so i deleted everything in the file and everything works. i made sure
i had the correct file. emc2/configs.
is this a necessary file or is it like <= and => ?

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

More
05 Apr 2011 14:38 #8570 by BigJohnT
Replied by BigJohnT on topic Re:Subroutine GUI
Is what a necessary file?

Please understand the halui home joint pins has nothing to do with halui MDI... this seems to be a confusing point for you.

Start by creating the buttons one at a time in your .xml file and start Axis after creating each button to make sure you have not made a mistake.

Make sure all the buttons are surrounded by one pair of <pyvcp></pyvcp> tags.

Give each button a pin name that is unique like I suggested in a previous post.

Should we move this discussion to the pyVCP category? It has evolved into a pyvcp discussion...

John

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

More
05 Apr 2011 14:43 - 05 Apr 2011 14:53 #8572 by piasdom
Replied by piasdom on topic Re:Subroutine GUI
BigJohnT wrote:

The first problem is you can't name your pyvcp button hal pin the same name as an existing pin.
i don't see another home x
if you're talking about net home-x halui.joint.0.home => pyvcp.home-x, should it be net home-x halui.joint.0.home => pyvcp.just-home-x
and change the name in the xml ?

The second problem is you are linking the pin pyvcp.home-x but you have not created it in your xml file.
i thought i did. all i can see is i took <labelframe> out. do you mean i need it for each button ?

The third problem is you can't just make stuff up to put in the ini file. So remove the home x stuff from your ini file.
i did. but as i said, didn't know what to put so i put something. tried a number of other combinations there.

John

Last edit: 05 Apr 2011 14:53 by piasdom.

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

More
05 Apr 2011 14:50 #8573 by piasdom
Replied by piasdom on topic Re:Subroutine GUI
BigJohnT wrote:

Is what a necessary file?

Please understand the halui home joint pins has nothing to do with halui MDI... this seems to be a confusing point for you.

Start by creating the buttons one at a time in your .xml file and start Axis after creating each button to make sure you have not made a mistake.

Make sure all the buttons are surrounded by one pair of <pyvcp></pyvcp> tags.

Give each button a pin name that is unique like I suggested in a previous post.

Should we move this discussion to the pyVCP category? It has evolved into a pyvcp discussion...

John


yes i guess i am confused, but that explained it better.
i've been working on just X for now and was going to work on each one as i got one working.
if you think we should move, as i think it's all the same(to me) but you know the rules better then i.
i have no with that.

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

More
05 Apr 2011 14:57 #8574 by BigJohnT
Replied by BigJohnT on topic Re:Subroutine GUI
There are no rules, but it is easier to find a discussion about pyvcp in that section of the forum later on. So yes create a new topic over there and we will work this out.

John

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

Time to create page: 0.088 seconds
Powered by Kunena Forum