Home Examples Position Control – by Velocity or Duration
AdvancedPosition Control

Position Control – by Velocity or Duration

This task is a slightly more complex version of the position control demo. In the original position control demo, you can only specify the duration of the trajectory, that is how long the robot arm takes to reach the target position. This version of the position controller demo allows you to specify the peak velocity of the trajectory or the duration. This is useful if you would like to maintain a constant movement profile for reaches of differing distances.

The trial protocol table has two new columns: “Trajectory Velocity” for the desired peak velocity (cm/s), and “Duration Velocity Select” which is used to select between the duration and the velocity when moving the robot.

Last tested in Dexterit-E 3.10 and MATLAB 2015a.

Related Tasks

Coding Tips
Persistent Variables
Persistent variables are ones that hold their value between calls to the embedded MATLAB code they are defined in.
Coding Tips
Custom Control of the Trial Protocol Order
Normally, Dexterit-E manages and controls the order in which Trial Protocols (TPs) execute based on what is defined in the block table of the Task Protocol (see the Dexterit-E User Guide for more details).