Generating RPM from simple high/low switch- possible?
- nigel-tufnel
- Offline
- Junior Member
Less
More
- Posts: 35
- Thank you received: 0
05 Feb 2017 01:38 #87326
by nigel-tufnel
Replied by nigel-tufnel on topic Generating RPM from simple high/low switch- possible?
The reason I was having problems was my setup. There was noise on the signal. Things seem to be working once I address this. Thanks for the help.
Question- how do you decrease the number of significant digits on the add on pyvcp spindle speed bar graph in Axis? I want to just display the RPM to one RPM (i.e. XXXX rpm; not XXXX.X rpm). Adding <format>"4.0f"</format> to the <bar> section didn't change anything.
Thanks.
Question- how do you decrease the number of significant digits on the add on pyvcp spindle speed bar graph in Axis? I want to just display the RPM to one RPM (i.e. XXXX rpm; not XXXX.X rpm). Adding <format>"4.0f"</format> to the <bar> section didn't change anything.
Thanks.
Please Log in or Create an account to join the conversation.
- verticalperformance
- Offline
- Senior Member
Less
More
- Posts: 59
- Thank you received: 14
15 Feb 2017 09:56 #87987
by verticalperformance
You might be able to do something funky in HAL where the <bar> connected to the spindle is converted from a float to an u32 integer but I suspect the bar will still display the ".0" anyway.
I moved away from pyvcp and defined my "extra info" using Glade. You can define the precision as an integer using the "text_template" property and setting it to %i or any other python format I guess.
Replied by verticalperformance on topic Generating RPM from simple high/low switch- possible?
Not sure if you can. Tried a few flavours of <format> and I think it is not defined for the ttk progress bar, on which I assume the pyvcp <bar> is basedQuestion- how do you decrease the number of significant digits on the add on pyvcp spindle speed bar graph in Axis?
You might be able to do something funky in HAL where the <bar> connected to the spindle is converted from a float to an u32 integer but I suspect the bar will still display the ".0" anyway.
I moved away from pyvcp and defined my "extra info" using Glade. You can define the precision as an integer using the "text_template" property and setting it to %i or any other python format I guess.
Please Log in or Create an account to join the conversation.
- nigel-tufnel
- Offline
- Junior Member
Less
More
- Posts: 35
- Thank you received: 0
16 Feb 2017 02:03 #88020
by nigel-tufnel
Replied by nigel-tufnel on topic Generating RPM from simple high/low switch- possible?
Thanks for the hints. I got it figured out. Solution in this thread.
forum.linuxcnc.org/22-pyvcp/32302-changi...n-bar-graph-possible
forum.linuxcnc.org/22-pyvcp/32302-changi...n-bar-graph-possible
Please Log in or Create an account to join the conversation.
Time to create page: 0.078 seconds