Hi Jonathan,
I can think of 3 approaches that may fit what you are trying to do.
- Communicate with an external device (button, keyboad, ...)
- Using task Control buttons
- Using the 'handInTarget' block
It is possible to have an external device (such as a button, joystick or keyboard) send messages to the task running on the Kinarm Robot Computer using UDP communication. This approach is very flexible but does require programming by you for the device communication. An example task that does this communication can be found here: https://kinarm.com/download/udp-communication-with-the-robot-computer-and-arduino/
It is also possible to program your task to make use of Task Control Buttons. These are buttons that will appear in the Dexterit-E user interface when a task is run; the operator can click on them perform some function (e.g., release lock on home button) in your task program. For more information on using Task Control Buttons check you the Kinarm Custom Task Programming Guide (for version 3.10, this is in section 10.2).
Finally, are you familiar with the KINARM_HandInTarget block? This is a Simulink block provided in the Kinarm TDK that allows you to know when user has moved the the handle/fingertip into a particular target. You could use this to let your task program know when the subject has reached into the home target or reached one of the outboard targets. You can search in Custom Task Programming guide for 'KINARM_HandInTarget' in order to find an explanation and example of it's use.
I hope one of those options work for your task!
Best,
Paul
Please login or Register to submit your answer