View Single Post
  #2   Spotlight this post!  
Unread 10-07-2013, 01:21
nicholsjj's Avatar
nicholsjj nicholsjj is offline
Registered User
AKA: John Nichols
no team (Devil Bots)
Team Role: Coach
 
Join Date: Jan 2013
Rookie Year: 2011
Location: Murpyhsboro, IL.
Posts: 261
nicholsjj has a brilliant futurenicholsjj has a brilliant futurenicholsjj has a brilliant futurenicholsjj has a brilliant futurenicholsjj has a brilliant futurenicholsjj has a brilliant futurenicholsjj has a brilliant futurenicholsjj has a brilliant futurenicholsjj has a brilliant futurenicholsjj has a brilliant futurenicholsjj has a brilliant future
Re: Getting used to Labview 'logic'

This page is a good start on the basic types of programming structures http://en.wikipedia.org/wiki/Structured_programming

A very simple view of the three basic labview structures would be...

While: A programming structure that will repeat as long as(while) the condition set in the loop exists. This can be through time, sensor data, loop iteration etc...

Sequence: A programming structure that will carry out events in order from left to right(in sequence). The best way to look at this structure is as a movie real or newspaper cartoon. The structure will go frame by frame. Our team used this structure to run our autonomous routine this year.

Case: A programming structure that will run an event based on a Boolean input of true or false.(the stated case) Let's say you have a button that returns the value of 0 when not pressed and 1 when pressed. You use a case to run a different VI for when the button is and isn't pressed.
__________________
2011-FRC Team 3862, Team Captain
2012-FRC Team 3862, Strategy Mentor
2013-FRC Team 3885, Programming Mentor, Razorback Regional, Curie Inspector
2014- FRC Team 3885, Programming Mentor, Arkansas Regional, Newton inspector
2015-??? Teacher Murphysboro High School


“They call it coaching but it is teaching. You do not just tell them…you show them the reasons.”- V. Lombardi

Reply With Quote