05-27-2012 12:45 AM
Hello,
I have a model containing a c-code s-function.
The model runs fine in Simulink, where the s-function is also compiled to a mexw32.
Then a dll is generated for Veristand 2011, using RTW and the veristand.tlc.
In Veristand, the results are the same as in Simulink. But at some point in time, I have a numerical error in the s-function due to a non-convergence of the solver. (the s-function has its own fixed-step solver inside). This error does not shows up in Simulink with the mexw32 s-function.
I tried to run this dll both on Windows deployment mode and in pharlap deployment on a PXI. I have the same results about the numerical non-convergence, so the problem seems to be in the way the dll is compiled.
What could be the reason for a different behavior in Simulink and in Veristand ?
Any suggestions ?
thanks.
Solved! Go to Solution.
03-22-2013 06:22 PM
04-11-2013 10:10 AM
I see that the original post is pretty old, and that it may have already been solved, but my team has been working through similar problems for a few months. First thing to check would be version compatibility. Keep in mind that even up to NIVS 2012, only RTW 2008 is officially supported.
GSinMN