Documentation Center

  • 評価版
  • 製品アップデート

time

Access global simulation time

Syntax

time

Description

You can access global simulation time from the equation section of a Simscape™ file using the time function.

time returns the simulation time in seconds.

Examples

The following example illustrates y = sint):

component
  parameters
    w = { 1, ‘1/s' } % omega
  end
  outputs
    y = 0;
  end
  equations
    y == sin( w * time );
  end
end

See Also

equations

Was this topic helpful?