<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!DOCTYPE document PUBLIC "-//CNX//DTD CNXML 0.5 plus MathML//EN" "http://cnx.rice.edu/cnxml/0.5/DTD/cnxml_mathml.dtd">
<document xmlns="http://cnx.rice.edu/cnxml" xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="None">
  <name>Summary, Tips, and Tricks on Making Decisions in a VI</name>
  <metadata>
  <md:version>**new**</md:version>
  <md:created>2004/06/28 12:41:29.746 GMT-5</md:created>
  <md:revised>2004/06/28 12:42:13.344 GMT-5</md:revised>
  <md:authorlist>
      <md:author id="NationalInstruments">
      <md:firstname>National</md:firstname>
      
      <md:surname>Instruments</md:surname>
      <md:email>certification@ni.com</md:email>
    </md:author>
  </md:authorlist>

  <md:maintainerlist>
    <md:maintainer id="mshiralkar05">
      <md:firstname>Malan</md:firstname>
      
      <md:surname>Shiralkar</md:surname>
      <md:email>mshiralkar05@hotmail.com</md:email>
    </md:maintainer>
    <md:maintainer id="harika">
      <md:firstname>Harika</md:firstname>
      
      <md:surname>Basana</md:surname>
      <md:email>ilsai@rice.edu</md:email>
    </md:maintainer>
    <md:maintainer id="lizzardg">
      <md:firstname>Elizabeth</md:firstname>
      
      <md:surname>Gregory</md:surname>
      <md:email>lizzardg@rice.edu</md:email>
    </md:maintainer>
    <md:maintainer id="NationalInstruments">
      <md:firstname>National</md:firstname>
      
      <md:surname>Instruments</md:surname>
      <md:email>certification@ni.com</md:email>
    </md:maintainer>
  </md:maintainerlist>
  
  <md:keywordlist>
    <md:keyword>National Instruments</md:keyword>
    <md:keyword>LabVIEW</md:keyword>
    <md:keyword>Select</md:keyword>
    <md:keyword>Case</md:keyword>
    <md:keyword>Formula Node</md:keyword>
  </md:keywordlist>

  <md:abstract/>
</metadata>

  <content>
    <list id="l1">
      <item>
	The <code>Select</code> function selects between two inputs
	dependent on a third Boolean input.
      </item>
      <item>
	A <code>Case</code> structure has two or more subdiagrams, or
	cases. Only one subdiagram is visible at a time, and the
	structure executes only one case at a time.
      </item>
      <item>
	If the case selector terminal is a Boolean value, the
	structure has a <code>True</code> case and a
	<code>False</code> case. If the selector terminal is an
	integer, string, or enumerated type value, the structure can
	have up to 
	<m:math>
	  <m:apply>
	    <m:minus/>
	    <m:apply>
	      <m:power/>
	      <m:cn>2</m:cn>
	      <m:cn>31</m:cn>
	    </m:apply>
	    <m:cn>1</m:cn>
	  </m:apply>
	</m:math> cases.
      </item>
      <item>
	Inputs are available to all subdiagrams of a <code>Case</code>
	structure, but subdiagrams do not need to use each input. If
	at least one output tunnel is not defined, all output tunnels
	on the structure appear as white squares.
      </item>
      <item>
	When creating a subVI from a <code>Case</code> structure, wire
	the <code>error input</code> to the selector terminal, and
	place all subVI code within the <code>No Error</code> case to
	prevent the subVI from executing if it receives an error.
      </item>
      <item>
	<code>Formula Nodes</code> are useful for equations that have
	many variables or are otherwise complicated and for using
	existing text-based code. Each equation statement must
	terminate with a semicolon (<code>;</code>).
      </item>
    </list>
  </content>
  
</document>
