Thread Subject: Simulink crashes when using fixed point sqrt

Subject: Simulink crashes when using fixed point sqrt

From: Kevin

Date: 30 May, 2008 14:32:03

Message: 1 of 3

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?

Subject: Simulink crashes when using fixed point sqrt

From: Kevin

Date: 30 May, 2008 14:51:02

Message: 2 of 3

"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'

Subject: Simulink crashes when using fixed point sqrt

From: Ashok Charry

Date: 6 Jun, 2008 17:02:49

Message: 3 of 3

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'

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com