Kinarm | Interactive Robotics Brain Injury Research

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

Mobile nav

Playing an audible sound

Playing an audible sound

Posted on Feb 24, 2016

DWQA Questions › Category: Custom Task Development › Playing an audible sound
0 Vote Up Vote Down
Duncan McLean Staff asked 7 years ago

I have created a point-to-point reaching task and would like to have a sound effect play when the end target is reached. I have tried a couple of different methods (e.g. (1) creating a triggered subsystem that uses the ‘from media file’ and ‘to audio device’ blocks, (2) using the Matlab functions ‘wavread’ and ‘sound’ in an embedded Matlab function block), but have not been successful in getting any of those to work. I am wondering if anyone has been able to implement sound effects in their tasks?

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

There are a couple of ways to make sounds happen during your task. The best approach will depend on:
a) how real-time does the sound need to be
b) what complexity of sound do you want

If you look in the forums there is a tone player demo. This is a non-real-time sound player where you run a program on the GUI computer that listens for commands from the real-time computer.

You can make use of the Analog outputs on the NI card in your system as well. You would need to connect one of the analog outputs on the B-Box to an amplifier. I’m told these are not the best sounds.

You can also purchase and install real-time compatible sound cards. You will need to look in the Simulink library under Simulink Real-Time->Audio to find the cards that are supported (2015a only, 2019b no longer supports these cards). I’ve known of one person who has gone down this path with success.

 Let me know if you need more help. Cheers!
Duncan

Duncan McLean Staff replied 4 years ago

As an update to this issue – there is now a real-time sound demo task that makes use of the NI card. The task can be found under Sample Custom Tasks.

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.