Kinarm | Interactive Robotics Brain Injury Research

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

Mobile nav

Movement time calculation in stateflow

Movement time calculation in stateflow

Posted on Aug 22, 2016

DWQA Questions › Category: Custom Task Development › Movement time calculation in stateflow
0 Vote Up Vote Down
Joseph Galea asked 6 years ago

What is the easiest way to calculate movement time within stateflow? I would like to calculate movement time from target appearing to pts reaching that target. I do not simply want to use: after (specified_time, e_clk) but actually create a movement time parameter. I will then use this value to determine movement time feedback. I cannot seem to work out how to use e_clk or if there a timer I can use…
 
 

1 Answers
0 Vote Up Vote Down
Duncan McLean Staff answered 6 years ago

Hello Dr Galea,
The easiest way to calculate times would be to use a Counter block as an input to State Flow. You should use a 32 bit counter with the update rate set to 0.001. That will give you a relative time in milliseconds since the model started running. You would just need to grab the current time before the movement starts and when the movement ends.
Please let me know if that helps or if I can be of more assistance.
Cheers!

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.