Thread: Variables
View Single Post
  #2   Spotlight this post!  
Unread 03-02-2011, 23:07
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,795
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Variables

Here are two answers.

The first picture goes to the root of what you need to do to set a solenoid. It doesn't bother to remember the last value sent to the solenoid, because the solenoid will remember whatever it was last set to. It doesn't need to be set to the same value over and over.

The second picture remembers the value from the last button pushed and keeps setting the solenoid to it over and over again even though it's an unnecessary action.

There are still more ways to accomplish this kind of action. These are only examples.
Variables are not used in LabVIEW, a data flow language, the way you'd use them in a procedural language.
Attached Thumbnails
Click image for larger version

Name:	Solenoids.jpg
Views:	37
Size:	50.1 KB
ID:	9956  
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 03-02-2011 at 23:36.
Reply With Quote