p*s 发帖数: 30 | 1 I am writing an M-file based s-function in Simulink, I need multi-outputs.
The documentation is poor, I think, mabye I just don't have the patience to
go through all the corners to find my answer.
anyway, I figured it out by try and error. I list my solution here, hope
it helps.
Simulink provides a standard template, which is too complicated and not very
well explained. For my application, I just use the 'timestwo' example as the
template.
Following those steps,
Inside the s-function
(1) go to t | c****w 发帖数: 565 | 2 if you want to go with s-function for your rest of research life, i strongly
suggest you learn C-type s-function. That will give you more flexiblity.
Long time ago, I made a common comment on it, you can check here:
http://www.simwe.com/forum/viewthread.php?tid=205002 |
|