Path: news.mathworks.com!not-for-mail
From: Ashok Charry <acharry@mathworks.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Simulink crashes when using fixed point sqrt
Date: Fri, 06 Jun 2008 13:02:49 -0400
Organization: The MathWorks, Inc.
Lines: 31
Message-ID: <C46EE5F9.D1FD%acharry@mathworks.com>
References: <g1p353$88r$1@fred.mathworks.com> <g1p48m$lvc$1@fred.mathworks.com>
NNTP-Posting-Host: acharry-macpro.dhcp.mathworks.com
Mime-Version: 1.0
Content-Type: text/plain;
Content-Transfer-Encoding: 7bit
X-Trace: fred.mathworks.com 1212771770 22786 144.212.109.85 (6 Jun 2008 17:02:50 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 6 Jun 2008 17:02:50 +0000 (UTC)
User-Agent: Microsoft-Entourage/11.3.6.070618
Thread-Topic: Simulink crashes when using fixed point sqrt
Thread-Index: AcjH9yYXZOUX2jPqEd20MwAX8gC2Lg==
Xref: news.mathworks.com comp.soft-sys.matlab:472577



Hi Kevin, 
Would it possible for you to attach/send me a model that reproduces this
problem? Also, what was the type of your input the first time and then the
second time?
I may be able to help you if I have some more information.
Thanks,
Ashok Charry
The MathWorks Inc.



On 5/30/08 10:51 AM, in article g1p48m$lvc$1@fred.mathworks.com, "Kevin"
<kedecuyp@mathworks.com> wrote:

> "Kevin " <kedecuyp@mathworks.com> wrote in message
> <g1p353$88r$1@fred.mathworks.com>...
>> Hello
>> I'm trying to use the fixed-point toolbox with Simulink, but
>> I have some problems with it.
>> My version of Matlab is 2007a
>> To start with an easy one (or so I thought), I connected a
>> constant block to an sqrt one (from 'math function') and
>> then to a scope.
>> I first set the sqrt output to a 16bits long word, and there
>> was no problem. When I input more, the simulation doesn't
>> start but doesn't return any error message. From that moment
>> on, every simulation will fail, even I put double as the
>> output type. I have to restart Matlab.
>> Where did I go wrong?
> By 'more', I wanted to say 'a word with more bits'