Graphics tool automation

  • Juan Manuel
  • Topic Author
More
08 May 2020 12:42 #8177 by Juan Manuel
Graphics tool automation was created by Juan Manuel
Hello,

I am new with this tool, and I have a series of steps in the graphical interface that I have to automate, I wanted to know if it is possible with the SDK and if you could tell me which functions are equivalent.

The steps are the following:

In a Photovoltaic Commercial project
1. Load some files with macros
2. Load templates into Module and Inventer
3. In System Design, check the Estimate Subarray check
4. Finally simulate and generate a csv file from the Time series tab

Thank you very much for the help.

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

  • Paul Gilman
More
08 May 2020 18:04 #8178 by Paul Gilman
Replied by Paul Gilman on topic Graphics tool automation
Hi Juan,

The tools in the Software Development Kit (SDK) provide access to the SAM Simulation Core (SSC) library, not to the SAM user interface.

To automate tasks in the user interface, you can use the LK scripting language in the SAM desktop application. For more about how LK script works, see:

sam.nrel.gov/lk-script.html

You can find examples of LK scripts designed to run from the SAM application here:

github.com/NREL/SAM/tree/develop/samples/LK%20Scripts%20for%20SAM

Best regards,
Paul.

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

  • Juan Manuel
  • Topic Author
More
12 May 2020 10:26 #8182 by Juan Manuel
Replied by Juan Manuel on topic Graphics tool automation
Hello, thank you very much for the reply.

I was able to create a script to automate the interface steps.

Now I have another problem, how could I launch this script from a command line? I have only seen that it can be launched from the application.

Thank you very much again!

Best regards,
Juan.

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

  • Paul McPherson
More
26 Jun 2020 06:14 #8360 by Paul McPherson
Replied by Paul McPherson on topic Graphics tool automation
Hello,

Have you found out how to launch it with a command line? I'm working on something similar and would like to know whether it's possible or if I'm losing my time chasing something I won't be able to catch.

Thank you in advance!

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

  • Paul Gilman
More
26 Jun 2020 21:46 #8362 by Paul Gilman
Replied by Paul Gilman on topic Graphics tool automation
Hi Paul,

It will be possible to run LK from the command line as of SAM 2020.2.29 Revision 3. We are currently at Revision 2, and plan to release the next update soon:

github.com/NREL/SAM/issues/309

Best regards,
Paul.

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

Moderators: Paul Gilman
Powered by Kunena Forum