Hi,

I am trying to build a custom control panel that talks to HAL through a
serial interface using pyserial. I have a Python program that runs fine from
a HAL prompt (i.e. with halrun). It loads and reports its pins as expected.
However, if I try to add it to the custom_postgui.hal, so that it loads with
Axis, EMC will not start properly. I get the EMC loading screen, the Axis
toolchanger dialog, then both disappear and nothing happens. After I do
halrun -U, I get the EMC error window with the message, "Waiting for
component '/usr/bin/test' to become ready......" with a lot of periods.

I've been stripping away pieces of my code to see if I could isolate a
problem with no luck. Eventually I just used this example from the tutorial
on the website, and it produces exactly the same result as my code.

#!/usr/bin/python
import hal, time
h = hal.component("passthrough")
h.newpin("in", hal.HAL_FLOAT, hal.HAL_IN)
h.newpin("out", hal.HAL_FLOAT, hal.HAL_OUT)
h.ready()
try:
    while 1:
        time.sleep(1)
        h['out'] = h['in']
except KeyboardInterrupt:
    raise SystemExit


>From http://www.linuxcnc.org/docview/html//hal_halmodule.html

I can post the full dump from EMC if it would help but my guess is I'm
missing something more fundamental here. Thanks in advance!
------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to