On 10/26/2013 01:27 AM, Sven Wesley wrote:
> Guys,
>
> I wrote a user space python component simulating my tool changer, it works
> like expected in 2.5 but it doesn't start in 2.6-pre. Actually LinuxCNC
> doesn't start at all. I have tested this in SIM mode with both Axis and
> Gmoccapy. In 2.5 it works fine with the Axis config.
>
> This behaviour can be reproduced with the user space example from the
> documentation.
> http://www.linuxcnc.org/docs/devel/html/hal/halmodule.html
>
> Copy it into a text file, make it executable and add it in a HAL file with
> loadusr -W /path/to/your/test/file
> This example also works fine in 2.5
>
> When LinuxCNC starts the component isn't treated as ready and the output is
> Waiting for component [your_comp] to become ready.................
> You can now joyfully watch the number of dots increase.
>
> Is it a defect or are there changes in user space treatment in 2.6?
That example worked for me in both 2.5 and master (aka 2.6).
In both master and 2.5, by default loadusr expects the comp to have the
same name, as specified by hal.component("compname"), as the name of the
file. Possibly that's the problem you're seeing?
You can override the name that loadusr expects using the -Wn argument to
loadusr. See the halcmd manpage or "halcmd help loadusr" for details.
--
Sebastian Kuzminsky
------------------------------------------------------------------------------
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