pin 'pyvcp.xxxxx' does not exist

More
16 years 4 months ago #3082 by BigJohnT
Gee Wiz I hate to keep beating you over your head with the manuals LOL but,

from the manual:

Scale controls a float or a s32 pin. You increase or decrease the value of the pin be either dragging the slider, or pointing at the scale and rolling your mouse-wheel. The "halpin" will have both "-f" and "-i" added to it to form the float and s32 pins. Width is the width of the slider in vertical and the height of the slider in horizontal orientation.


John

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

More
16 years 4 months ago #3083 by grewgood
Just had my Ahh-ha moment..... LOL

Amazing how many times you read something and dont quite see it!!

Still can highly recommend the Show Hal Configuration for solving this kind of problem. I think I had some white spaces in names. It was able to show if the pin was recognised and I could check the name against the postgui.hal name for consistency.

Thanks John

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

More
16 years 4 months ago #3084 by BigJohnT
Hal Show Configuration is one of my favorite tools as well as the comment marker # when I'm fiddling with my hal files.

If you read something and it ain't right or doesn't make sense I'm the go to guy for suggestions to improve the manuals. I try to take an EMC new-bee's view when I work on a section of the manual.

Glad you got it working.

John

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

More
16 years 4 months ago #3094 by grewgood
Sorry, I am back again.Probably something silly....??

net min-home-x => pyvcp.xlimitswitch
net min-home-y => pyvcp.ylimitswitch
net max-home-z => pyvcp.zlimitswitch

#net myhalxpos <= halui.axis.o.pos-relative => pyvcp.my-x-position
#net myhalypos <= halui.axis.1.pos-relative => pyvcp.my-y-position
#net myhalzpos <= halui.axis.2.pos-relative => pyvcp.my-z-position

net xvel-cmd <= axis.0.joint-vel-cmd => pyvcp.my-x-velocity
net yvel-cmd <= axis.1.joint-vel-cmd => pyvcp.my-y-velocity
net zvel-cmd <= axis.2.joint-vel-cmd => pyvcp.my-z-velocity

In the first three lines above, I get the limit switches fine in my ui - nice.
In the last three lines I get the joint velocity fine.
But in the three lines with # I get:- pin 'halui.axis.0.pos-relative' does not exist. (when no # obviously)

Yet I can see them in the "show hal configuration"

Am I missing another "-f" John? :)

regards

Greg

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

More
16 years 4 months ago #3097 by andypugh
You have an "o" instead of a "zero" (Oh not zero)

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

More
16 years 4 months ago #3102 by grewgood
0h why do I feel like such a f00l....:blush:

I've been at this too long. I should have picked that up!

Thanks Andy

Greg

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

Time to create page: 0.356 seconds
Powered by Kunena Forum