MATLAB error MATLAB error message:

Parameters must be of type double or char for Real-Time Workshop if the S-function does not have TLC. what should i do?

답변 (1개)

Kaustubha Govind
Kaustubha Govind 2012년 4월 12일

0 개 추천

The error message seems pretty clear - your S-function can only have double or char type parameters to be supported for code-generation. What type are you using?

댓글 수: 7

chen
chen 2012년 4월 12일
i'm a newer,so how to change the matlb to work around using doubles?
Jan
Jan 2012년 4월 12일
@chean: At first, please describe what you are doing currently to produce the error. It is hard to suggest a modification, if the action is not known.
chen
chen 2012년 4월 12일
i try to run a filter,but it tells me that S-function 't1/AddSub' parameters must be of type double or char for Real-Time Workshop if the S-function does not have TLC.
Kaustubha Govind
Kaustubha Govind 2012년 4월 12일
Did you write that S-function? What are the parameter defined for it, and what are the types?
Jan
Jan 2012년 4월 12일
@chen: Sorry for the typo in the name.
Consider, that you are familiar with the problem and see it directly on your screen, but the readers in this forum do not have the faintest idea about what you are doing. Please add all necessary information by editing the original question, not as comments to an answer. Thanks.
chen
chen 2012년 4월 12일
i was used the model which was in the xilinx blockset,S-function 't1/AddSub' parameters must be of type double or char for Real-Time Workshop if the S-function does not have TLC when i run the model
Kaustubha Govind
Kaustubha Govind 2012년 4월 12일
Are you attempting to generate HDL code? If yes, there is a different process to generate HDL code from Xilinx Blocksets. See page 49 here: http://www.xilinx.com/support/documentation/sw_manuals/xilinx12_2/sysgen_gs.pdf
Also, I would urge you to fix your question like Jan suggested so that this discussion is useful for other users.

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Simulink Coder에 대해 자세히 알아보기

제품

태그

질문:

2012년 4월 12일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by