sfunction builder - changing discrete state format

1 回表示 (過去 30 日間)
Ashish Kumar Gupta
Ashish Kumar Gupta 2015 年 10 月 6 日
回答済み: Ginny Zhang 2017 年 1 月 24 日
I am using an s-function builder to write the code and please let me know how to resolve these below issues.
1# I wanted to change the format (data type attributes) of discrete states, to lets say boolean_T or int16_T, but it is getting picked up as real_T.
2# Again, even though I am using data type attributes for Input & Output ports as boolean format, but I see it is not taken as boolean while simulating in Matlab. Ex: Out = ~IN; where IN = 0, OUT shows 255 rather than 1
3. If I select data type attributes for Input/Output ports as lets say signed, WordLenth=16, Fraction as 10. I get Build Error as :- Reference to non-existent field 'compilerName'. Component: S-function Builder | Category: Build error
Thanks in advance for your solution/s.

回答 (1 件)

Ginny Zhang
Ginny Zhang 2017 年 1 月 24 日
hello,did you solve this problem ,it is {. If I select data type attributes for Input/Output ports as lets say signed, WordLenth=16, Fraction as 10. I get Build Error as :- Reference to non-existent field 'compilerName'. Component: S-function Builder | Category: Build error}。

カテゴリ

Help Center および File ExchangeAuthor Blocks Using S-Function Builder についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by