Engee documentation

Discrete Impulse

Generates a discrete pulse.

discrete impulse

Description

Block Discrete Impulse generates a pulse (of value 1) on -th count, where is defined by parameters Delay (samples). All output samples preceding and following -th sample are equal to zero.

When is a vector of length , the block generates a matrix of size by , where is the number of individual channels and is the frame size, which is defined by the parameters . Samples per frame. The pulse of - the second channel appears on countdown.

The value of parameters Sample time, , determines the reference period of the output signal. The resulting frame period is equal to .

Ports

Output

# OUT_1 — discrete pulse signal
scalar | vector | matrix

Details

Output signal containing a discrete pulse at -sample, where is a scalar or vector given by parameters Delay (samples).

Data types

Float32, Float64, Int8, Int16, Int32, UInt8, UInt16, UInt32, Bool, Fixed

Complex numbers support

No

Parameters

Main

# Delay (samples) — number of output samples with zero value
Scalar / array of Int64

Details

Number of zero output samples, , preceding the pulse. Set as a scalar or vector of integer values greater than or equal to zero. If the parameters Delay (samples) is set as a vector of length , the output is formed -channel signal.

Default value

0

Program usage name

Delay

Tunable

No

Evaluatable

Yes

# Sample time — output data sampling period
Real number

Details

The output sampling period, , is set as a positive scalar. The period of the output frame is equal to .

Default value

1

Program usage name

SampleTime

Tunable

No

Evaluatable

Yes

# Samples per frame — counts per frame
Int64 integer

Details

The number of samples, , in each output frame, specified as a positive integer scalar.

Default value

1

Program usage name

SamplesPerFrame

Tunable

No

Evaluatable

Yes

# Output data type — output data type
Float64 | Float32 | Float16 | Int8 | UInt8 | Int16 | UInt16 | Int32 | UInt32 | Int64 | UInt64 | Int128 | UInt128 | Bool | Fixed-point

Details

Specify the output data type for this block.

Values

Float64 | Float32 | Float16 | Int8 | UInt8 | Int16 | UInt16 | Int32 | UInt32 | Int64 | UInt64 | Int128 | UInt128 | Bool | Fixed-point

Default value

Float64

Program usage name

OutDataTypeStr

Tunable

No

Evaluatable

No

# Output fixed-point type — fixed-point output data type
Data type

Details

Fixed point output data type.

Dependencies

To use this parameter, set parameter Output data type value Fixed-point.

Default value

fixdt(1, 16, 0)

Program usage name

OutDataTypeStrFixed

Tunable

No

Evaluatable

Yes