Maximilian H wrote:
> is there a way to log the current position, velocity and acceleration to
> syslog if there is an error situation that gets logged to /var/log/syslog ?
> 
> I might have a problem with the mechanics that only happens under
> certain conditions and I want to have more data to see if a pattern emerges.

I think the usual way to do this is to run halscope, and trigger on the 
error you want to see.

If you want it to happen behind the scenes without another window open, 
you could use "halsampler | my-error-detector > logfile", with the 
appropriate sampler config loaded and the appropriate my-error-detector 
script written.


Here's an example of using halsampler and a userspace script to monitor 
what's happening in HAL:

<http://highlab.com/~seb/bzr/fabrication/projects/emc2-hacking/hm2/test/loopback/stepgen-to-encoder/000.encoder-vel-estimation-when-slow-and-changing-direction/dotest>


-- 
Sebastian Kuzminsky

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to