LabVIEW Control Design and Simulation Module

Initialize (ESI Function)

  • Updated2023-03-14
  • 1 minute(s) read

Initialize (ESI Function)

Owning Class: Callback API

Requires: Control Design and Simulation Module

Prototype

SIM_Error Initialize(SIM_Solver *solver);

Description

Performs any tasks you want to complete before the simulation begins. For example, during this function you can allocate any memory the solver requires and store a pointer to the memory using the SIM_SolverSetData function. You can retrieve the pointer during the execution of other functions using the SIM_SolverGetData function. LabVIEW calls the Initialize function once per simulation and before calling all other functions except the Information function.

Inputs

Name Description
solver Specifies a reference to the external ODE solver. Use this reference as an input to other ESI functions. Do not modify solver directly.

Return Value

Returns the error condition for this function.

Related Topics

Finalize

Log in to get a better experience