BreakPoint

cancel
Showing results for 
Search instead for 
Did you mean: 

VI of the Day (8/17/09)

Another structure for today, "Case Structure".  Any new tricks for this old dog?

 

Say you have to do one operation the first m iterations of a loop, a different one the next n interations, and so on.  I have seen a lot of clever comparisons using Remainders, moduar arithmetic, etc..  Ever tried dumping the comparisons and entering a range?

 

Tired of adding cases for all of your enumerated types, check out your right-click options.

 

You read the help and say "Great, I can wire a string in there".  You have a special case called "LabVIEW".  Your boss tries it out and enters "LabView" and your VI fails.  He says, "What an idiot, can't even write a simple VI".  You say (or just think) "What an idiot, who would enter 'LabView'".  Before you reach for"To Upper Case", try a right-click.

0 Kudos
Message 1 of 2
(6,006 Views)
I only have one thing to say abut Case Structures.
Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

0 Kudos
Message 2 of 2
(5,983 Views)