sfunction builder - changing discrete state format

1 visualización (últimos 30 días)
Ashish Kumar Gupta
Ashish Kumar Gupta el 6 de Oct. de 2015
Respondida: Ginny Zhang el 24 de En. de 2017
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.

Respuestas (1)

Ginny Zhang
Ginny Zhang el 24 de En. de 2017
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}。

Community Treasure Hunt

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

Start Hunting!

Translated by