how to create while loop
Altair Forum User
Altair Employee
Answers
-
Submitted by pete on Tue, 03/15/2016 - 10:06.
Hi Yogesh, Normally you would not use a for loop to burn time as it wastes CPU cycles needlessly. So one way to do this is to connect a pulse train block to the GPIO connected to the LED and run the diagram at 100kHz. Set the pulse interval to .06 sec. That will do exactly what you ask, but using interrupts so you can do a lot more with the remaining CPU cycles.
0