- Posts: 20
- Thank you received: 13
Halsampler tools
- rgb
- Offline
- Junior Member
-
Less
More
5 years 4 months ago #212856
by rgb
Halsampler tools was created by rgb
I've been working on tuning a new CNC mill and learning Linuxcnc while I go. I like using halscope but I'm too disorganized - I don't keep good notes and can't remember what a given change did.
So I wrote some tools that let me use halsampler rather than halscope. The tools let you set up some hal changes, call halcmd to make the changes, call halcmd to log interesting parameters and put it in a database. The automatically created halsampler log file is logged in the db too. A couple of other tools let you plot the data and retrieve database entries.
There's a github at github.com/rgbond/sampler_tools
Bob Bond
So I wrote some tools that let me use halsampler rather than halscope. The tools let you set up some hal changes, call halcmd to make the changes, call halcmd to log interesting parameters and put it in a database. The automatically created halsampler log file is logged in the db too. A couple of other tools let you plot the data and retrieve database entries.
There's a github at github.com/rgbond/sampler_tools
Bob Bond
The following user(s) said Thank You: andypugh, Aciera
Please Log in or Create an account to join the conversation.
- rgb
- Offline
- Junior Member
-
Less
More
- Posts: 20
- Thank you received: 13
5 years 4 months ago #212915
by rgb
Replied by rgb on topic Halsampler tools
I just updated the files on github. I had done some command renaming and grabbed an old set of files. Sorry if anyone wasted time on those.
The following user(s) said Thank You: Aciera
Please Log in or Create an account to join the conversation.
- Grotius
- Offline
- Platinum Member
-
Less
More
- Posts: 2419
- Thank you received: 2349
5 years 4 months ago #212967
by Grotius
Replied by Grotius on topic Halsampler tools
Hi rgb,
Just a tip. If you add some application picture's here and at github, there is more interest for your work !
Just a tip. If you add some application picture's here and at github, there is more interest for your work !
Please Log in or Create an account to join the conversation.
- Roguish
- Offline
- Elite Member
-
Less
More
- Posts: 297
- Thank you received: 31
5 years 3 months ago #215699
by Roguish
Replied by Roguish on topic Halsampler tools
rgb.
looks really interesting.
I'm trying to tune a DC servo system and need to 'sample' several of the pins.
How does one install and run your code?
and as Grotius states, a couple of images, with explanations would really help.
thanks.
looks really interesting.
I'm trying to tune a DC servo system and need to 'sample' several of the pins.
How does one install and run your code?
and as Grotius states, a couple of images, with explanations would really help.
thanks.
Please Log in or Create an account to join the conversation.
- rgb
- Offline
- Junior Member
-
Less
More
- Posts: 20
- Thank you received: 13
5 years 3 months ago #215705
by rgb
Replied by rgb on topic Halsampler tools
Thanks for the comments.
I added some more information to the github README.md and added a screenshot of the plot of some data that I captured. The tools are command line tools so just same them in a directory somewhere. They depend on Python3 and the Python3 versions of sqlite3 and matplotlib. These can be installed via:
sudo apt-get install python3-matplotlib libsqlite3-0
I added some more information to the github README.md and added a screenshot of the plot of some data that I captured. The tools are command line tools so just same them in a directory somewhere. They depend on Python3 and the Python3 versions of sqlite3 and matplotlib. These can be installed via:
sudo apt-get install python3-matplotlib libsqlite3-0
The following user(s) said Thank You: Roguish
Please Log in or Create an account to join the conversation.
- turbostew
- Offline
- Premium Member
-
Less
More
- Posts: 129
- Thank you received: 8
4 years 6 months ago #239444
by turbostew
Replied by turbostew on topic Halsampler tools
This is fantastic, works wonderfully! Thank you rgb for sharing. I have 2 suggestions for improvements.
1. Make plot_hs so if no fields are specified, then all signals are plotted.
2. Add function to plot 2d (x/y instead of time). This could be used to view a plot of x axis position and y axis position so one can see the desired tool path vs the actual.
1. Make plot_hs so if no fields are specified, then all signals are plotted.
2. Add function to plot 2d (x/y instead of time). This could be used to view a plot of x axis position and y axis position so one can see the desired tool path vs the actual.
Please Log in or Create an account to join the conversation.
Time to create page: 0.137 seconds