From 11:00 PM CDT Friday, May 10 – 02:30 PM CDT Saturday, May 11 (04:00 AM UTC – 07:30 PM UTC), ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

knob with my value only

Solved!
Go to solution

hello, i'm wondering if it's possible make a know that select only my value (that i have in an array)

 

i've tried to do as in image, but as you can see it return error

Using LabVIEW 7.1
0 Kudos
Message 1 of 10
(3,432 Views)
Solution
Accepted by topic author gigi85

Hi gigi,

 

make a knob, set it to I32 datatype and set a range from 0 to (num-of-elements -1 ).

Now the knob will provide an index into your value array and you simply need to use an IndexArray function...

 

Or use a ring. Or use an enum. Or ...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 10
(3,422 Views)

I was replying the same way as Gerd but we had a race condition...Smiley Happy

0 Kudos
Message 3 of 10
(3,420 Views)

thhanks you both...it works but with an error 😞

 

in my knob now i see from 0 to 35 value...and not my real value 🙂

Using LabVIEW 7.1
0 Kudos
Message 4 of 10
(3,408 Views)

Hi gigi,

 

that's not an error, it's a feature 🙂

 

Hide the scale and write your own text instead...

Or even better: look at the properties of your knob. You can define your own scale text, there's a special tab for!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 5 of 10
(3,398 Views)

are you speaking about text labels?

 

i have tried them...but i should write all my 35 labels (i think they are too much) or i lose the possibility to select some value...

 

for example...i have 35 possible value...if i write only 10 text labels i'll can select only those 10 value...i can't select other value 😞

 

PS: in which way can i hide scale value?

Using LabVIEW 7.1
0 Kudos
Message 6 of 10
(3,394 Views)

Hi gigi,

 

don't know the English name, I only have the German LV version available...

 

Yes, 35 labels are a lot of text.

- Make your knob bigger to allow more (visible) entries.

- Don't show all entries. You may still select steps in between...

- As mentioned before: use an enum or ring.

 

"Hiding scale values": it's all in the properties of your control...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 7 of 10
(3,388 Views)

i can't make it bigger (i need this size)

Don't show all entries. You may still select steps in between... in which way?

use an enum or ring - what are them? 😄 sorry but i'm new in labview, and my english is so bad 🙂

 

"Hiding scale values"...in labview 7.1 this command is not present 🙂 or i too noob to find it 🙂

Using LabVIEW 7.1
0 Kudos
Message 8 of 10
(3,382 Views)

Hi gigi,

 

even in LV7.1 you can right-click your knob and select "scale"->"representation" to hide the scale...

 

When you set your knob to a range as described above you can always select any number from that range, regardless if the scale is hidden or not and regardless if the scale shows all those numbers or just some of them...

 

Rings and Enum are found on their special palette. Did you tried Google to find some information about them? Did you search the LabVIEW help? Doh...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 9 of 10
(3,380 Views)

i find the way to don't show them all 🙂

 

or using delete button or doing as in image 🙂 thanks 

Using LabVIEW 7.1
0 Kudos
Message 10 of 10
(3,379 Views)