Answers.Body: <p>The final block in the sequence is telling motor D to rotate 1 revolution at 75% power.</p>
  <p>In the description of the problem, it says &quot;and Large Motor was plugged into A.&quot;</p>
  <p>Any chance that is the bug? Put the wire in D instead of A, or change the last block in the program from &quot;D&quot; to &quot;A&quot;.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-04-16T20:05:17.097Z
Answers.Text: Good catch.  Actually, the offending program was changed and I tried, unsuccessfully, to recreate it.  Still wouldn't explain in my mind why two sequential blocks were going off concurrently.
Answers.UserDisplayName: John
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-05-09T20:59:28.863Z
Answers.Text: I was able to duplicate the condition again and captured it on camera.  The video shows the robot moving out and simultaneously lowering an arm which it shouldn't do until it was done moving out.
Answers.UserDisplayName: John
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-04-16T19:00:34.777Z
Answers.LastActivityDate: 2022-04-16T19:00:34.777Z
Answers.UserDisplayName: dfrevert
Answers.Body: <p>Inside of the loop, the motor block tells motors B+C to start and keep running forever.</p>
  <p><a href="https://i.sstatic.net/GKrge.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/GKrge.png" alt="screenshot of motor &quot;on&quot; block" /></a></p>
  <p>However, there is no block that tells motors B+C to stop, so they keep on running even after the loop ends. Adding a block to stop the motor after the loop ends should get the desired behavior.</p>
  <p><a href="https://i.sstatic.net/u3BRV.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/u3BRV.png" alt="screenshot of motor &quot;off&quot; block" /></a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-04-19T14:29:04.087Z
Answers.Text: When the motor is inside a loop, it runs for 25 ms or so and then proceeds to next block, so you don't have to stop the block manually.  And, it doesn't always do this.  In fact, I changed the cord from the "A" motor and the incident hasn't yet repeated.  Not sure how a cord could cause such a problem.
Answers.UserDisplayName: John
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-04-17T14:07:38.827Z
Answers.LastActivityDate: 2022-04-17T14:07:38.827Z
Answers.UserDisplayName: David Lechner
Body: <p><a href="https://i.sstatic.net/iH1sa.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/iH1sa.png" alt="enter image description here" /></a><a href="https://i.sstatic.net/0IC37.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/0IC37.png" alt="enter image description here" /></a>My team created a simple program to drive robot out.  It consists of a MyBlock to drive straight a specified distance and speed utilizing the Gyro sensor.  The program then activates a third large motor to actuate the green large motor block to rotate the motor 45 degrees to activate one of the missions.  On the drive out (MyBlock), the large motor also starts running at the same time instead of sequentially.  Can anyone help me figure out why this occurred?  Drive motors were plugged into B+C, and Large Motor was plugged into A.</p>
  <p>The first picture is just the three blocks.  The little fuzzy interference pattern indicating which block was active (when it glitches) was on both the MyBlock and the Large Motor Green block.  This was confirmed because the robot was still driving out and the arm started rotating.</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-04-12T01:27:39.627Z
Comments.Text: Can you share a screenshot of the program?
Comments.UserDisplayName: David Lechner
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-04-12T15:53:06.240Z
Comments.Text: I will try, but the glitch isn't consistent.
Comments.UserDisplayName: John
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-04-14T15:05:51.153Z
Comments.Text: I have a screenshot, but not sure how to share it in a post.  It's not allowing me to paste the picture, and I don't see a way to attach it.
Comments.UserDisplayName: John
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-04-15T15:45:27.697Z
Comments.Text: If you edit the question, there is an "image" icon you can click on to add the image.
Comments.UserDisplayName: David Lechner
Tags: <ev3><mindstorms><programming>
Title: Multiple Programming Blocks Running at Same Time
UserDisplayName: John
ThreadText: # Multiple Programming Blocks Running at Same Time
  
  (Asked by: username_0 on 2022-04-11)
  
  [![enter image description here](https://i.sstatic.net/iH1sa.png)](https://i.sstatic.net/iH1sa.png)[![enter image description here](https://i.sstatic.net/0IC37.png)](https://i.sstatic.net/0IC37.png)My team created a simple program to drive robot out. It consists of a MyBlock to drive straight a specified distance and speed utilizing the Gyro sensor. The program then activates a third large motor to actuate the green large motor block to rotate the motor 45 degrees to activate one of the missions. On the drive out (MyBlock), the large motor also starts running at the same time instead of sequentially. Can anyone help me figure out why this occurred? Drive motors were plugged into B+C, and Large Motor was plugged into A.
  
  The first picture is just the three blocks. The little fuzzy interference pattern indicating which block was active (when it glitches) was on both the MyBlock and the Large Motor Green block. This was confirmed because the robot was still driving out and the arm started rotating.
  
  **Tags:** ev3, mindstorms, programming
  > **Comments:**
  > **username_1**: Can you share a screenshot of the program?  
  > **username_0**: I will try, but the glitch isn't consistent.  
  > **username_0**: I have a screenshot, but not sure how to share it in a post.  It's not allowing me to paste the picture, and I don't see a way to attach it.  
  > **username_1**: If you edit the question, there is an "image" icon you can click on to add the image.  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_2 on 2022-04-16. Score: 1
  
  The final block in the sequence is telling motor D to rotate 1 revolution at 75% power.
  
  In the description of the problem, it says "and Large Motor was plugged into A."
  
  Any chance that is the bug? Put the wire in D instead of A, or change the last block in the program from "D" to "A".
  
  > **Comments:**
  > **username_0**: Good catch.  Actually, the offending program was changed and I tried, unsuccessfully, to recreate it.  Still wouldn't explain in my mind why two sequential blocks were going off concurrently.  
  > **username_0**: I was able to duplicate the condition again and captured it on camera.  The video shows the robot moving out and simultaneously lowering an arm which it shouldn't do until it was done moving out.  
  
  ---
  
  ### Answer by username_1 on 2022-04-17. Score: 1
  
  Inside of the loop, the motor block tells motors B+C to start and keep running forever.
  
  [![screenshot of motor ](https://i.sstatic.net/GKrge.png)](https://i.sstatic.net/GKrge.png)
  
  However, there is no block that tells motors B+C to stop, so they keep on running even after the loop ends. Adding a block to stop the motor after the loop ends should get the desired behavior.
  
  [![screenshot of motor ](https://i.sstatic.net/u3BRV.png)](https://i.sstatic.net/u3BRV.png)
  
  > **Comments:**
  > **username_0**: When the motor is inside a loop, it runs for 25 ms or so and then proceeds to next block, so you don't have to stop the block manually.  And, it doesn't always do this.  In fact, I changed the cord from the "A" motor and the incident hasn't yet repeated.  Not sure how a cord could cause such a problem.  
  
  ---
  
  