Circuit for controlling AC signal polarity in real-time
Just use a DPDT switch:






simulate this circuit &ndash; Schematic created using CircuitLab

If you want to control this from a remote panel, you can use DPDT relays to do that.