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 CenterFile Exchange에서 Author 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