SoElapsedTime

InventorModule
genre InventorEngines
author Silicon Graphics Inc
package MeVisLab/Standard
definition inventor.def

Purpose

This engine functions as a stopwatch; it outputs the time that has elapsed since it started running. By default, the timeIn input is connected to the Speed global field. It can, however, be connected to any other time source.

The output from the engine is the time that has elapsed since it started running, or since the reset input was last triggered. You can affect the speed of the output time by setting the speed scale factor. A value greater than 1.0 will speed up the output, and a value less than 1.0 will slow it down.

If you pause the engine, by setting the pause input to TRUE, it stops updating the Time Out output. When you turn off the pause, it jumps to its current position without losing time. Alternatively, if you want to stop the engine for a while, and then restart it from where it left off, use the on input field.

Windows

Default Panel

../../../Modules/Inventor/InventorBase/mhelp/Images/Screenshots/SoElapsedTime._default.png

Parameter Fields

Field Index

On: Bool
Pause: Bool
Reset: Trigger
Speed: Float
Time Out: EngineOutput
timeIn: String

Visible Fields

Speed

name: speed, type: Float, default: 1

Scale factor for time.

On

name: on, type: Bool, default: TRUE

TRUE to start running, FALSE to stop.

Pause

name: pause, type: Bool, default: FALSE

TRUE to freeze, FALSE to continue running.

Reset

name: reset, type: Trigger

Reset the base time.

Time Out

name: timeOut, type: EngineOutput, persistent: no

Time elapsed, modified by the speed factor.

Hidden Fields

timeIn

name: timeIn, type: String, persistent: no

Running time.