Quote:
Originally Posted by chriz4gx
I just had a quick question about that my team is doing the same code but with different motors. But we want that the sequence repeats itself 3 times(For each frisbee) and then it sets the output of those motors to 0, how would I do that?
|
FOR LOOP
Separate out the last frame (the set all to zero) and place the three Motor Set output out off to the right. (remove the last empty frame). Wire up the 3 MotorControlDevRef to each of the three. Then put a For Loop around JUST the "Flat Sequence Structure". Do not include the three (3) "MotorContolRefNum Registry Get" keep them off to the left or the last three Motor Sett Output keep them off to the right. Right click on the Auto Indexing terminals on the right side of the For Loop where the wires are now broken and select "Tunnel Mode > Last Value"
Create a constant from the For Loop Count Terminal [N] and set it to '3'