John and Jeff,

John Kasunich <[EMAIL PROTECTED]> wrote:

 >
 > acondit wrote:
 > > I am running EMC2_2.2.7 and Axis. I am trying to add another  
widget to my pyvcp.
 > > I added this to panel.xml:
 > >   <labelframe text="Jog Speed">
 > >     <scale>
 > >       <halpin>"jog-speed-set"</halpin>
 > >       <resolution>0.1</resolution>
 > >       <orient>HORIZONTAL</orient>
 > >       <min_>0</min_>
 > >       <max_>120</max_>
 > >     </scale>
 > >   </labelframe>
 > >
 > > I added this to custom_postgui.hal:
 > > net jog-speed-final halui.jog-speed <= pyvcp.jog-speed-set
 > >
 > > Does anyone have an idea what is wrong?
 >
 > This is why "halcmd show" exists - so you can look at the pins in  
your
 > system and see what is present or missing.
 >
 > Comment the line that causes the error, then start EMC2.  Then in a
 > shell, do "halcmd show pin" and scan the list to find the pin that
 > belongs to your slider.  My guess is that you don't need the pyvcp.
 > prefix, but I'm not sure.
 >
 > You can also load _just_ your pyvcp panel.  Then a hal show will show
 > you all the pins it exports, and nothing else.
 >
 > Regards,
 >
 > John Kasunich

For the scale widget, pyvcp exports pyvcp.jog-speed-set-f and  
pyvcp.jog-speed-set-i. From reading pyvcp.py, I gather that the -f is  
for float and -i is for signed integer.

For all of the other widgets that I am using pyvcp just exports  
pyvcp.the-halpin-name from the pyvcp panel. So this was a small  
surprise.  But I guess that it makes sense because of being able to  
access the float or integer value. I guess this should be added to  
the documentation.

Thanks,
Alan

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to