Error in PWM Generator Vienna Rectifier

2 vues (au cours des 30 derniers jours)
Arkadeep Deb
Arkadeep Deb le 11 Juin 2021
Commenté : Arkadeep Deb le 11 Juin 2021
Expected a value representable in the C type 'int'. Found 5.000060 instead. Error in 'test/PWM Generator (Vienna Rectifier)/Gate Signal Generator/Signal Correction' (line 4) switch SmallHexNum
I am getting this error and hence cannot linearize my model to find transfer function and hence desgin PI controllers for it.

Réponses (2)

Mohamad Nazir
Mohamad Nazir le 11 Juin 2021
Have you tried to simply insert a "round" block or a "data type conversion" block (or maybe both) for "SmallJexNum" in the "PWM Generator (Vienna Rectifier)" block between the "Switching Time Calculation" block and "Gate Signal Generator" subsystem in order to see if that resolves this error?
In case it does you might get the error that is causing this problem in the first case or no errors so you could run the simulation in order to investigate more (I'd start by observing Iabc and checking the switching period notably)
  1 commentaire
Arkadeep Deb
Arkadeep Deb le 11 Juin 2021
Modifié(e) : Arkadeep Deb le 11 Juin 2021
I cannot insert any block between switching time calculation and gate signal. They are non-editable.
Can I get your email address please, I want to discuss this issue with you in detail.

Connectez-vous pour commenter.


Pemendra Kumar Pardhi
Pemendra Kumar Pardhi le 11 Juin 2021
Please used datatype conversion with boolean in place of intiger 8 (int 8)
I think it may creat a problems.
  1 commentaire
Arkadeep Deb
Arkadeep Deb le 11 Juin 2021
the simulation is running, however, when I try to tune the PID controller I get this error. Hence cannot get the bode plot. As you mentioned to use boolean data type, the problem lies inside the PWM generator block which I cannot change. I will upload the simulation file in my question, if you can help me tune the PI controller.

Connectez-vous pour commenter.

Communautés

Plus de réponses dans  Power Electronics Control

Catégories

En savoir plus sur Simscape Electrical dans Help Center et File Exchange

Produits


Version

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by