Compiled S-Function Not Found Error

Hi,
I am getting an error,
"Error in S-function 'OpenLoop/FAST Nonlinear Wind Turbine/S-Function': S-Function 'newname' does not exist",
when I try to use an S-Function in my Simulink simulation. The function was written in FORTRAN and MEXed successfully. When the error is displayed, "newname" (the file name) is highlighted, and when I click on it, MATLAB opens the binary file in the editor.
When I try "which newname", I get "newname not found". When I try "exist newname", I get 2. The file does not show up when I try "what".
The function was compiled on my PC running Ubuntu using the Intel FORTRAN compiler. The file extension is mexglx.
Thanks!
Jon

답변 (1개)

Kaustubha Govind
Kaustubha Govind 2013년 1월 15일

0 개 추천

What does MATLAB return when you type "mexext" at the prompt? If it returns mexa64, then you need to compile your MEX-function as a 64-bit binary. The extension .mexglx is for 32-bit Linux.

카테고리

도움말 센터File Exchange에서 Simulink Coder에 대해 자세히 알아보기

제품

태그

질문:

Jon
2013년 1월 15일

댓글:

2022년 12월 30일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by