Go to Post First is more than a competition it is a family. - amos229 [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 20-02-2009, 16:14
Pausert Pausert is offline
Registered User
FRC #1727 (REX)
Team Role: Leadership
 
Join Date: Jan 2009
Rookie Year: 2007
Location: Maryland
Posts: 69
Pausert is an unknown quantity at this point
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?
Reply With Quote
  #2   Spotlight this post!  
Unread 20-02-2009, 17:10
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,752
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
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
Reply With Quote
  #3   Spotlight this post!  
Unread 08-03-2009, 13:01
Garii's Avatar
Garii Garii is offline
Registered Abuser
AKA: Jared Hankle
FRC #3044 (BE4)
Team Role: Programmer
 
Join Date: Feb 2009
Rookie Year: 2009
Location: New York
Posts: 27
Garii is an unknown quantity at this point
Send a message via AIM to Garii
Re: Case Structures

Quote:
Originally Posted by Pausert View Post
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
__________________
-The Garii- aka Jared Hankle
Ballston Spa Labview Programmer
new team slogan-"Can I Get Some Linux With These Fries?"



Reply With Quote
  #4   Spotlight this post!  
Unread 14-03-2009, 21:51
Shivang1923 Shivang1923 is offline
I make robot go VROOM VROOM!
FRC #1923 (MidKnight Inventors)
Team Role: Programmer
 
Join Date: Feb 2008
Rookie Year: 2008
Location: West Windsor, NJ
Posts: 38
Shivang1923 has a spectacular aura aboutShivang1923 has a spectacular aura about
Re: Case Structures

Quote:
Originally Posted by Garii View Post
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
Reply With Quote
  #5   Spotlight this post!  
Unread 15-03-2009, 10:50
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,752
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
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
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
paper: FIRST Drive Trains and Structures Madison Extra Discussion 18 04-12-2007 17:37
Green light Case Lablabla Technical Discussion 9 16-01-2007 21:53
Compiler has troubles with structures? steven114 Programming 1 21-02-2006 18:28
Question: Carrying Case UIDzero Technical Discussion 10 10-11-2003 14:35
Bone structures x_cat_SHAUN 3D Animation and Competition 1 11-02-2003 18:57


All times are GMT -5. The time now is 18:06.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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