Engee documentation

Unipolar to Bipolar Converter

Converting a unipolar signal in the range ] to a bipolar signal.

unipolar to bipolar converter

Description

The Unipolar to Bipolar Converter unit converts a unipolar input signal to a bipolar output signal.

If the input signal consists of integers from to , where is the M-ary number parameter, the output signal consists of integers from to .

If the input signal is even, the output signal is odd. If the input signal is odd, the output signal is even.

This block is designed to work only if the input value is within the set of . where is the M-ary number parameter. If the input value is outside this set of integers, the output may not be correct.

The table below shows how the block display depends on the Polarity parameter.

Polarity parameter

Output corresponding to the input value k

Positive

2k-(M-1)

Negative

-2k+(M-1)

Ports

Input

# IN_1 — unipolar input signal
scalar

Details

Unipolar input signal.

Data types

Float64.

Complex numbers support

No

Output

# OUT_1 — bipolar output signal
scalar

Details

Bipolar output signal.

Data types

Float64.

Complex numbers support

No

Parameters

Main group

# M-ary number — number of characters in a bipolar or unipolar alphabet

Details

The number of characters in a bipolar or unipolar alphabet.

Default value

4

Program usage name

M

Tunable

No

Evaluatable

Yes

# Polarity — polarity
Positive | Negative

Details

The polarity of the output signal.

  • If Polarity is set to Positive, the block preserves the relative ordering of characters in alphabets.

  • If Polarity is set to `Negative', the unit changes the relative ordering of characters in the alphabets.

Values

Positive | Negative

Default value

Positive

Program usage name

Polarity

Tunable

No

Evaluatable

Yes

Additional options

C code generation: Yes