| |||||
Technical Support Support Resources
Product Information | DSCOPE: IS THERE AN ANIMATE MODE?QUESTIONHow do I make dScope rapidly single-step through my program? I want an animate feature that makes dScope run in "DEMO" mode. This way, I can see the lines of code that are running. ANSWERThe following dScope function does what you want. You may want to switch into MIXED mode when viewing the DEBUG window.
func void animate (char delay) {
while (1) {
int i;
exec("t");
for(i=25*delay; i!=0; i--);
}
}
When you want to animate program execution, enter the following in the command window: animate (1) The argument passed to the animate function determines how fast lines are executed. The smaller the number, the faster your program runs. A value of 0 provides no delay. A value of 10 steps through your program slowly. Try 5 as a starting point. If your PC is slow, you may want to change the step weight (25*delay) to something like 10*delay. Last Reviewed: Monday, June 07, 2004 | ||||
| |||||