On Thu, Jun 21, 2012, at 02:19 PM, Rando Sauvage wrote:
> I have tried to do a logical "OR" with hal components in my custom.hal > file, but it doesn't works since my "emc_pause" script doesn't address > a real "pin" anymore ... > > loadrt or2 count=1 > addf or2.0 servo-thread > > net programPause => halui.program.pause > > net pause-joystick or2.0.in0 <= input.0.btn-thumb > net pause-console or2.0.in1 > net programPause <= or2.0.out > > I have then modified my emc_pause script as follow: > "halcmd setp pause-console 1;" > But it fails with this error: "<commandline>:0: parameter or pin > 'pause-console' not found", because pause-console is a signal name > with no pin associated ... As Andy has already pointed out, you could setp the input pin of the OR gate: "halcmd setp or2.0.in1 1;" You could also retain the readability benefits of the named signal by using the "sets" command, which lets you set a signal instead of a pin: "halcmd sets pause-console 1;" -- John Kasunich jmkasun...@fastmail.fm ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users