System Timebase End of trail navigation bar

Table of Contents

Elapsed Time

Starts tracking time elapsed when an enable signal is received.

Library

QUARC Targets/Advanced/Timing

Description

Elapsed Time

The Elapsed Time block calculates the time elapsed since the timer starts. It also allows the user to reset the timer at any time during the simulation.

Limitations

Warning If used in normal simulation, this block requires System Timebase block so that it runs in real-time.

Input Ports

start

Starts the timer when the input is high, resets the timer when the input is low. This port only appears when Enable external start signal. box is checked.

Output Ports

time

Time elapsed since timer starts.

Parameters and Dialog Box

Elapsed Time

Enable external start signal.

When this parameter is checked, a start port will appear as an input, which allows user to start and reset the timer. Otherwise, the timer starts as soon as model starts.

Sample time

The sample time of the block. A sample time of 0 indicates that the block will be treated as a continuous time block. A positive sample time indicates that the block is a discrete time block with the given sample time.

A sample time of -1 indicates that the block inherits its sample time from the input. The sample time must be inherited when the block is placed in a conditionally executed subsystem like the Triggered Subsystem block.

To set the sample time to the fundamental sampling time of the model, use the qc_get_step_size function, which is a QUARC function that returns the fundamental sampling time of the model. The fundamental sampling time of the model is the sampling time entered in the Fixed step size field of the Solver pane of the Configuration parameters.

Targets

Target Name

Compatible*

Model Referencing

Comments

QUARC Win32 Target

Yes

Yes

QUARC Win64 Target

Yes

Yes

QUARC Linux Nvidia Target

Yes

Yes

QUARC Linux QBot Platform Target

Yes

Yes

QUARC Linux QCar 2 Target

Yes

Yes

QUARC Linux QDrone 2 Target

Yes

Yes

QUARC Linux Raspberry Pi 3 Target

Yes

Yes

QUARC Linux Raspberry Pi 4 Target

Yes

Yes

QUARC Linux RT ARMv7 Target

Yes

Yes

QUARC Linux x64 Target

Yes

Yes

QUARC Linux DuoVero Target

Yes

Yes

QUARC Linux DuoVero 2016 Target

Yes

Yes

QUARC Linux Verdex Target

Yes

Yes

QUARC QNX x86 Target

Yes

Yes

Last fully supported in QUARC 2018.

Rapid Simulation (RSIM) Target

Yes

Yes

S-Function Target

No

N/A

Old technology. Use model referencing instead.

Normal simulation

Yes

Yes

* Compatible means that the block can be compiled for the target.

 

navigation bar