Error with PV Array Simscape and my data.
조회 수: 1 (최근 30일)
이전 댓글 표시
Pedro José Servián García
2022년 5월 7일
댓글: Pedro José Servián García
2022년 5월 10일
Hello, I'm designing a model of a MPPT buck converter in Simulink (Simscape).
I have an Excel where I put the data of the PV module and the design of the buck converter.
Then I put a function to read from Matlab this data and to put it into [1 1] vector (is an scalar)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/989845/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/989850/image.png)
Then, I open simulink with the model, and I put this [1 1] vectors in the elements of the model (the inductance, the capacitance, the semiconductors, etc)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/989855/image.png)
As you can see, there is no problem to put this on the output capacitance for example
The problem I have is with the PV Array, because I want to put my data on it and appears this error and I dont know why:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/989860/image.png)
As you can see, Im doing the same thing as with the capacitance and I dont know why it gives me that error.
I would be very pleasant if you could help me. Thanks!!!!!!!!!
댓글 수: 0
채택된 답변
Joel Van Sickel
2022년 5월 10일
Unfortunately, you aren't doing anything wrong. It looks like there is a bug in how those paramters are being checked such that matlab variables can't be used. I was able to recreate the same problem on my side and have submited a bug report to get it fixed. Unfortunately, that fix won't help you in solving your problem now. There is another way to set these values progrmatically to work around it, although it is a little annoying. You can use the set_param to set these values.
You can get a list of the parameters like this get_param('Reductormodelo/Pv Array','ObjectParameters')
Then set them using
set_param('Reductormodelo/Pv Array','Isc',num2str(Iscstd))
you will get an error because your short circuit current needs to be larger than the maximum power point current, but this is a step in the right direction.
The other paramter names you want are 'Voc', 'Vm','Im'. You can use set parameter for all of those. Just remember you need to converter them to a string to use the set_param command for this mask.
Regards,
Joel
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Variable Initialization에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!