This module flips negative voltages to positive, whilst leaving positive voltages unchanged. Behaves exactly as a “real world” bridge (full wave) rectifier.

Plugs.
Left Hand Side:

Signal in:- (Voltage) Input signal (AC)

Right Hand Side:
Signal Out:- (Voltage) Output signal

Example below: (The fixed voltages are just used to provide offset for the scope “Beams” for clarity)

This is a “Full Wave” rectifier, which passes the positive cycle, and flips the negative half over to become positive, suppose we just want a half wave rectifier? That is one that passes the positive cycles, and blocks the negative?

To create a Half wave rectifier that can output either a positive or negative output we can use the structure below. The comparator only passes an output signal when the input signal is positive by using the comparator to “gate” the Level Adj module. Inverter 2 is added to “flip” the polarity from +ve output pulses to -ve output pulses.