Download presentation
Presentation is loading. Please wait.
Published byLiliana Bell Modified over 9 years ago
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 then until Touch Sensor pressed? “Wide” turn with right wheel planted Move forward then Wait in place 1 second
4
Unintuition Nope then until Touch Sensor pressed? “Wide” turn with right wheel planted Move forward 1 sec
5
Unintuition Correct answer: But why? And how do you explain it? then until Touch Sensor pressed 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: 1.One person gets to “be” each command 2.One person gets to “be” the robot 3.Use a ball or other prop to represent control of the program
9
Intuition 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! Set Motors B and C forward! 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
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.