PV Array Subsystem Error in Simulink, Matlab 2020b

4 visualizaciones (últimos 30 días)
Moudrek Osmani
Moudrek Osmani el 16 de En. de 2021
Respondida: Aditya Shah el 13 de Oct. de 2022
Hello all,
I`m facing a problem while scope-simulating the PV array, I-V and P-V characteristic curves attached as fig1.png.
The error is as follows:
An error occurred while running the simulation and the simulation was terminated
Caused by:
The following notes are to be taken into consideration:
  1. The PV array itself shows no problem when was simulated without the converter
  2. The addition of the DC-DC converter revealed the mentioned error
  3. I tried several advices from other questions/answers post about modifying the Solver configuration (i.e. selection fixed steps rather than variable, changing Solver type from auto to different ode~~, reducing error tolerance, decreasing the relative tolerance, NonAdaptive algorithm selection, etc.) but still the error is the same at different time intervals.
  4. I tried to break into the PV Array mask, by adding unit delay in Diode Rsh, after link disabling as attached in fig2.png but still same error.
  5. I was running actually the simulation after checking Break algebraic loop inside the PV array mask.
Any Solutions or recommendations? I`m using Matlab R2020b, Simulink.
Thanks in advanced.

Respuestas (1)

Aditya Shah
Aditya Shah el 13 de Oct. de 2022
Hi!
A possible reason for getting this error is the incorrect implementation of the logic or the use of an unstable equation while creating the Simulink model. This happens if one of the blocks is generating either an Infinite or NaN value at some point in time, which gets passed to the block (mentioned in the error message) and thereby it generates the error message.
In order to find out which block was responsible for generating Infinite or NaN value you can set the configuration parameters by performing the steps below:
  1. Go to 'Model Settings' of Top Model from Toolstrip
  2. Search for 'Inf or NaN block output' using the search bar present above in the Configuration Parameters panel.
  3. Set the value of 'Inf or NaN block output' to 'error' (by default it would be 'none')
  4. Click Apply and OK. Run the model again.
Now you can see an error in the 'Diagnostic Viewer' which points out the block that is creating Infinite or NaN value.
To avoid such errors, you can always check for any logical errors relating to that block (For ex. Division by zero) or equations that can be corrected.

Categorías

Más información sobre Simulink Functions en Help Center y File Exchange.

Productos


Versión

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by