- Assuming you have also recorded time along with the PV array output data, you can use the “From Spreadsheet” block to read this data into Simulink.
- Refer to the following MathWorks documentation to appropriately format the data in Excel Sheet before reading it using “From Spreadsheet” block: https://www.mathworks.com/help/simulink/slref/fromspreadsheet.html
- The “From Spreadsheet” block provides each data column as separate Simulink signal.
- The voltage and current signals can be converted to their equivalent source using “Controlled Voltage Source” block and “Controlled Current Source” block respectively as shown below.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1578601/image.png)
- Now these voltage and current source blocks can be connected to other electrical component blocks.
- “Controlled Voltage Source” block: https://www.mathworks.com/help/sps/powersys/ref/controlledvoltagesource.html
- “Controlled Current Source” block: https://www.mathworks.com/help/sps/powersys/ref/controlledcurrentsource.html