Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
FORTRAN S-FUNCTION

Subject: FORTRAN S-FUNCTION

From: Khaled Goweily

Date: 12 May, 2013 12:21:07

Message: 1 of 2

Hi,

I am trying to call a FORTRAN subroutine from Simulink using the level-1 S-Function.

To start i tried to test the timestwo example for level-1 s-function, however when using the mex command i got the following:

>> mex sfun_timestwo_for.f simulink.f
 
  C:\PROGRA~1\MATLAB\R2010A\BIN\MEX.PL: Error: 'simulink.f' not found.
 
??? Error using ==> mex at 222
Unable to complete successfully.

My questions:

1- How to overcome the above issue ?
2- Where to find a comparison between level-1 and level-2 FORTRAN S-FUNCTION ?


N.B: I am using R2010a.

Thanks in advance

Best Regards

Khaled

Subject: FORTRAN S-FUNCTION

From: Phil Goddard

Date: 12 May, 2013 23:54:08

Message: 2 of 2

Assuming you have mex setup correctly to use a supported compiler, check if the compiler is case sensitive to file names.
For instance both the sfun_timestwo_for.F and simulink.F have capital F extensions but you are using lower case.

Phil.

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us