LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Digital control switch

Solved!
Go to solution

In order to control the number of bins in a histogram, I need a control switch that can choose between numbers e.g.. 2048, 1024, 512, 256, 128 and 64. Does there exist a LabView switch or vi for this action?

0 Kudos
Message 1 of 11
(3,532 Views)

a Ring control would be a simple solution

Capture.PNG


"Should be" isn't "Is" -Jay
0 Kudos
Message 2 of 11
(3,529 Views)

can you be more specific about what the control will do?

0 Kudos
Message 3 of 11
(3,523 Views)

The number will choose the number of loops in a for loop, in which the original array is reduced to a subset

0 Kudos
Message 4 of 11
(3,513 Views)

still having a hard time understanding...maybe this?

Example_VI.png

0 Kudos
Message 5 of 11
(3,494 Views)

@apok wrote:

still having a hard time understanding...maybe this?

Example_VI.png


Apok,  That's exactly why we use ring controls like the one in my last postSmiley Surprised  there is no need for all those lookup tables.


"Should be" isn't "Is" -Jay
0 Kudos
Message 6 of 11
(3,491 Views)

@JÞB wrote:
Apok,  That's exactly why we use ring controls like the one in my last postSmiley Surprised  there is no need for all those lookup tables.

did i just 'rube'd' again? Smiley Embarassed

0 Kudos
Message 7 of 11
(3,486 Views)

No real need to look up anything or create an enum.  Just use the Power of 2.vi.

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
0 Kudos
Message 8 of 11
(3,475 Views)
Solution
Accepted by topic author muonlab

@apok wrote:

@JÞB wrote:
Apok,  That's exactly why we use ring controls like the one in my last postSmiley Surprised  there is no need for all those lookup tables.

did i just 'rube'd' again? Smiley Embarassed


Nah, that won't get you Rube'd, just schooled.  Forum participation is often a source of learning for all of us.   Keep on dishing what you know!


"Should be" isn't "Is" -Jay
0 Kudos
Message 9 of 11
(3,466 Views)

Thank you all for your attention. And Jeff, thank you for your very elegant solution! The students will be grateful for not having to bother with arrays!

Message 10 of 11
(3,451 Views)