Path: news.mathworks.com!not-for-mail
From: "Kevin " <kedecuyp@mathworks.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: C2000 DSP and Simulink : using a memory-stored variable as a block parameter
Date: Thu, 6 Mar 2008 14:08:01 +0000 (UTC)
Organization: Universite libre de Bruxelles
Lines: 58
Message-ID: <fqots1$jo5$1@fred.mathworks.com>
References: <fqogav$eol$1@fred.mathworks.com> <fqoqve$498$1@fred.mathworks.com>
Reply-To: "Kevin " <kedecuyp@mathworks.com>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1204812481 20229 172.30.248.37 (6 Mar 2008 14:08:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 6 Mar 2008 14:08:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1210415
Xref: news.mathworks.com comp.soft-sys.matlab:455729



Thank you very much! You're being very helpful

But just for further developpements, is it possible to
dynamically change block parameters on the DSP without
creating custom blocks?

"Antonin Ancelle" <antonin.ancelle@mathworks.com> wrote in
message <fqoqve$498$1@fred.mathworks.com>...
> Hi Kevin,
> 
> I am going to send you a direct email with a burst model
of a PI controller 
> where you can dynamically change the parameters.
> It has no D component, but you can easily add it if you
have a need for it.
> It is more conventional than the TI version in the sense
that the P 
> component is not cascaded with the I.
> 
> On the TI version if you put P = 0, the rest will be 0
regardless of what I 
> or D component you have.
> 
> I will let you play with it.
> 
> Good luck,
> 
> Antonin.
> 
> 
> "Kevin " <kedecuyp@mathworks.com> wrote in message 
> news:fqogav$eol$1@fred.mathworks.com...
> > Hello,
> >
> > I've been toying with the C2000 toolbox for a little while
> > now, but I'm hitting a wall on this one.
> >
> > What I'm trying to do is a PID controler whose parameters
> > can be changed by an external source or using a RTDX
channel.
> > In fact this problem might arise for every block whose
> > parameters can't be specified from the outside.
> >
> > Now I could create the controler with basic Simulink blocks,
> > but I want to use to more efficient PID-Controler from the
> > DMC library.
> >
> > Since the C2000 doesn't have a workspace, I tried to use the
> > "Memory Copy" block from the Link for Code Composer Library
> > with no results since the parameters must come from the
> > workspace.
> >
> > Is there a way to tell the block the the value of a
> > parameters must be taken from memory and not from the
workspace? 
> 
>