Kinarm | Interactive Robotics Brain Injury Research

  • Products
  • Clinical Applications
  • News
  • Support
  • About Us
  • Contact

Mobile nav

How to flexibly display text messages on screen?

How to flexibly display text messages on screen?

Posted on May 17, 2019

DWQA Questions › Category: Custom Task Development › How to flexibly display text messages on screen?
0 Vote Up Vote Down
Xin Li asked 4 years ago

I am making a task where I am tracking the subject’s points based on performance, and I would like to display the total number of points after each set of reaches. I am trying to use a Show_Target_With_Label block to display this text, but I need to modify the VCODE based on the actual number of points. I have tried using an ASCII Encode Simulink block to try to convert the points (double) to ASCII, and then replacing columns 15:64 of the VCODE, but it’s not working. Any tips on how to do this?

Koloman Varady Staff replied 4 years ago

Hi Xin Li,

A good trick to get the ASCII value of a character is to do: double(‘a’)

To get the ASCII value of a single digit number (say n), I do: double(‘0’) + n

I’d recommend checking out the data visualization sample task https://kinarm.com/download/robot-data-visualization-demo/ – I write a lot of dynamic numbers and a modify a lot of label vcodes in that task.

Cheers,
Koloman

1 Answers
0 Vote Up Vote Down
Xin Li answered 4 years ago

Hi Koloman,

Thanks for the tip! I was able to make it work!

Xin

Support

  • User Guides & Documentation
  • Software Downloads
  • Install/Maintain Your KINARM Lab
  • Training Videos
  • New User Training
  • Creating Custom Tasks
  • Sample Custom Tasks
  • Q&A Forum
  • Publications by Research Area

Products

  • Platform Comparison
  • Kinarm Exoskeleton Lab
  • Kinarm End-Point Lab
  • Kinarm Standard Tests
  • Dexterit-E
  • Dexterit-E Explorer
  • NHP Kinarm Exoskeleton Lab

Clinical Applications

  • Clinical Applications
    • Stroke and TIA
    • Traumatic Brain Injury (TBI)
    • Neurological Disease
    • Pediatric
    • Primarily Non-Neurological
  • Clinical Research Sites
  • Publications

News

  • Kinarm News
  • Events
    • Neuroscience
    • Kinarm Camp
  • Product Notices
  • @KinarmLab Twitter Feed
  • Open Jobs

Support

  • Kinarm Help & Support
  • User Guides & Documentation
  • Software Downloads
  • Installing & Maintaining Your Kinarm Lab
  • Training Videos
  • New User Training
  • Creating Custom Tasks
  • Sample Custom Tasks
  • Q&A Forum

About Us

  • About Us
  • Our People
  • Quality
  • Supplier Requirements
  • End-User License Agreement
  • Intellectual Property
  • Privacy & Terms

Contact

  • Contact Kinarm
    • International Sales Agents
  • Request an Account
footer-logo

140 Railway St. Kingston, ON K7K 2L9 Canada Toll Free: (888) 533-4393 Phone: (613) 507-4393 info@kinarm.com

© Copyright BKIN Technologies. All Rights Reserved

Quality | Privacy Policy | Web design/development by 1dea Design + Media Inc.