Sample Files

We've moved the LK Cookbook, SAM sample files, and 3D shade scene samples to the SAM open source repository on GitHub.com to make it possible for the SAM community to contribute to the sample files collection.

 

Exchanging Data between SAM Inputs and Excel

The following files demonstrate two ways you can set the value of SAM inputs to values in an Excel file, or set the value of cells in Excel to values of SAM inputs.

Example using SAM's Excel Exchange feature (SAM 2016.3.14). Download the Excel file and SAM file and put them in the same folder on your computer. Then open the SAM file, and run a simulation. See the note on the System Costs page in the SAM file and the Excel Exchange topic in SAM's help system for details:

  • SAM file for Excel Exchange example (SAM 105 KB)
  • Excel file for Excel Exchange example (XLSX 55 KB)

Example using SAM's LK scripting language. Download the following files and put all three files in the same folder on your computer. Then open the SAM file, open the LK script from SAM's File menu, and run the script:

  • SAM file for LK data exchange with Excel (SAM 111 KB)
  • Excel file for LK data exchange with SAM (XLSX 55 KB)
  • LK script demonstrating how to exchange data with an Excel file (LK 2 KB)

Theme by Danetsoft and Danang Probo Sayekti inspired by Maksimer