functionval

Return the value of a variable at a given time in the simulation results

Information

Return the value of a variable at a given time in the simulation results.

Works on the filename pointed to by the scripting variable currentSimulationResult or a given filename.

For parameters, any time may be given. For variables the startTime<=time<=stopTime needs to hold.

On error, nan (Not a Number) is returned and the error buffer contains the message.

Inputs

TypeNameDefaultDescription
VariableNamevar
RealtimePoint0.0
StringfileName"<default>"The contents of the currentSimulationResult variable

Outputs

TypeNameDefaultDescription
RealvalAtTime