ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

case selection

Hi,
 
I want to select different cases based on one parameter, for example,  if 'integration time' is 8 s, then choose case 1, and if 'integration time' is 16 s, then choose case 2, ... Is there an easy way to do this?
 
Thanks! 
0 Kudos
Message 1 of 5
(3,053 Views)
Yes.  You can wire the integration time to the Case Selector  (the ?).  Then you can put 8 into 1 case, 16 into another, ..... at the header of the cases.


Message Edited by Ravens Fan on 03-26-2008 05:25 PM
0 Kudos
Message 2 of 5
(3,051 Views)
Thanks very much. Then how can I make the case selector a drop-down selectable manu, instead of an arbitrary integer number? 
0 Kudos
Message 3 of 5
(3,031 Views)


scoccer wrote:
Thanks very much. Then how can I make the case selector a drop-down selectable manu, instead of an arbitrary integer number? 


You could use a Ring control, or better yet an Enum control.

This is pretty basic LabVIEW.  I would highly recommend looking at the online LabVIEW tutorials.
LabVIEW Introduction Course - Three Hours
LabVIEW Introduction Course - Six Hours

0 Kudos
Message 4 of 5
(3,023 Views)


scoccer wrote:
Thanks very much. Then how can I make the case selector a drop-down selectable manu, instead of an arbitrary integer number? 


You CANNOT make a case selector as a drop-down menu instead of an integer.

But, you can always wire a drop-down control's value [ Ring/Enum control] directly to the case selector terminal.

For an enum, the case structure will direcly adapt to the data string. Similarly for a Tab control also...

- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 5 of 5
(3,007 Views)