Go to Post The toughest part about that Chairman's Award was the fact that someone was cutting onions in the stands near 558/on the field while it was being read out. At least that was the excuse I'm going to use ;) - esquared [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 26-10-2010, 20:46
kamocat's Avatar
kamocat kamocat is offline
Test Engineer
AKA: Marshal Horn
FRC #3213 (Thunder Tech)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 2008
Location: Tacoma
Posts: 894
kamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nice
Send a message via AIM to kamocat Send a message via MSN to kamocat
Re: How do i add two "True" values

For cases like these, where you have several boolean values that are used in evaluating for several situations, I use what I call a boolean state table to represent the desired functionality.
Here's a screenshot from my old software development guide:


The example this was for had a left and right drive control for inputs 1 and 2, bumper switches on 3 and 4, and an "auto navigation" toggle on input 5.

One way of coding this is to take each row and evaluate it with boolean logic, then bundle the results into a boolean array. With the boolean array you can use the following code:
__________________
-- Marshal Horn
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
cRIO "Magic" Values: Unresponsive Driver Station KRV NI LabVIEW 0 13-02-2009 17:33
"You've Been Sentenced" Robotics Add-On Deck Featured at the Duel on the Delaware Mr MOE General Forum 0 02-10-2008 07:32
Cannot access "double" values chantilly_team Programming 14 06-02-2005 13:39
Is the "Confirmed Game Information" rumor true? MJAdams Rumor Mill 8 02-01-2003 22:41
how tall is the ramp when in "up" and "balanced" position??? archiver 2001 1 24-06-2002 00:54


All times are GMT -5. The time now is 01:03.

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