- Posts: 35
- Thank you received: 0
Generating RPM from simple high/low switch- possible?
- nigel-tufnel
- Topic Author
- Offline
- Junior Member
-
Less
More
9 years 8 months ago #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 to join the conversation.
- verticalperformance
- Offline
- Senior Member
-
Less
More
- Posts: 54
- Thank you received: 0
9 years 8 months ago #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.
Attachment not found
Please Log in to join the conversation.
- nigel-tufnel
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 35
- Thank you received: 0
9 years 8 months ago #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 to join the conversation.
Time to create page: 1.841 seconds
