Path: news.mathworks.com!not-for-mail
From: "Spencer " <spencer.a.murray@vanderbilt.edu>
Newsgroups: comp.soft-sys.matlab
Subject: Audio Output in Simulink with Real-Time Windows
Date: Mon, 13 May 2013 21:03:11 +0000 (UTC)
Organization: Vanderbilt University
Lines: 10
Message-ID: <kmrkef$dms$1@newscl01ah.mathworks.com>
Reply-To: "Spencer " <spencer.a.murray@vanderbilt.edu>
NNTP-Posting-Host: www-04-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: newscl01ah.mathworks.com 1368478991 14044 172.30.248.35 (13 May 2013 21:03:11 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 13 May 2013 21:03:11 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2472275
Xref: news.mathworks.com comp.soft-sys.matlab:795477

Hello, 

       I'm currently using Windows Real-Time Target to connect to a CAN communication device in Simulink. A user manipulates a device and our model determines whether or not a specific task is achieved. When the task is achieved I need the Simulink model to output any noise (a beep, a ding, a gong, a popular song) to let the user know they achieved their goal without the experimenter interacting with them. Is there any way to output a sound over my computer's audio hardware when I'm connected with the Real-Time Windows Kernel? 

I've tried using the "To Audio Device" block, but I am unable to build my model when the block is used. The error returned does not explain the conflict; "Error(s) encountered while building model" is all it says. I have also tried using "MATLAB Function" blocks with the "beep" command ( using coder.extrinsic('beep') ) . This works when I am not in "external mode", but when I am communicating with our system with the external mode the beep no longer plays. 

Any help would be greatly appreciated. 

Thanks,
Spencer