Excel Exchange

3 posts / 0 new
Last post
Sol Trace - Export Result to Excel


Can someone help me getting this data exporting to a csv file; I am trying to do it through lk script but not able to find any function to get these output values.

if not can I calculate the 'Power of Plotter rays' and 'power per ray' with the ray data export. if so can I get the equation.

2 posts / 0 new
Last post
Excel exchange error – could not open file


I have been trying to recreate some legacy files (2014.1.14) in the latest version of SAM. I found that in attempting to run a simulation an error would appear stating “Excel Exchange Error: Could not open file” when trying to run an excel exchange case.

5 posts / 0 new
Last post
bruna's picture
Send data to Excel


When I try to send the data to excel, it goes from a value that's suppose to be 1.0 to 100.000. Also, when I check the battery data and try to send those to excel, they come all wrong, it's suppose to be a value 1e^-16 and ir goes 1e^-11 or 1e^-12, it doesn't have a pattern.

3 posts / 0 new
Last post
Connecting SAM to complex storage Excel models

Dear Paul,

Thank you for developing a tremendous asset for the renewable industry.

10 posts / 0 new
Last post
oavaldezi's picture
Federal Income Tax schedule (instead of flat rate) error

I've entered a Federal Income Tax schedule, with the rate at 0% for the first 10 years, and 30% afterwards. When I export to Excel with formulas, the values for "After-tax value of energy generated by system" and "After-tax cash flow" are in error, because their formulas reference the "federal_tax_rate" name, and they should reference the "AnnualTaxFederal" name.

3 posts / 0 new
Last post
Data Transfer from .xls Files

Is it possible to read the full contents of .xls files into an array, without having to name the range of cells being read (similar to how csvread can read .csv files to an array)?

3 posts / 0 new
Last post
Bulk CSV Exports

I have a mess of projects I'm modeling. I would like to export the summary, monthly, and annual data tables to csv for all the projects in bulk. All in one go instead of going from project to project and exporting each one by hand. Is it possible to script this in SAM? In case anyone's curious, I'm working up evaluations for several parcels of land in a small city. I want to get this all into something like R or Excel. I'm using R to make some prettier plots than SAM can do. Excel makes it easier to format tables for insertion into a written report.

3 posts / 0 new
Last post
Sending Values from SAM to excel

I want to send a calculated value from SAM to an excel-workbook using an lk script, I'm running the script with no errors but nothing is changing in the excel workbook Book100, I tried the same script also for different workbooks and also it's not working. Can someone please help me with that. Thank you

The Script:

/set the current SAM case

//create an Excel object and open the Excel file
xl = xl_create('C:/Users/Admin/Desktop/SAM work/Book100.xls.xlsm');
path = path_only( project_file() );

2 posts / 0 new
Last post
Hourly excel exchange input?


2 posts / 0 new
Last post
How do I export SAM to Excel including formulae?

I want to see how LCOE is calculated in SAM. How do I export the formula to Excel?

Theme by Danetsoft and Danang Probo Sayekti inspired by Maksimer