Performance Meter System Timebase navigation bar

Table of Contents

Sleep

Sleeps for the specified number of seconds.

Library

QUARC Targets/Advanced/Timing

MATLAB Command Line

Click to copy the following command line to the clipboard. Then paste it in the MATLAB Command Window:

qc_open_library('quarc_library/Advanced/Timing')

Description

Sleep

The Sleep block sleeps for the specified number of seconds. The number of seconds may be a real number. It uses very little CPU time while it sleeps. Only the thread to which the block belongs actually sleeps. In a multirate model in multitasking mode, QUARC executes each sampling rate in a separate thread.

Limitations

Warning The resolution of the sleep interval depends on the system timer of the target. For example, on the Windows target, the sleep interval is only accurate to the nearest millisecond since the Windows system timer has millisecond resolution (as opposed to the QUARC system timebase for Windows, which has submillisecond resolution when using the fast system timer option on multiprocessor or multicore platforms). On the QNX x86 target, the resolution of the sleep interval depends on the maximum timer resolution specified on the Code Generation/QUARC pane of the Configuration Parameters dialog.

Input Ports

This block has no input ports.

Output Ports

This block has no output ports.

Parameters and Dialog Box

Sleep

Sleep interval

The amount of time in seconds for which the block should sleep. A fractional number of seconds may be specified. The resolution of the sleep interval depends on the target type.

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