Use sampler/halsampler. These capture signal values into a buffer from
realtime, then read values out of the buffer in userspace.
There are manpages for halsampler (the userspace portion) and sampler
(The realtime portion). You can read them at the terminal with
man halsampler
man sampler
or online
http://linuxcnc.org/docs/html/man/man1/halsampler.1.html
http://linuxcnc.org/docs/html/man/man9/sampler.9.html
You can also find several examples of this in the test suite, such as
tests/stepgen.0 in the source tree. This particular test sets up
a stepgen and logs the values of its 'dir' and 'step' pins at each
execution of the 'fast' thread; the testing script (scripts/runtests)
compares this output to the file 'expected'.
Jeff
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers