Kinarm | Interactive Robotics Brain Injury Research

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

Mobile nav

Query about dynamic generating sounds

Query about dynamic generating sounds

Posted on May 19, 2020

DWQA Questions › Category: Custom Task Development › Query about dynamic generating sounds
0 Vote Up Vote Down
Yokhesh Krishnasamy Tamilselvam asked 3 years ago

Hi,
I am using the Tone player simulink model to generate sounds. But, in my task, the participant is required to follow a track and if the participant deviates from the task, i want a sound signal to keep beeping until the participant gets back into the track. And this should continue till the end of the task until they reach the end of the track.
But, the problem that i am facing is that the trigger subsystem in the Tone player model which contains the blocks responsible for the sending the signals gets activated once and then stops.
And if i put it in a loop in stateflow then it stays activated and generates sound even when the participant is inside the track. How do i turn on and turn off sound generation subsystem when i need to?
Please let me know.
Regards,
Yokhesh

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

Hi Yokhesh,
Parallel states in Stateflow will accomplish what you want. MATLAB has lots of documentation on how parallel states work. The quick version is:

  1. Create a large state to contain the parallel sub states
  2. Right click the state and set the decomposition to “AND (parallel)”
  3. Add 2 large “sub states”
  4. The main task logic will be in one of the sub states, the other will be the tone playing system
  5. In the main task logic you can trigger the tone playing states to enter or exit the tone playing state
  6. The tone playing state would need to use the “duration” of the tone to wait in between the e_Play_Tone events

I hope that helps. Please let us know if we can provide any more information.
All the best,
Duncan

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.