Difference of sine waveform in simulink and real-time
3 views (last 30 days)
Show older comments
Hello,
I created sinusidal PWM signals in SIMULINK. In simulation these signal are creating a sinusoildal current by connecting to the three-phase inverter. However after generating the vhdl codes with the HDL coder and program the cyclone V device, the current waveform are like that. I was wondering if anyone can let me know why it is happening. I did not put any delays between the phases for pipelining, would it be the problem.
0 Comments
Answers (1)
Kiran Kintali
on 25 Mar 2024
Edited: Kiran Kintali
on 25 Mar 2024
You may find this workflow useful: https://www.mathworks.com/help/hdlcoder/ug/generate-hdl-code-from-simscape-model.html
>> which sschdlexSinglePhaseInverterModel
<install root>\toolbox\hdlcoder\hdlssc\hil_examples\sschdlexSinglePhaseInverterModel.slx
See the attached pdf on what the workflow would look like using HDL Coder.
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!