Hello everybody,

I've got a really strange problem with a simple userspace component that
i've already used before. But this time in a new machine i can't make it
work.

Everytime i try to load the component i get a FAILED message.

The python lines are the following:

#!/usr/bin/python
import hal, os
h = hal.component("halt1")
h.newpin("halt_in", hal.HAL_BIT, hal.HAL_IN)
h.ready()
h.halt_in = 0
while h.halt_in == 0:
   pass
os.system ('echo 123456 | sudo -S halt')

It's a very simple component to add an external button to shutdown the
machine ( I use this because I like the axis interface locked in fullscreen
mode).

Well, that's all, i don't know where the problem is but i can't load the
component, if someone could give me a hand i'll be really thanked.

Best regards.

Leonardo.
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to