
WayneA
Good Morning,
Could the members of the community with fast computers please run this script for me and tell me the CPU load from EZ-Builder. For me, when I run this script my CPU process from ARC is 50 percent. If you have something at D20,D21,D22 just comment the PWM statements out.Code:
:loop
REPEAT($x,0,100,10)
PWM(D20,$x)
PWM(D21,$x)
PWM(D22,$x)
print($x)
ENDREPEAT
If ($x = "100")
REPEAT($x,100,0,10)
PWM(D20,$x)
PWM(D21,$x)
PWM(D22,$x)
ENDREPEAT
ENDIF
goto(loop)
Thank You
Wayne A
It looks like ramping of the PWM from 0 to 100, that's 100 commands, at 9500 per second you wont get any noticeable ramping.
CPU load isn't really the thing to be looking at just yet.
Does the script have to run that fast? Can you put some sleep commands in so you are not using up so much processor?
Code: