1 / 10

Program Flow

Program Flow. LabVIEW Robotics Fundamentals. Unintuition. You know what this program does… So what does this one do?. Inserted code. Unintuition. Nope. until Touch Sensor pressed?. then. then. “Wide” turn with right wheel planted. Move forward. Wait in place 1 second. Unintuition.

neola
Download Presentation

Program Flow

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Program Flow LabVIEW Robotics Fundamentals

  2. Unintuition • You know what this program does… • So what does this one do? Inserted code

  3. Unintuition • Nope until TouchSensor pressed? then then “Wide” turn with right wheel planted Move forward Wait in place 1 second

  4. Unintuition • Nope until Touch Sensor pressed? then “Wide” turn with right wheel planted Move forward 1 sec

  5. Unintuition • Correct answer: • But why? And how do you explain it? until Touch Sensor pressed then Turn in place Move forward 1 sec

  6. Intuition • Commands in LabVIEW follow simple rules: • Commands run when the program reaches them • Robots are very literal

  7. Intuition • Run when the program reaches you • Blocks “pass” control of the program between them as they are done • Motor commands pass control when they are done setting the motor power (usually instantly) • Wait commands pass control when done waiting

  8. Intuition Be the Block Exercise: • One person gets to “be” each command • One person gets to “be” the robot • Use a ball or other prop to represent control of the program

  9. Intuition Set Motors B and C forward! Be the Block Exercise: • Each motor “command” will tell the “robot” to do something, such as “Set Motor C forward” • When done, hand “control” to the next command! • The “robot” should only do exactly what it is told! Okay (walking forward)

  10. Intuition • To see this happen LIVE in LabVIEW: • Turn on Highlight Execution (near the Run button): • Then Run the program; commands will animate to show which one is running! Active command

More Related