LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Any LabVIEW 2009 Front Panel Gage displayed as Continuous 360 deg circle?

Solved!
Go to solution
Highlighted

Any LabVIEW 2009 Front Panel Gage displayed as Continuous 360 deg circle? I want to display a Motor position on the LabVIEW Front Panel as 360 degree circle. Is there any way to make the gage display as a continous 360 deg circle?

0 Kudos
Message 1 of 13
(5,507 Views)

This question has come up many times before. Did you try a search? Please do a search for "multi turn knob", for example.

0 Kudos
Message 2 of 13
(5,506 Views)

I did do a LabVIEW Search and it came up with nothing, as usual.

 

There are no entries in LabVIEW help for multi-turn anything.

 

The knobs, gages and dials, none of them seem to be designed for 360 degree continuous operation. Of course I can set the scale for 0 to 360, but I can not get rid of the gap between 0 and 360.

 

How do I set up a gage to display a Continuous 360 degrees without a gap between 0 and 360?

0 Kudos
Message 3 of 13
(5,489 Views)

Hi dbaechtel,

 

well, you can search the LabVIEW help - or you can search in this forum...

 

Doing a forum search would have yielded this as the first result...

Best regards,
GerdW
CLAD expired, using 2009SP1 + LV2011SP1 + LV2017 (+LV2018 sometimes) on Win7+cRIO
Kudos are welcome Smiley Wink

0 Kudos
Message 4 of 13
(5,481 Views)

Personally, I am not fond of the manual manipulation of the start position and range of the gauge control so I tend to use property nodes instead.  It doesn't sound like you are looking for a multiturn gauge, just a cosmetic change to avoid the gap, so this simple change should suffice.

 

20409i770FD80D65DC7BD6

 

I am playing with my new toy (LV10) right now so this snippet won't work directly, but you should be able to recreate in less time than it takes me to start LV9.  Or just do it the manual way as shown in the LV help.

Message 5 of 13
(5,476 Views)

The multi-turn knob is not the functionality that I want.

 

I need a multitun gage.

 

The difference is that the knob is a control and the gage is an indicator. I don't want the increasing input value of the multi-turn knob as it goes through multiple turns. I just want a gage that will display 0 to 360 without any gap between 0 and 360. The gage will display degrees of a motor position. The motor position is modulo 360.

Message 6 of 13
(5,463 Views)

Is there any way to do this in the custom control (indicator) editor? I want it to display properly at design time. I don't want to have to execute code to change the properties.

0 Kudos
Message 7 of 13
(5,462 Views)

execute the code once, then delete the code. The gauge will keep the new properties when you save the VI.

 

If you want the range to be 0..2pi it would be difficult to enter manually but for 0..360 it's easier. Still, you might have problems aligning the zero at the desired angle.

 

Have you tried? Smiley Wink


LabVIEW Champion Do more with less code and in less time
0 Kudos
Message 8 of 13
(5,441 Views)
Solution
Accepted by topic author dbaechtel
08-27-2015 04:09 PM

 


@dbaechtel wrote:

 

The knobs, gages and dials, none of them seem to be designed for 360 degree continuous operation. Of course I can set the scale for 0 to 360, but I can not get rid of the gap between 0 and 360.

 

How do I set up a gage to display a Continuous 360 degrees without a gap between 0 and 360?


 

To change the gap, grab the high marker line and move it to the desired place (To change the origin, grab the low marker).

Also, don't forget to wrap the raw data into the 0..360 range if it falls outside. Here's a quick example (LabVIEW 8.0).

 

 


LabVIEW Champion Do more with less code and in less time
Message 9 of 13
(5,438 Views)

The code I posted sets the scale to cover the full circle (2 pi) with the minimum set to 0 radians (3 o clock).  I also flip the scale so it increases in the CCW direction.  This saves the manual manipulations and gets the angle perfect with no gap.  As noted, if you want, after the property nodes execute once you can either paste the indicator into your VI or simply delete the code.

 

Setting the range of the scale is separate and easily done using the Properties dialog or double-clicking, and 0 to 360 is trivial.  Use the Quotient and Remainder function to perform the modulus function.  Text labels can be added at N,S,E,W if you'd like as well search for 'compass' to find some examples.

 

Some day they might add the scale position start and range to the properties dialog.

Message 10 of 13
(5,431 Views)