Get parameter into c++ s-function

1 回表示 (過去 30 日間)
Gurkenglas
Gurkenglas 2015 年 9 月 13 日
編集済み: Gurkenglas 2015 年 9 月 13 日
Hi,
I am trying to get a paramter via the s-function paramters field into the s- function. This works, but I need to get the paramter globally, because I need to use the paramter in other c++ functions, that doesnt have acces to the Simstruct S. This means, the following does work in Matlab, but other c++ functions in the s-function doesnt know Simstruct:
#define some_param(S) ssGetSFcnParam(S,0)
I need the following without any reference to the Simstruct S, but it doesnt work:
#define some_param ssGetSFcnParam(S,0)
I just need the paramter, the value that is stored in this paramter, no pointers or other stuff. I hope this is explained good enough. What can I do now? Thanks.

回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by