Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
User-defined data type und RTW?

Subject: User-defined data type und RTW?

From: Thanh Binh To

Date: 6 Jun, 2003 14:59:32

Message: 1 of 3

Hi,

according to the documentation of simulink, the user-defined data types can
be used in the s-function, so that s-function block can correctly handle
with I/O signals of any user-defined types. we have no problem by compiling
this s-function into C-MEX file and by running our model including this
s-function block. Unforturnately, we can not compile and build our model
using RTW.
There is the following error:
#C0020 identifier "ssRegisterDataType_cannot_be_used_in_RTW" is undefined
#C0020 identifier "ssSetDataTypeSize_cannot_be_used_in_RTW" is undefined

Could anyone tell me how to avoid this problem?
Thanks you very much in advance!

With kind regards

Dr.-Ing. Thanh Binh To

VOLKSWAGEN AG

Subject: User-defined data type und RTW?

From: Sobhi Zeidan

Date: 16 Jan, 2013 21:55:09

Message: 2 of 3

Was this issue ever resolved? I am getting the following using Matlab2007b+
error: `ssGetDataTypeAccess_cannot_be_used_in_RTW' undeclared

"Thanh Binh To" <Thanh-Binh.To@volkswagen.de> wrote in message <bbq36i$k3k2@doiweb4.wob.vw.vwg>...
> Hi,
>
> according to the documentation of simulink, the user-defined data types can
> be used in the s-function, so that s-function block can correctly handle
> with I/O signals of any user-defined types. we have no problem by compiling
> this s-function into C-MEX file and by running our model including this
> s-function block. Unforturnately, we can not compile and build our model
> using RTW.
> There is the following error:
> #C0020 identifier "ssRegisterDataType_cannot_be_used_in_RTW" is undefined
> #C0020 identifier "ssSetDataTypeSize_cannot_be_used_in_RTW" is undefined
>
> Could anyone tell me how to avoid this problem?
> Thanks you very much in advance!
>
> With kind regards
>
> Dr.-Ing. Thanh Binh To
>
> VOLKSWAGEN AG
>
>

Subject: User-defined data type und RTW?

From: Phil Goddard

Date: 17 Jan, 2013 00:31:10

Message: 3 of 3

From the doc (http://www.mathworks.com/help/simulink/sfg/ssregisterdatatype.html)

"The Simulink Coder product does not support S-functions that contain custom data types. Attempting to generate code for a model that contains this macro results in an error."

Phil.

Tags for this Thread

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.

Contact us