LabVIEW Control Design and Simulation Module

SIM_SolverSetData (ESI Function)

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

SIM_SolverSetData (ESI Function)

Owning Class: Solver API

Requires: Control Design and Simulation Module

Prototype

void SIM_SolverSetData(SIM_Solver *solver, void *myDataPointer);

Description

Stores a pointer to data you allocate during the Initialize function. Use the SIM_SolverGetData function to retrieve this pointer.

Examples

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.
myDataPointer Specifies a pointer to data you allocated with the SIM_SolverSetData function.

Examples

void *myDataPtr = malloc(10*sizeof(double));
SIM_SolverSetData(solver, myDataPtr);

Related Topics

Finalize
Initialize
SIM_SolverGetData

Log in to get a better experience