This example model shows how to use an External Element to call a DLL to perform calculations outside of GoldSim. The DLL in this case was compiled using the gcc compiler suite from source code which is mainly written in Fortran. The Fortran portion of the source code is compiled using gfortran. The DLL contains three exposed functions, CustomFortranDLLSum (calculates the sum of two input arguments), CustomFortranDLLProdSum (calculates the sum and the product of two input arguments) and CustomFortranDLLHalf (divides an input argument by 2).
Download the Model File: