Dear PLECS Community,
Hello. I am currently using RT-BOX to perform a grid-connected experiment in PLECS. In my setup, I use Analog Output and Analog Input blocks to transmit the grid voltage and current signals.Since my grid-connected experiment has not been successful, I started to investigate the possible causes step by step. First, I built a very simple closed-loop test to verify whether the analog input/output chain is working properly.In this test:I generated a sine wave with:amplitude = 100,frequency = 2π×50pi (50 Hz),The sine wave is sent to an Analog Output block.Then the signal is connected back through an Analog Input block and observed using a Scope.The Analog Output and Analog Input channels are correctly matched.The Analog Output scaling is set to Iacm.K.The Analog Input scaling is set to 1/Iacm.K.However, after passing through the Analog Output/Input chain, the measured waveform becomes a staircase-like waveform instead of remaining sinusoidal.Could anyone please help me understand why the waveform after Analog Input is different from the original sine wave?Any advice or suggestions would be greatly appreciated. Thank you very much for your help.
In the figure:the staircase waveform is the signal after Analog Input,the sinusoidal waveform is the original signal before Analog Output.
The following diagram illustrates the connection setup of the simple closed-loop experiment.




