Implementing the External Module

The steps involved in creating and using an External element are as follows:

  1. Code the external function to be used by the External element in your model;
  2. Compile the external function into a DLL (multiple functions can be included in the same DLL);
  3. Create an External element within GoldSim and specify the DLL and the specific function within the DLL to be used;
  4. Specify the input and output arguments that are to be sent to and received from the function.

The details of the first two steps are discussed in Appendix C of the GoldSim User’s Guide. The remaining two steps are discussed in the topic below.