03-02-2005 10:58 AM
03-02-2005 05:25 PM
03-02-2005 06:14 PM
03-03-2005 07:46 AM
03-03-2005 09:42 AM
03-03-2005 10:49 AM
03-07-2005 10:31 AM
08-07-2008 05:05 AM
Hi there,
I have Fortran source code. I know nothing about it, except that it works. I have all the uncompiled (.for) files and the compiled files (.obj) with I can only assume a compiled library file (.lib). What does the .lib file contain?
Someone mentioned that you need to add "!DEC$ ATTRIBUTES DLLEXPORT ... (and something else?)" to every source code file then compile into a .dll to call it from LabVIEW. So you just add this line and that's it? How do I know what version of Fortran my source code is written in (77, 90... etc)?
Can someone please explain the process of taking this Fortran source code, compiling it into a DLL and being able to call the functions from LabVIEW.
Thanks,
Battler.
08-08-2008 03:42 PM
Hey Battler,
You'd need to look up how you can convert Fortran to a DLL. Here's link I got from a quick Google search: How To Create a FORTRAN DLL and Call It from Visual Basic
Once you develop the DLL you'll have to create a C wrapper for LabVIEW to understand the Fortran DLL. A good reference for this would be Writing a Wrapper Function for an External Code Function.
08-08-2008 05:42 PM
Thanks.
What about this "!DEC$ ATTRIBUTES DLLEXPORT"? Where does this come into it?