Is it possible to have strings as I/O for S-function blocks?
20 views (last 30 days)
Show older comments
MathWorks Support Team
on 6 Apr 2020
Answered: MathWorks Support Team
on 6 Apr 2020
There is an example model where I want to have that the Simulink S-Function block accepting inputs and outputs to a S-function as strings.
I was hoping to have the function below been modified as shown:
ssSetInputPortDataType( S, eIN_STRING, SS_UINT8 );
Modified version:
ssSetInputPortDataType( S, eIN_STRING, SS_STRING);
Is there a possibility to make this happen?
Accepted Answer
MathWorks Support Team
on 6 Apr 2020
Including a string I/O is a documented limitation of S-Functions for both MATLAB and C. Please see the following link:
It is suggest to use UINT8 as probably the best workaround.
0 Comments
More Answers (0)
See Also
Categories
Find more on Simulink Functions in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!