01-08-2026 08:04 AM
Hi all,
I'm using LabVIEW 2021 SP1.
I'm trying to make a simple animation to display the changing angular position of a rotating mechanism on a circle. I haven't found a satisfactory solution yet. The position should change within a specific angle range when a button is clicked, and it should move back to its original position when another button is clicked.
I've tried using the 2D picture drawing functions to draw a circle using a radius, and an arc. But it's not easy to then draw radial lines that go from the center to the circumference. The arc drawing function simply draws a "pie slice" which can be shaded, but there's no option to show just radial lines.
I've done circles using XY Graphs, but there again, it doesn't seem to be easy to simply draw radial lines with a given radius. Let alone static radial lines, but then being able to dynamically (programmatically) change the angle of the radial line to mimic the mechanism turning.
My first thought was to use a knob or dial indicator, but the scale display is fixed. You can't make the display go all the way around in a circle (0-360 deg). If there's a way to do that, it would be the best solution for me.
Any help/hints would be greatly appreciated!
Solved! Go to Solution.
01-08-2026 08:19 AM - edited 01-08-2026 08:21 AM
There is a lot you can do when customizing gauge controls.
Start reading here:
https://forums.ni.com/t5/Example-Code/Customizing-the-Gauge-Control-in-LabVIEW/ta-p/3533688
Edit:
01-08-2026 08:29 AM
Does a Polar Plot satisfy your requirements? Look in the Modern palette.
01-08-2026 08:49 AM
Thanks for your inputs.
I found an old post which has the perfect solution for me: