- Version
- Download 329
- File Size 235 KB
- File Count 1
- Create Date August 22, 2023
- Last Updated September 9, 2025
Position controller
This task demonstrates how to move the subjectโs arm smoothly while using the Position Controller block.ย It will move the subjectโs arm alternatively between 4 target locations.
Forces/torques will be commanded to the Kinarm as soon as the task starts, and will continue throughout the entire task (i.e. the Position Controller is always on).ย There is a different sample task "Position controller enable/disable"ย which demonstrates how to turn the Position Controller on/off smoothly within a trial, for tasks that need to alternate between free movement and positioning the arm.
In the Trajectory subsystem/Create_Trajectory subsystem, a bell-shaped velocity profileย is calculated between where the hand was at the start of the trialย and the destination target. Using Stateflow, the virtual trajectory is sent point by point to the Position Controller block to create a smooth motion.
This task works on both Endpoint and Exoskeleton Kinarm labs.
Last tested in Dexterit-E 3.10 and MATLAB 2015a.