Hi!
I am working on Activate to simulate a motor model with an actual Voltage Source Inverter generating PWM signals.

I would like to know a few things:
1. When I use ideal currents as the inputs in the co-simulation block, it runs fine. But, as I am using the Voltage Source Inverter, Is there any way I give currents as the input to the block?

2. When I use the phase voltages as the inputs in the co-simulation block (as seen in the above image), I am able to connect the Inverter with the block, but, as the voltages applied to the flux block are PWMs, the current in the motor shoots to high values. Why this is happening?
As I am providing the actual PWM voltages at the motor terminal with high switching frequency (10kHz), practically the current should be generated having some ripples, but here it is shooting as if a DC voltage is applied at the motor terminals.
Attaching few images for reference:

Flux model circuit with voltage sources.

PWM voltages generated by the inverter.

Motor Outputs (3rd window for line currents).