Presentation is loading. Please wait.

Presentation is loading. Please wait.

Multitasking Emergency Stop Computer Integrated Manufacturing

Similar presentations


Presentation on theme: "Multitasking Emergency Stop Computer Integrated Manufacturing"— Presentation transcript:

1 Multitasking Emergency Stop Computer Integrated Manufacturing
© 2013 Project Lead The Way, Inc.

2 Multitasks Multitasking Creating Multiple Tasks
Presentation Name Course Name Unit # – Lesson #.# – Lesson Name Multitasks Multitasking Allows multiple operations to occur during the same time window Task main coordinates all tasks Creating Multiple Tasks Example: An emergency stop switch ends all operations within a system Task name (code within task) e.g., task e_stop Task main (code within task main) The operations for each program tasks with multitasks are executed during the same time window but not simultaneously. Each task is performed for a small amount of time in quick succession, resulting in near simultaneous execution.

3 Sample Task “task e_stop()”

4 Task Definition Task Definition declares that a task exists, indicates its name, and specifies its operation Task Definition is entered above task main and follows the same structure as task main

5 Task Call and Control Call and run code from task main
startTask(taskname); stopTask(taskname); stopAllTasks(); //ends all tasks, including task main

6 References Carnegie Mellon Robotics Academy. (2011). ROBOTC. Retrieved from Carnegie Mellon Robotics Academy. (2011). ROBOTC. Retrieved from


Download ppt "Multitasking Emergency Stop Computer Integrated Manufacturing"

Similar presentations


Ads by Google