We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
I try to animate the program execution based on the Q&A from tech support. But I still not sure how I am going about doing it. The explanation is very poor. I don't know whether should I actually insert the ANIMATE function at every single on my source code? or there is a way to enter the function on DSCOPE window. COuld any body in this forum shred some light into this topic? Here is the post: DSCOPE: IS THERE AN ANIMATE MODE? QUESTION How 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. ANSWER The 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. --------------------------------------------------------------------------------