Search found 2 matches

by inaba
Tue May 14, 2019 2:50 pm
Forum: SMILE
Topic: S-function in Simulink
Replies: 5
Views: 7426

Re: S-function in Simulink

Thank you, the connection between Matlab and Genie using C++ works! However, Matlab is crashing during simulation in Simulink. It seems to be the GetMatrix() function, as the simulation runs fine without this. Are there alternative ways to extract the probability of a state at a particular node? Pre...
by inaba
Thu May 02, 2019 11:27 am
Forum: SMILE
Topic: S-function in Simulink
Replies: 5
Views: 7426

S-function in Simulink

Hi, I am trying to use an S-function in Matlab to use Genie mid-simulation in Simulink. The model needs to be used in the software Veristand, so I need to build the model and therefore generate a function wrapper in C or C++. Does anyone have an example of an S-function wrapper in C or C++ which cal...