Home Questions how can I display reaction and movement time on subject’s screen and disable or enable it in task protocal?

how can I display reaction and movement time on subject’s screen and disable or enable it in task protocal?

DWQA QuestionsCategory: Custom Task Developmenthow can I display reaction and movement time on subject’s screen and disable or enable it in task protocal?
Yihui Xu asked 5 years ago
Hi, I am just a beginner in simulink. I just wonder how can I display reaction time and movement time on subject's screen and is there any way i can disable or enable it in task protocal?
1 Answers
Koloman Varady Staff answered 5 years ago

There is a Show Target with Labels block in our Simulink library. With each target you can show up to 50 characters. The block usually works by showing a set string that comes from the Target table (see section 7.9 of our Creating Task Programs for Dexterit-E 3.7 guide) but you can change the vcode the block outputs to change the label dynamically.

The vcode is a 1x70 vector and the characters it shows are elements 15:64. So if you want to write "1.23 s", you'd have to convert that to ASCII (see http://www.asciitable.com/), which would be [49 46 50 51 32 115]. You then append 00 (a null character) to terminate the string.

In a MATLAB function block, it would look like

vcode(15:21) = [49 46 50 51 32 115 00]

 

Please refer to our sample tasks for examples
https://kinarm.com/download/dynamic-text/
https://kinarm.com/download/robot-data-visualization-demo/

let me know if you have any questions!
Cheers,
Koloman