LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Indicator for rotating wheel

Solved!
Go to solution

Hello LabVIEW community,

I am currently working on a VI to control a rotation stage. I am basically finished, the only thing that is still a bit annoying is, that after rotating a full 360 degrees, the indicator just goes further and I would like for it to stop at 360 and after turning for example 3 more degrees, go back to showing 3. I know how to put up a gauge for example too, going from 0 to 360 degrees, but once I reach 360, the arrow just does not move anymore (which makes sense)

Is there anyway for me to implement this?

Thanks a lot,
Karl

0 Kudos
Message 1 of 6
(970 Views)
Solution
Accepted by LeoTrotzki

Modulo.

 

Functions -> Programming -> Numeric -> Quotient & Remainder.

Message 2 of 6
(946 Views)

... and if you follow Paul's excellent suggestion, I suggest you "indicate" the value with a Gauge Indicator that you modify as follows:

  • Open its Properties and set the Scale Range to 0 and 360.
  • Place your cursor over the 360 "mark" until it turns into a "clockwise circle", click, and drag the 360 clockwise until it "meets" 0 and keep going until 360 is at the top.  If you "overshoot", keep going clockwise and try again.
  • I haven't tried, but you can probably fiddle with the properties of this Indicator to make the markers appear every 15°, with darker markers every 45° or 90°.Gauge.png

     Bob Schor

Message 3 of 6
(909 Views)

g.png

Message 4 of 6
(902 Views)

Thanks for all the replies, but because I am pretty new to LabVIEW, how do I get this window you have shown and open those nodes?

0 Kudos
Message 5 of 6
(847 Views)

@LeoTrotzki wrote:

Thanks for all the replies, but because I am pretty new to LabVIEW, how do I get this window you have shown and open those nodes?


  1. Right-click on either the control or the control terminal
  2. Select: Create -> Property Node -> (whichever property you want at the top)
  3. Expand the node downward.
  4. Click on each item with the Selection Tool to change the property.
Message 6 of 6
(825 Views)