Enabled Moving Average Stall Monitor navigation bar

Table of Contents

Memory

The Memory block holds and delays its input by one major timestep. This version supports variable-size signals and discrete sample times.

Library

QUARC Targets/Discrete

Description

Memory

The Memory block holds and delays its input by one major timestep. The QUARC version of the block acts like both the Memory and Unit Delay blocks combined, since the QUARC block accepts a continuous or discrete sample time. Also, the QUARC Memory block accepts the built-in Simulink data types, bus signals and variable-size signals. The Simulink version of the block does not currently accept variable-size signals.

To set the initial conditions for a bus signal, either use a scalar for the Initial condition parameter, which will initialize all the bus elements to the same value, or use a MATLAB structure which mirrors the bus signal in the order of the fields, the names of the fields, and the data types of the fields.

Helpful Hints

Variable-size signals

Hint When using the Memory block with variable-size signals in subsystems, make sure any Action Port, Enable or Trigger ports are configured to propagate the sizes of variable-size signals during execution.

Input Ports

The input signal to be delayed.

Output Ports

The output is the delayed signal.

Data Type Support

This block accepts the built-in Simulink data types, as well as bus signals and variable-size signals. See Using Bus Objects with QUARC for more information on bus signals. See Variable-Size Signals for more information on variable-size signals.

Parameters and Dialog Box

Memory

Initial Condition

Specifies the initial value of the output.

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. The default sample time is set to -1 to inherit the sample time.

To use the fundamental sampling time of the model, set the sample time to qc_get_step_size, which is a QUARC function that returns the fundamental sampling time of the model.

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