Versions Compared

Key

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

Group

Model Execution

Description

Sets

Set the value of the time factor. When in real-time mode, the execution rate is the model's sampling rate times the time factor.

Required Control

System Control

Usage

RtlabApi.SetTimeFactor(timeFactor)

Input

  • timeFactor: See Glossary.

Output

None

Exception

  • EPERM: System control had not been granted to this client.

  • EINVAL: Invalid time factor.

  • EBADF: Model not specified by previous Connect or

SetCurrentModel
  • OpenProject.

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

  • EFAULT: Warning: Time factor differs from 1.0.

Examples

None

Related Items

Execute, GetTimeInfo.

Modules

import RtlabApi