Chapter 10 Application Programmer’s Interface
10-12 ER1 User Guide
Set Command
The set command is used to adjust settings which affect other commands.
These settings are 'sticky' in that they apply until reset to other values or until the API
session ends. The limits are generally the same as for the corresponding commands in the
GUI.
Set Voice
Format:
set voice <voice name>
This overrides the default voice for all subsequent play phrase and play file commands for
.txt files.
Example:
set voice 'Microsoft Mary'
Set Linear Velocity
Format:
set linear velocity <velocity>
Alternate format:
set v <velocity>
This command sets the linear velocity, in cm/sec for all motion types.
If a motion doesn't support the velocity, it will be minimized or maximized against the
limit. For example, the move drive toward <object> command is limited to 30
cm/sec but the 'move 30 inches' command allows a maximum velocity of 50
cm/sec. If the linear velocity is set to 50 cm/sec, and you issue a 'move drive
toward' command, the velocity will be limited to 30 cm/sec automatically.
Examples:
set linear velocity 10
set v 47
Set Angular Velocity
Format:
set angular velocity <velocity>
Alternate form:
set w <velocity>
The angular (rotational) velocity is set in degrees/sec. Otherwise, this command is similar
to
set linear velocity in that it affects all motion types.