NEWS
LinuxCNC 2.5.2 Release
There are no translations available.

LinuxCNC 2.5.2 Update Released (changelog).
 
LinuxCNC 2.5.1 Release
There are no translations available.

LinuxCNC 2.5.1 Update Released (changelog). If the Package Manager does not prompt you to upgrade see this page.

 
LinuxCNC 2.5.0 Release
There are no translations available.

New major release (changelog). See the instructions to update your system from EMC 2.4 to LinuxCNC 2.5.
 

Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: radiobutton

radiobutton 02 Lug 2012 02:03 #21485

  • lorisdag
  • lorisdag's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 12
  • Karma: 0
I can not configure prejudice has radiobuttons to file hal, help!!!
The administrator has disabled public write access.

Re:radiobutton 02 Lug 2012 03:52 #21487

  • BigJohnT
  • BigJohnT's Avatar
  • OFFLINE
  • Administrator
  • Posts: 4960
  • Thank you received: 87
  • Karma: 134
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
The administrator has disabled public write access.

Re:radiobutton 02 Lug 2012 05:14 #21488

  • lorisdag
  • lorisdag's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 12
  • Karma: 0
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
The administrator has disabled public write access.

Re:radiobutton 02 Lug 2012 05:30 #21489

  • BigJohnT
  • BigJohnT's Avatar
  • OFFLINE
  • Administrator
  • Posts: 4960
  • Thank you received: 87
  • Karma: 134
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
The administrator has disabled public write access.

Re:radiobutton 02 Lug 2012 05:58 #21490

  • andypugh
  • andypugh's Avatar
  • OFFLINE
  • Moderator
  • Posts: 4140
  • Thank you received: 141
  • Karma: 130
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.
The administrator has disabled public write access.

Re:radiobutton 02 Lug 2012 06:17 #21492

  • lorisdag
  • lorisdag's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 12
  • Karma: 0
thank you very much problem solved
The administrator has disabled public write access.
  • Page:
  • 1
Time to create page: 0.877 seconds
Powered by Kunena Forum
© 2013 LinuxCNC.org
Joomla! is Free Software released under the GNU General Public License.