Error in PWM Generator Vienna Rectifier
2 views (last 30 days)
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.
Mohamad Nazir on 11 Jun 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)
More Answers in the Power Electronics Control