User Defined Function Example icon User Defined Function Example Add custom EZ-Script functions in C# or JS; intercept unknown calls, parse parameters and return values via AdditionalFunctionEvent. Try it →
Tutorial
United Kingdom
YouTube
Published — Updated

The ARC Script Manual.

Step 19 of 21
W.)

WaitFor( expression, [timeout MS] ) Pauses the execution of a script until the specified expression is true. Optionally, the timeout parameter will stop waiting after the specified number of milliseconds. Example: WaitFor($AutoPositionStatus = 0) Example: WaitFor($value1 = $value2) Example: WaitFor($value1 = $value2, 1000)

WaitForChange( value, [timeout MS] ) Pauses the execution of a script until the specified value has changed. Optionally, the timeout parameter will stop waiting after the specified number of milliseconds. Example: WaitForChange($x) Example: WaitForChange(GetServo(d0)) Example: WaitForChange(GetDigital(d0)) Example: WaitForChange(GetDigital(d0), 1000)

WaitForServoMove (servoPort, [timeout MS]) Waits for the specified servo to move. Unlike Servo_Wait, this function does not wait for a specific value. It simply returns once the servo has moved to a new position. Optionally, the timeout parameter will stop waiting after the specified number of milliseconds. Example: WaitForServoMove(d0) Example: WaitForServoMove(d0, 1000)

WaitForSpeech( timeOut Seconds, phrases ) Pauses and waits for one of the specified phrases to be spoken. Returns the phrase that was spoken. Will return "timeout" if no word is detected in the specified timeout length. Example: WaitForSpeech(30, "Yes", "No") Example: $value = WaitForSpeech(30, "Yes", "No")

WaitUntilTime( hour, minute ) Waits until the specified time. The script will stop at this command and not continue until the specified time. The time is declared in 24 hour format. Example: WaitUntilTime(17, 30)


ARC Pro

Upgrade to ARC Pro

Synthiam ARC Pro is a new tool that will help unleash your creativity with programming robots in just seconds!