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
Please login or Register to submit your answer