Re: Coupling Fortran Code with Simulink




"Marco Polloni" <polloni_marco@xxxxxxxxx> wrote in message
news:1130510446.696568.195360@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Hi everybody.
>
> I'm trying to use a DLL library that contains a Matlab/Simulink model
> in a code written in Fortran.
>
> The problem is that the DLL has been generated automatically by
> Simulink. It is made for Visual C/C++ (which is integrated in my Compaq
> Visual Fortran), but I don't know the name given by Simulink to the
> main function, so I can't get the address of it (I'm following the
> LOADEXP1 example) with getProcAddress.
> How can I get that address?
>
> It seems to me that Simulink models translate the variables in a
> structure: how could I give inputs and get outputs from/to the DLL in
> the right way?
>

Are you sure that the Simulink DLL can be used outside Matlab's namespace?
See:

http://www.mathworks.com/products/ineligible_programs/

Bye,

Hrundi V.B.


.



Relevant Pages

  • Coupling Fortran Code with Simulink
    ... I'm trying to use a DLL library that contains a Matlab/Simulink model ... Visual Fortran), but I don't know the name given by Simulink to the ...
    (comp.lang.fortran)
  • Re: Look at this before considering to use Intel Visual FORTRAN
    ... > FORTRAN is definitely not the first choice. ... > workaround by writing a COM-Wrapper in DVF, so the DLL runs in the DVF ... > Intel Customer Support ...
    (comp.lang.fortran)
  • Re: exporting functions/subs from fortran?
    ... It's nice to hear other developers with your caliber exist. ... Yes I did dismiss the other options regarding the DLL development (in-proc, ... >> but this project is all FORTRAN and I figured this would be a good place ... >> the fact that I'm calling code in an exe from another exe and the first ...
    (comp.lang.fortran)
  • Re: Threading and DllImport
    ... DLL has already been loaded. ... various unpredictable errors from within the FORTRAN code, ... I don't know anything about "Intel Thread-Checker". ... were able to reproduce the problem in a simple example. ...
    (microsoft.public.dotnet.framework)
  • Re: DLL Problem Laufzeitfehler RTL (Manifest?)
    ... Benutzerschnittstellen zu FORTRAN bereitstellt. ... Da ich aber mit C++ arbeite habe ich eine DLL mit MS Visual C++ geschrieben die von einem sehr kleinen FORTRAN Programm aufgerufen bzw. genutzt wird. ... In de alten Version mit ABAQUS 6.4 und MS Visual Studio 2003 sowie dem Intel FORTRAN Compiler 6.5 funktionierte das auch wunderbar. ...
    (microsoft.public.de.vc)