EZ-Builder Release 2012.08.07.00

Download and install the latest EZ-Builder robot programming software to experience these updates.

Download EZ-Builder
This fantastic release of EZ-Builder includes many new add-ons to make scripting even more powerful! Comfortable with the simplicity of EZ-Script and do not have the time to learn C# or VB? We now introduce variables, math and new commands into EZ-Script!

Changes
- Variable Support
- Math Support
- Variable Watch Control
- Optimized camera support for slower CPU's
- New EZ-Script Control Command: ScriptStartWait
- New EZ-Script Command: Print()
- New EZ-Script Command: Halt()
- EZ-Script GOTO() stack increased
- New EZ-Script Command for Roomba Control: Roomba()
- More Examples within EZ-Builder->File->Examples

Variable Examples

Code:


# Move a servo slowly in increments of 10
# from position 10 to 90

$position = 10

:loop

servo(d1, $position)

print("Position: $position")

Say("$Position")

sleep(1000)

$position = $position + 10

if ($position > 90)
goto(end)

goto(loop)

:end
Say("I'm Done counting!")


Code:


# Simple demonstration of variable usage
# All variables must be assigned before
# being used in a function

say("I'll do some math for you")

$y = 5

$x = 5 + 3 + $y

servo(d1, $x)

say("X equals $x")


Code:


# This script will read the position of
# the servo on D1

$servo = GetServo(d1)

Say("Servo 1 is at position $servo")
#3  
I go on vacation and there are 3 big updates waiting for me! Awesome!
Canada
#4  
DJ,

Is it possible to add ScriptStopWait as well?

I link to different scripts, starting and stopping many within Script Manager.

Sometimes scripts are not getting stopped and I have to currently add Sleep delays.
Could you add ScriptStopWait to overcome this?

Thanks,

Lumpy
Synthiam
#5  
Lumpy, no there isn't - script stop will stop - the issue you are experiencing has been addressed in the thread you started regarding it.