radiobutton

More
02 Jul 2012 09:03 #21485 by lorisdag
radiobutton was created by lorisdag
I can not configure prejudice has radiobuttons to file hal, help!!!

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

More
02 Jul 2012 10:52 #21487 by BigJohnT
Replied by BigJohnT on topic Re:radiobutton
Your question doesn't make any sense... can you rephrase it?

What have you done?

What did you get?

What did you expect?

PyVCP Buttons

John

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

More
02 Jul 2012 12:14 #21488 by lorisdag
Replied by lorisdag on topic Re:radiobutton
Hello I want to change the status of three pin
to change the world of the machine:
I wrote on this hal file:
net my-radio.one => parport.0.pin-08-out
net my-radio.two => parport.0.pin-09-out
net my-radio.tree => parport.2.pin-14-out


in the file pyvpc this:
<radiobutton>
<choices>["one","two","three"]</choices>
<halpin>"my-radio"</halpin>
</radiobutton>

manitor to see the buttons but do not work

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

More
02 Jul 2012 12:30 #21489 by BigJohnT
Replied by BigJohnT on topic Re:radiobutton
You have a signal name and an in pin but nothing turning on the in pin unless you have defined the signal name my-radio.one somewhere else to link your radio button to. Also I would not use the . in a signal name like my-radio.one, instead call the signal my-radio-one as it does funny things in the Show Hal config window.

If you go to Machine > Show Hal configuration and open up Pins > pyvcp you will see the HAL names for your radio button.

The following would be a correct HAL line with
net, signal name, out pin, useless graphic, in pin
net my-radio-one pyvcp.my-radio.one => parport.0.pin-08-out

A must read when working with HAL file is this chapter .

John

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

More
02 Jul 2012 12:58 #21490 by andypugh
Replied by andypugh on topic Re:radiobutton
BigJohnT wrote:

net my-radio-one pyvcp.my-radio.one => parport.0.pin-08-out


Also note that this needs to be in the custom_postgui.hal file as the pyvcp pins do not exist until the GUI has loaded.

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

More
02 Jul 2012 13:17 #21492 by lorisdag
Replied by lorisdag on topic Re:radiobutton
thank you very much problem solved

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

Time to create page: 0.109 seconds
Powered by Kunena Forum