The SAM web site will be upgrading Monday, May 23 from 4:00-5:00pm (Denver/mountain time). 

After doing a major change to our infrastructure, we have found a minor issue that we have corrected but will need to reboot the web site for it to take affect.

To make it as convenient as possible, we have scheduled it for Monday, May 23rd at 4:00pm (mountain). The process takes 15-20 minutes, but the site will only be unavailable for a short time. However, your session information will be lost (eg if you're writing a post, what you have written could be lost). 

LK Script is a scripting language with syntax similar to C that is built in to SAM and the SAM SDKtool, and is used internally for SAM's user interface. It is analogous to VBA in Excel and allows you to automate repetitive or complex simulation tasks. You can use it to:

  • Read and write data to text files.
  • Read and write values of SAM input variables.
  • Run simulations.
  • Read values of SAM output variables.
  • Create graphs.

For examples of LK scripts for SAM, see LK Samples in the SAM GitHub repository. Use the raw link to download the LK script files:

Use raw link to download LK file from GitHub

The LK Guide manual describes the language (PDF 273 KB)

If you are interested in contributing to LK, you can do so at LK on GitHub.