LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can a slide control have a range of 180 to 0 to 180?

I've got a slide control and I want its range to be 180 to 0 to 180.  No negative numbers are displayed or shown in the data.  This is how a aircraft cockpit roll indicator is marked as well as some other gages.  Electricaly the indicator is like this:
0 volts equals 180 degrees roll to the left,
5 volts is 0 degrees,
and 10 volts equals 180 degrees roll to the right.
Can slide controls work this way?  I would of thought there would be some sample code or something for aircraft cockpit gages but my searchs have been nill.  Thanks for any help.
0 Kudos
Message 1 of 6
(3,341 Views)

You should be able to modify the control slider to do that.  The value would output 0 to 10 as you indicte for voltage but change the slider control to not display the numeric values with the ticks.  The use free text to lable the tick marks.  I don't know if you can actualy have the control equal to the same value in two different slider postions, but if you need to have 180 to 0 to 180, make the range have negative values and convert them to positive values in code.  You will still have to not show the slider values and use free text. 

Message Edited by paulmw on 11-14-2006 11:25 AM

0 Kudos
Message 2 of 6
(3,332 Views)
Yes, use text lables.  Thanks, Ben, I learned something new Smiley Happy
Message 4 of 6
(3,308 Views)

for Ben,

What version of Labview does the Compass require?  I'm working with Labview 7.0 Express and when I try to recreate the Compass Text Lables Labview crashes.  I followed the link and downloaded the compass.vi.  Ran it as is and the W S E disapear from the gauge and never reappear and N is replaced with 90.  Adding the Text Lables as shown in Properties only caused N E S W to appear in the gauge digital display.

 

for Paul,

With my version of Labview 7.0 Express it won't operate with the two values 180.

0 Kudos
Message 5 of 6
(3,273 Views)

See attached LV 7.0 example where I have made the marker values the default of the FP control.

have fun!

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 6 of 6
(3,252 Views)