LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Slider buttons sense reversed

Solved!
Go to solution

Thank you.  I found a Scale setting for "Invert".  (Reversing the min/max did not work.)

Wraparound bothers me not at all.

Data type to Integer: point well taken.  I had noticed moving the actual slider was showing fractional values in the display, although the logic was rounding them to the nearest increment. 

 

Thanks to all interested parties.

 

I live by Chrome and hope to see NI forum compatibile at some point. 

0 Kudos
Message 11 of 24
(853 Views)

I'm glad it all worked out. 😄


wildcatherder wrote:

I live by Chrome and hope to see NI forum compatibile at some point. 


Chrome (and safari) need to change, the forum is fine. Chrome balks at uploding files with two-letter extensions, so, as long as you are trying to upload a *.vi, the forums is powerless over the local restriction at your end. 😉

 

As a workaround, you could zip the VI, save it in a *.llb or save as a *.vit before uplading.

Message 12 of 24
(849 Views)

If the wrapping is an issue you could customize the control by swapping the position of the incr/decrement buttons, then swap their images. That technique has worked for getting enums to move down the list with the down button.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 13 of 24
(846 Views)

Ben wrote:

If the wrapping is an issue you could customize the control by swapping the position of the incr/decrement buttons, then swap their images.


Ben,

 

Are you missing a NOT in there, e.g. :"If the wrapping is NOT an issue you could ...".

 

Currently, your post reads as if you are suggesting the button swap as a solution to the wrapping problem. However, it seems you are trying to solve th up/down problem instead. 😉

 

Well, it's friday afternoon.... 😄

Message 14 of 24
(825 Views)

Hi, many years later I'm facing the same problem with dial control.

I attached my control, so you will understand what is the result I would like to have:

pressing up the value goes from 0 to 950 ( or whatever).

pressing down it goes from 950 to 0.

I would like to play disassembling the digital control, so moving arrows and inverting them, but I'm not able to break it into little pieces.

Someone please could explain me how to do it ?

0 Kudos
Message 15 of 24
(69 Views)

Hi Pinco,

 


@PincoG wrote:

what is the result I would like to have:

pressing up the value goes from 0 to 950 ( or whatever).

pressing down it goes from 950 to 0.


You can set input limits for numeric controls and how the control will coerce to those limits (in the control properties dialog).

Have you tried those settings yet?

 


@PincoG wrote:

I would like to play disassembling the digital control, so moving arrows and inverting them, but I'm not able to break it into little pieces.


What is it that you want to "play"? (I don't understand this sentence.)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 16 of 24
(72 Views)

Hi Gerdw,

I cannot understand what you mean when you suggest me to change inputs limit and coercing values.

I would like to have a dial control, starting from the one I already attached, tha has got the up arrow of digital control that makes it move clockwive, while the down arrow should makes it move counterclock wise.

With playing, since I read from someone of a previous post, to invert the position of the two little arrow and then rotate the image of the arrows.

0 Kudos
Message 17 of 24
(70 Views)

Hi Pinco,

 


@PincoG wrote:

I would like to have a dial control, starting from the one I already attached,


I'm limited to LV2019 right now, so you would need to attach a downconverted version of your control.

 

You can show the digital display of the dial and use it's arrow.

Again: set the input limits of the dial in the "Data Entry" tab of its property dialog!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 18 of 24
(65 Views)

Hi GerdW,

I attached downgraded verision.

I would like anyway to learn how to disasseble control, and meybe build my onw ones.

Maybe you can help me also in that.

Greetings

0 Kudos
Message 19 of 24
(52 Views)

Hi Pinco,

 

ahh, I see: you are (mis)using the dial as a combobox replacement!

 

You set some self-defined values at the scale, the digital display acts like a ring/enum…

 

As I wrote two times before: disable the "Text labels" and use the "Data Entry" properties of the dial control:

Now the digital display acts like any "default" numeric input, with the benefit of coerced user inputs.

 

Another suggestion:

Learn about XControls!

  • They allow more options regarding their internal logic and you can place more independent controls/buttons in their UI.
  • You can create your own properties for your XControl, so you could make the scale limits configurable…
  • You could place two real "arrow" buttons instead of fiddling with the digital display of the default dial control.

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 20 of 24
(43 Views)