On Sunday 23 April 2017 08:31:28 John Thornton wrote:

> Hi Gene,
>
> The problem seems to be with  <disable>False</disable> and what a
> strange error that returns lol, I think that is only for other widgets
> not for the multi_label.
>
> panel.xml
> <?xml version='1.0' encoding='UTF-8'?>
> <pyvcp>
> <!--
> Include your PyVCP panel here.
> -->
>
> <multilabel>
> <legends>["jog inch","jog mm"]</legends>
> <font>("Helvetica",20)</font>
> </multilabel>
>
I added the above 4 liner, at the bottom of the file, I note you comma 
separated the legend strings where the example used spaces. No apparent 
difference in the appearance.

But it still only generated one halpin, pyvcp.multilabel.0.legend0, which 
was set true by default. And it displayed both labels merged as one 
string.  Calling up the show config with its one line editor, setp'ing 
it true or false was successfull, but has no effect on the display, 
which remained "jog inchjog mm".

This being an armhf (an r-pi 3b) machine, do I have a pyvcp bug that the 
x86 machines don't suffer from?  Or possibly a bit of python/pyvcp not 
installed? In this event, I'd expect the terminal to show an error, 
which it does not.

This isn't as important as it once was as I have added a colored long 
rectled, so g20 is yellow, and g21 is blue4.

And I've found that machine units is not part of the status, so theres 
nothing to drive the multilabel. One could reach into the .ini file and 
get it, but its not dynamically changeable w/o restarting LCNC with a 
changed config.  So thats of much less operator utility than I had in 
mind when I first tried to make it work. But it could come in handy for 
something else at some point.

Suggestions John?

> <radiobutton>
> <choices>["one","two","three"]</choices>
> <halpin>"my-radio"</halpin>
> <initval>0</initval>
> </radiobutton>
> </pyvcp>
>
> postgui.hal
> # Include your customized HAL commands here
> # The commands in this file are run after the AXIS GUI (including
> PyVCP panel) starts
>
> sets spindle-at-speed true
>
> net lbl-1 pyvcp.my-radio.one => pyvcp.multilabel.0.legend0
> net lbl-2 pyvcp.my-radio.two => pyvcp.multilabel.0.legend1
> net lbl-3 pyvcp.my-radio.three => pyvcp.multilabel.0.legend2
>
> JT
>
> On 4/22/2017 7:40 PM, Gene Heskett wrote:
> > Hi John;
> >
> > Not atm. Straight out of the sample in section 6.4, with the label
> > count trimmed to 2 quoted strings, it only generates a single
> > pyvcp.label0, which without a net connection is stuck true and
> > displays both quoted labels merged into one string.
> >
> > I an assuming the strings "string1" "string2" are just the labels to
> > be displayed when the match halpin is true and can be anything
> > printable.
> >
> > Lemme add it back into the .xml and see if I can figure it out
> > again. Here is what 6.4 says:
> > <multilabel>
> >      <legends>["Label1" "Label2" "Label3" "Label4" "Label5"
> > "Label6"]</legends> <font>("Helvetica",20)</font>
> >      <disable>False</disable>
> > </multilabel>
>
> ----------------------------------------------------------------------
>-------- Check out the vibrant tech community on one of the world's
> most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Emc-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/emc-users


Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to