Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

RSIMGETRTP Problems

63 views
Skip to first unread message

Ed Laurence

unread,
Sep 28, 2009, 6:24:01 AM9/28/09
to
Hi,

I'm developing a standalone GUI which calls an RSIM compiled Simulink model. I'm modifying the dataset used by the model through the parameter structure created using RSIMGETRTP. I've had it working correctly in the past, but I've just added some new blocks to the model, added the necessary initial variables in the workspace and tried to get the parameter structure as before. However now all I get from RSIMGETRTP is a modelChecksum and an empty parameter set. There's no tell-tale errors to point me in the right direction so I'm stumped...

Any suggestions as to what might be going wrong?

Many thanks,

Ed Laurence

Stephen

unread,
Dec 3, 2009, 1:39:21 PM12/3/09
to
I have had similar problems. I set 6 variables as 'Tunable Variables' with 'Inline Parameters" on, but only 4 of the variables show up when I use RSIMGETRTP. I confirmed that all 6 parameters are set as tunable in the Simulink model.

I'm running Matlab R2009a with Real-Time Workshop version 7.3.

- Steve

"Ed Laurence" <eclau...@yahoo.co.uk> wrote in message <h9q2s1$6g5$1...@fred.mathworks.com>...

Matthew Landowski

unread,
Jun 2, 2010, 12:24:04 PM6/2/10
to
"Ed Laurence" <eclau...@yahoo.co.uk> wrote in message <h9q2s1$6g5$1...@fred.mathworks.com>...


I believe it is because some of the Simulink blocks do not have the ability to be tunable. You can tell Simulink you want them to be tunable, but that doesn't mean that RSIMGETRTP is going to pick them up as tunable.

You can replace it with a custom block, mask it, and make sure the tunable check box is marked for the parameters you want to be tunable.

-I've tried making custom blocks over blocks that don't appear to have tunable variables to try and get them to be tunable that way. However, that method didn't work for me.

Hope this helps in some way GL!

0 new messages