02-13-2018 04:11 PM
I'm looking to generate a custom control that displays the radial position of a gear. I have attached a VI for a gauge that rolls over every 10 counts to simulate one rotation. I've also attached a .png of the gear that I would like to display.
The problem I encounter is when I try to replace the needle in the control customization window and test it, the gear does not rotate on its center axis. Instead it just re-positions itself as it would look like its attached to the end of the needle. An example of this is attached as well. Does anyone have any advice on how to get the gear image to rotate on its central axis?
Thanks!
02-13-2018 04:36 PM
Needles on guages and meters (as well as the arrow & line decorations) are special graphics in LabVIEW (they rotate); and there's very little you can do to customize them. As far as I know, there's no way to get imported graphics to rotate. Your options are to either make a picture ring control, or an Xcontrol.
02-14-2018 11:31 AM
What you want is to have a control associated with the rotation of an image of a gear?
If that is the case, for a png image, I have attached a modified version of the "Rotating a 2D Picture" VI you can find in the NI Example Finder.
Regards