Add graph to Summary

  • Mohammadreza Mohaddesnia
  • Topic Author
More
11 Dec 2025 05:19 #14409 by Mohammadreza Mohaddesnia
Add graph to Summary was created by Mohammadreza Mohaddesnia
In the photovoltaic section, after simulation, there are a series of charts in the summary. I want to add a very important chart (Energy losses) that was available in previous versions but is not there now. How can I do this?
I can create this chart in the "graph" tab, but every time I do this, it takes a lot of time. Can you help me figure out how to do this once so that the chart is always available in the Summary section? I would really appreciate your guidance.
 

Please Log in or Create an account to join the conversation.

  • Paul Gilman
More
12 Dec 2025 16:42 #14414 by Paul Gilman
Replied by Paul Gilman on topic Add graph to Summary
Hi Mohamamd Reza,

Unfortunately, it is not possible to save the graph configuration on the Graphs tab of the Results page.

However, you can write an LK script to create a similar graph. For example, I used the attached plot-detailed-pv-losses.lk script to create the following plot:

 

The script displays the plot in a window and then exports the plot as a .png image file.

To run the script:

1. Download and extract the attached plot-detailed-pv-losses.zip file.
2. Start SAM, and create or open a Detailed PV case.
3. Click Simulate to generate results.
4. On the File menu, click Open script and open the plot-detailed-pv-losses.lk file.
5. At the top of the script editor, click Run.

For more about LK script, see  sam.nrel.gov/lk-script.html .

Best regards,
Paul.

 

Please Log in or Create an account to join the conversation.

Moderators: Paul Gilman
Powered by Kunena Forum