Export data from EMCMOT for analyzing

More
25 Mar 2016 18:46 #72150 by cnceng
Hi, I want to analyze and optimize the results of linuxcnc.
I have written a hal comp to export, e.g., x-pos-cmd, y-pos-cmd, and z-pos-cmd, into a csv file.
Now, I need intermediate data.
I found the image wiki.linuxcnc.org/uploads/EMC_Control_LG.gif.
EMCMOT seems to be very interesting for me.
How can I extract the data used by EMCMOT into a csv file?
What are the names of the relevant hal modules / hal pins?

Please Log in or Create an account to join the conversation.

More
27 Mar 2016 13:36 #72209 by andypugh

Hi, I want to analyze and optimize the results of linuxcnc.
I have written a hal comp to export, e.g., x-pos-cmd, y-pos-cmd, and z-pos-cmd, into a csv file.


Does this do more than is possible with halsampler?
linuxcnc.org/docs/2.7/html/man/man1/halsampler.1.html

It might also be helpful to know that Halscope can sae data to file.

Now, I need intermediate data.
I found the image wiki.linuxcnc.org/uploads/EMC_Control_LG.gif.
EMCMOT seems to be very interesting for me.
How can I extract the data used by EMCMOT into a csv file?
What are the names of the relevant hal modules / hal pins?


"EMCMOT" is the "motion" component:
linuxcnc.org/docs/2.7/html/man/man9/motion.9.html

If you need intermediate results from calculations than you will have to edit the source to add more pins, and then set the values of those pins as required (and recompile). There are plenty of patterns in the file to copy.
github.com/LinuxCNC/linuxcnc/blob/master...motion/motion.c#L291

Please Log in or Create an account to join the conversation.

Time to create page: 0.141 seconds
Powered by Kunena Forum