|
Re: How do i add two "True" values
It looks like boolean operators would help simplify this. For example, where you have several nested case statements in which some of the cases do nothing, you could just have the appropriate ands, ors, xors, nots, etc. leading to a single case. Do a little exploration of the boolean pallete (functions >> programming >> boolean) with context help. And then maybe try some truth tables with all possible inputs and their desired outputs to figure which ones you need to use.
edit: The link Ether posted below explains all the boolean operators (except implies, but that's a derived one anyway) available on the boolean pallete. It also has the "truth tables" I was talking about, showing all pairs of inputs and their associated output. Also, check out the "Select" VI (also on the boolean pallete) for picking motor speeds. With some of the boolean tools you might be able to get rid of the case statements all together.
Last edited by Aren Siekmeier : 23-10-2010 at 17:12.
|