There are three types of functions used for communication between Embed and your DLL:
• Simulation level functions
• Block level functions
• Exported functions
Simulation level functions and block level functions are DLL functions Embed can call via a userFunction block. Simulation level functions are called once per simulation-wide event.
Block level functions are called once for each userFunction block. If you have no userFunction blocks, no calls are made; if you have 100 userFunction blocks, they are called 100 times.
Exported functions are Embed functions that you can call from a DLL. These functions allow a DLL to request information from Embed, as well as instruct Embed to perform specific actions.