Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   Case Structures (http://www.chiefdelphi.com/forums/showthread.php?t=75041)

Pausert 20-02-2009 16:14

Case Structures
 
I need to use a case structure that doesn't use a boolean. I know that if I wire another type of input to the case structure it will fit itself to the type, but is there any other way to change its input and see the cases associated with each type?

Greg McKaskle 20-02-2009 17:10

Re: Case Structures
 
Go ahead and hook up the string, number, or enum. Then click through the diagrams and using the menu items at the bottom you can choose some of the items, or you can type into the label. Be sure to look at examples or manuals to get a feel for the flexibility.

Greg McKaskle

Garii 08-03-2009 13:01

Re: Case Structures
 
Quote:

Originally Posted by Pausert (Post 825610)
I need to use a case structure that doesn't use a boolean. I know that if I wire another type of input to the case structure it will fit itself to the type, but is there any other way to change its input and see the cases associated with each type?

Cases are extremely versatile, all you have to do is wire something to the boolean case node and it will switch to what ever you wire it to. the only other things I'd like to add is that if your doing an array or something like that that the case doesn't always add all the variables available

Shivang1923 14-03-2009 21:51

Re: Case Structures
 
Quote:

Originally Posted by Garii (Post 833085)
Cases are extremely versatile, all you have to do is wire something to the boolean case node and it will switch to what ever you wire it to. the only other things I'd like to add is that if your doing an array or something like that that the case doesn't always add all the variables available

in that case, you right-click and select 'add case after' and it should create a new case with the next variable in the array

Greg McKaskle 15-03-2009 10:50

Re: Case Structures
 
Just to keep the terminology clean, cases/switches don't do arrays at all. The string and enum have a set of values they support, but the thing wired must be a scalar, not an array.

In the case of the enum, it may be useful to use the popup for creating all cases at once, otherwise use the Add before or Add after.

Greg McKaskle


All times are GMT -5. The time now is 20:26.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi