Path: news.mathworks.com!not-for-mail
From: "Justin " <jflores_666@yahoo.com>
Newsgroups: comp.soft-sys.matlab
Subject: Using finite signals in Simulink
Date: Wed, 4 Nov 2009 02:05:22 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 1
Message-ID: <hcqnh2$2sk$1@fred.mathworks.com>
Reply-To: "Justin " <jflores_666@yahoo.com>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1257300322 2964 172.30.248.35 (4 Nov 2009 02:05:22 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 4 Nov 2009 02:05:22 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1962318
Xref: news.mathworks.com comp.soft-sys.matlab:582221


We are using simulink in order to play a finite file. We converted an audio file into a sample and time array and are using the from workspace simulink block in order to upload the needed data. However, before we can see the data on a scope, the signal has already passed through the system, and therefore we cannot see anything but 0. What we want to do is to essentially trigger the sending of the signal  whenever we so choose (i.e. a switch). However, whenever we use a switch the signal is sent in the background. Is there a way to permanently save the signal from workspace into the simulink model and then trigger it when we want it to send? We have already attempted to use an embedded matlab function in order to load the data from workspace but it gives an error about command duality.