Engee documentation

Signal Specification

Specifies the desired magnitude, sampling time, data type, numeric type, and other signal attributes.

blockType: SignalSpecification

Path in the library:

/Basic/Signal Attributes/Signal Specification

Description

The Signal Specification block allows you to set the attributes of the signal connected to its input and output ports.

If the specified attributes conflict with the attributes specified by the blocks connected to its ports, Engee generates an error when compiling the model. For example, at the beginning of the simulation, if there are no conflicts, the solver removes the Signal Specification block from the compiled model.

You can use the Signal Specification block to ensure that the actual signal attributes match the desired attributes. You can also use it to ensure that the signal attributes are correctly propagated throughout the model. However, if some blocks have undefined attributes for the signals they receive or output, the model does not have enough information to correctly propagate the attributes. In such cases, the Signal Specification block can provide the necessary information.

Usage of the Signal Specification block also helps speed up model compilation when blocks do not have signal attributes.

Ports

Input

# IN — input signal
scalar | vector | matrix | array

Details

An input signal specified as a scalar, vector, matrix or N-dimensional array.

Data types

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

Complex numbers support

Yes

Output

# OUT — output signal
scalar | vector | matrix | array

Details

A transformed input signal as a scalar, vector, matrix or N-dimensional array whose attributes are defined by the user.

Data types

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

Complex numbers support

Yes

Parameters

Main

# Data type — type of output data
Inherit: auto | Float64 | Float32 | Float16 | Int8 | UInt8 | Int16 | UInt16 | Int32 | UInt32 | Int64 | UInt64 | Int128 | UInt128 | Bool | Fixed-point | BusSignal

Details

The type of output data. If the input data type does not match the specified value, the block returns an error.

Values

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

Default value

Inherit: auto

Program usage name

OutDataTypeStr

Tunable

No

Evaluatable

No

# Output fixed-point type — the type of fixed-point output
Data type

Details

The type of fixed-point output.

Dependencies

To use this parameter, specify for the parameter Data type meaning Fixed-point.

Default value

fixdt(1, 16, 0)

Program usage name

OutDataTypeStrFixed

Tunable

No

Evaluatable

Yes

# Output bus type — type of output bus
Data type

Details

Describes the type of bus that the unit outputs.

You can set the type yourself or enter the name of a variable that stores a type that has already been created in the workspace.

Dependencies

To use this parameter, set for the parameter Data type meaning BusSignal.

Default value

BusSignal((), (), ())

Program usage name

OutDataTypeStrBus

Tunable

No

Evaluatable

Yes

# Dimensions (-1 for inherited) — values of input and output signals

Details

The parameter sets the values of the input and output signals.

Meaning () The parameter indicates a scalar value.

Meaning -1 The parameter indicates that the signals inherit the dimensions.

Meaning (n,) The parameter specifies a vector of width n.

Meaning (m,n) The parameter specifies a matrix with m rows and n columns.

Default value

-1

Program usage name

Dimensions

Tunable

No

Evaluatable

Yes

# Sample time — the interval between the calculation steps
SampleTime (real number / vector of two real numbers)

Details

Specify the interval between the calculation steps as a non-negative number. To inherit the calculation step, set this parameter to -1.

Default value

-1

Program usage name

SampleTime

Tunable

No

Evaluatable

Yes

# Signal type — signal complexity
auto | real | complex

Details

The complexity of the input and output signals. Set as:

  • auto – inheritance of complexity from the input.

  • real – a physical signal is expected.

  • complex – a complex signal is expected.

Values

auto | real | complex

Default value

auto

Program usage name

SignalType

Tunable

No

Evaluatable

No