キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

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 件の賞賛
メッセージ1/5
3,346件の閲覧回数
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 件の賞賛
メッセージ2/5
3,344件の閲覧回数
Thanks very much. Then how can I make the case selector a drop-down selectable manu, instead of an arbitrary integer number? 
0 件の賞賛
メッセージ3/5
3,324件の閲覧回数


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 件の賞賛
メッセージ4/5
3,316件の閲覧回数


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 件の賞賛
メッセージ5/5
3,300件の閲覧回数