LinuxCNC / linuxcnc

LinuxCNC controls CNC machines. It can drive milling machines, lathes, 3d printers, laser cutters, plasma cutters, robot arms, hexapods, and more.
http://linuxcnc.org/
GNU General Public License v2.0
1.82k stars 1.17k forks source link

Halcope - Can save data files but not open them #966

Open andypugh opened 4 years ago

andypugh commented 4 years ago

This is more an obvious enhancement than a bug.

Halscope is a really useful tool, and it has the capability of saving data files. (albeit in a rather odd and inefficient format)

It would be very useful (for example when analysing other peoples plots from the mailing list and forum) to be able to load their log files back in to Halscope to zoom in and otherwise analyse.

I think that there is probably no reason to maintain the current format. Just changing it to CSV (or maybe mf4?) would be an improvement in usability.

rodw-au commented 4 years ago

I would love to see halscope and halstreamer both use csv files. Maybe there is a command line switch. I think CSV is the more broadly used format. In the past I have analysed data collected this way in Google sheets.

havardAasen commented 3 years ago

If you are interested, I can submit a PR with a patch that saves the log files in csv format. I also made a python script to create plots, I found it easier then changing halscope.

I found the plot to be quite nice to work with, (interactive html). The only downside is that to run the python script it requires Bokeh library, and you can't 'apt-get' it. For me, the easiest was to install it with pip.

I attached a csv file created with halscope. The html file contains a interactive plot created with the python script. The plot is based on information from the documentation, HAL Tutorial - stepgen example.

GitHub didn't like html files... The dark theme is optional. halscope.html.csv

halscope_slow.csv

andypugh commented 3 years ago

Saving .CSV would definitely be a start, but what I would really like to see Halscope do would be to import the files that it exports. Then users on the forum could post their halscope data and we could look at it, and see what they see. (CSV would at least allow import in to Excel, but Excel is not great for interactive data plotting)