LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Rotating Gear Custom Control

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!

Download All
0 Kudos
Message 1 of 3
(2,883 Views)

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.

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 2 of 3
(2,876 Views)

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

0 Kudos
Message 3 of 3
(2,833 Views)