Halsampler tools
24 Jun 2021 23:41 #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
Please Log in or Create an account to join the conversation.
25 Jun 2021 18:19 #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.
26 Jun 2021 16:17 #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.
23 Jul 2021 14:33 #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.
23 Jul 2021 16:21 #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.
06 Apr 2022 13:20 #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.
06 Apr 2022 16:49 #239452
by rgb
Replied by rgb on topic Halsampler tools
Hi Turbostew,
Thanks for the suggestions. Both look like good additions to the code. I'll give it a try. I'll post back here when I have updated the code on github.
Bob Bond
Thanks for the suggestions. Both look like good additions to the code. I'll give it a try. I'll post back here when I have updated the code on github.
Bob Bond
The following user(s) said Thank You: Roguish
Please Log in or Create an account to join the conversation.
08 Apr 2022 04:16 #239618
by rgb
Replied by rgb on topic Halsampler tools
I added the changes you suggested. Let me know if they work for you.
Thanks,
Bob
Thanks,
Bob
The following user(s) said Thank You: Roguish
Please Log in or Create an account to join the conversation.
08 Apr 2022 19:24 #239692
by turbostew
Replied by turbostew on topic Halsampler tools
Hey rgb,
I did mess with your plot file. I added some features to plot x-y and to add sample delay to fields. Sample delay is needed to delay the command one sample so it aligns with feedback. This is how pid error is calculated. PM me and I will send you my file to do with it as you wish.
I did mess with your plot file. I added some features to plot x-y and to add sample delay to fields. Sample delay is needed to delay the command one sample so it aligns with feedback. This is how pid error is calculated. PM me and I will send you my file to do with it as you wish.
Please Log in or Create an account to join the conversation.
09 Apr 2022 13:57 #239733
by rgb
Replied by rgb on topic Halsampler tools
It looks like direct messages have been turned off. Maybe send the changes as a pull request on a github branch?
The following user(s) said Thank You: drummond
Please Log in or Create an account to join the conversation.
Time to create page: 0.122 seconds