Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Group

Model Configuration, System

Description

Returns

Return the value of the calculation step specified in the current model, and the time factor to apply to obtain the effective calculation step.

Required Control

None

Usage

(calculationStep, timeFactor) = RtlabApi.GetTimeInfo()

Input

None

Output

  • calculationStep: Calculation step size as specified in the model file.

  • timeFactor: Time factor of the simulation, which is multiplied by the calculation step size to obtain the effective calculation step size.

Exception

  • EOK: Success.

  • EIO: Error sending the request or receiving the reply.

  • EBADF: Model not specified by previous Connect or

SetCurrentModel
  • OpenProject.

Examples

None

Related Items

SetTimeFactor

Modules

import RtlabApi