I cannot reproduce the problem you describe.  However, your problem may
actually be a common error that can be corrected by using the "-n" flag to
loadusr--see below.

I saved the script to the file "passthrough" in a directory on my PATH
and then ran it in 2.5 and master:

jepler@babs:/usr/src/linuxcnc-2.5$ . scripts/rip-environment
jepler@babs:/usr/src/linuxcnc-2.5$ halrun 
halcmd: loadusr -W passthrough
halcmd: show pin
Component Pins:
Owner   Type  Dir         Value  Name
     6  float IN              0  passthrough.in
     6  float OUT             0  passthrough.out

[close terminal, open fresh]

jepler@babs:/usr/src/linuxcnc-master$ . scripts/rip-environment
jepler@babs:/usr/src/linuxcnc-master$ halrun
halcmd: loadusr passthrough
halcmd: jepler@babs:/usr/src/linuxcnc-master$ halrun
halcmd: loadusr -W passthrough
halcmd: show pin
omponent Pins:
Owner   Type  Dir         Value  Name
     6  float IN              0  passthrough.in
     6  float OUT             0  passthrough.out

When "loadusr -W" never returns, typically it is because the component name is
not the same as the basename of the command.  In these cases, it is necesary
(in v2.5 and master equally) to specify the name of the component to wait for:

[I copied passthrough to ./randomname]
$ halrun
halcmd: loadusr -W ./randomname
Waiting for component 'randomname' to become 
ready.................................^C
<stdin>:1: ./randomname exited without becoming ready

$ halrun
halcmd: loadusr -Wn passthrough ./randomname
halcmd: show pin
Component Pins:
Owner   Type  Dir         Value  Name
     6  float IN              0  passthrough.in
     6  float OUT             0  passthrough.out

Jeff

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to