You are on page 1of 1

Scheduling parameters.

After of the 3 seconds of the starting process message and the start of the motor in the beginning,
immediately, the size sensors are constantly evaluated to see if exist one small block or large
block, they are constantly evaluated using the ‘’switch’’ condition and if some case if true in the
‘’switch’’ condition, the flow code will fall into the case and these cases, all the cases, don’t have
delays, they starts timers to allow that the flow code continue evaluating both sensors size
simultaneously. And when one of this timer finish, this timer activates one flag to determinate that
the determinate process should finish, if not, the cases will show a message indicating that the
process should have finish.

Scheduling Analysis.

We used a structured code of two important parts inside of infinite loop, first part, always asking
information from user (to stop or restart the process) and the second one is the most important
part, where the size sensors are evaluating constantly to see if an object is large or small. We use
this type of code, because using an infinite loop we can evaluating constantly the information from
the user and the size sensors simultaneously, without delays, because we used timers to avoid
problems in the constant poll of the sensors size and information from the user.

Analysis of schedulability thresholds.

Our code is pretty fast, without delays, how we said before, but even this code has a frequency of
the reading of each sensor size, of conveyor belt 1 and conveyor belt 2. We determine that the
conveyor belts should have intermediate speed for get a properly process.

You might also like