Kinarm | Interactive Robotics Brain Injury Research

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

Mobile nav

how can I get the data in target table

how can I get the data in target table

Posted on Jul 23, 2019

DWQA Questions › Category: Kinarm End-Point Lab › how can I get the data in target table
0 Vote Up Vote Down
Yihui Xu asked 4 years ago

i created a from block to call the target_table and use the from block as a input of Trial_Control. To get the x y value of home position, can i just make x position=target_table[1][1] or x position=target_table[1][col_x] to get the x value of home?(assume the home target is in the first row of target table)

1 Answers
0 Vote Up Vote Down
Koloman Varady Staff answered 4 years ago

In Trial_Control (which is a C based Stateflow block), the default array numbering is 0 based (this is unlike the rest of Simulink, which is 1 based).
For it to work the way you’re describing (and I recommend you do this), open up Model Explorer and click on Trial_Control. Then select target_table and click on the Description tab and set First Index to 1.
I’ve attached a diagram to help you navigate (the option is placed quite out of the way, in my opinion)

Yihui Xu replied 4 years ago

thank you! but after that how can i get the value of x and y? just call x=Target_Table[1][1] and y=Target_Table[1][2]?

Koloman Varady Staff replied 4 years ago

Yep – that will get you the first row x and y.

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.