Matlab Engine Library for Zero-Crossing Detection
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hi,
i am working with generated code from a simulink model (rapid simulation target) . Everything works fine so far, but i would like to access the "ssGetZcSignalName"-method which is defined in the simulink/include/simstruc.h folder. During compilation i receive an "undefined reference" error, because i don't know in which library the method is located.
At the moment i'm linking against the following libraries: m, mwsl_solver_rtw, mat, mx, ut and mwsl_fileio. I could find the method by searching every single file in the matlab bin folder, but that would be very tedious ;-). Can somebody tell me in which library this method is located?
0 commentaires
Réponses (1)
Kaustubha Govind
le 5 Mar 2013
I see it defined in simulink/include/simulink.c, which is supposed to be included in all S-functions by virtue of the lines:
#ifdef MATLAB_MEX_FILE /* Is this file being compiled as a
MEX-file? */
#include "simulink.c" /* MEX-file interface mechanism */
#else
#include "cg_sfun.h" /* Code generation registration
function */
#endif
However, as you can see, it looks like maybe for the RSIM target, the S-function is probably not compiled into a MEX-file, so simulink.c is not included. Perhaps you need to contact MathWorks Tech Support to find out if you should be able to use ssGetZcSignalName in the RSIM target or not?
0 commentaires
Voir également
Catégories
En savoir plus sur General Applications dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!