Excel exchange issues

  • russellharris
  • Topic Author
More
04 Mar 2015 17:22 #3114 by russellharris
Excel exchange issues was created by russellharris
Hi there.

I've been trying to get Excel exchange to work but I'm running into the following issues:

1. My base data is in an excel 2013 macro-enabled spreadsheet ie *.xlsm, which is not recognised by the dialogue box. I can type in the full name, so I guess I can get around this point. Eventually (perhaps due to issues below, or perhaps because *.xlsm data files aren't supported - documentation?), I made it work by having a standard *.xlsx spreadsheet with values linked back to the *.xlsm spreadsheet. But this is bit of pain to manage data consistency; upon a change in the original input data, the *.xlsx needs to be opened & saved before the new data is available to SAM.

2. The documentation needs to be clearer regarding how to identify cells in a spreadsheet with multiple tabs. Even using the standard excel naming conventions for cells [eg '7. Cost database'!Q172], I couldn't get the exchange to work. It did work fine with named cells.

3. I am modelling a HCPV system, and specifically I'm using the excel data to update the cost information. I could not find a data exchange cost variable for Tracking.

4. Once I got the data exchange working, I found that it produced the correct results, but that the SAM Cost input page did not update to show the new values. IMHO this is highly confusing.

Any pointers?

Russell.

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

  • pgilman
More
06 Mar 2015 14:38 #3115 by pgilman
Replied by pgilman on topic Excel exchange issues
Dear Russell,

1. We haven't tested Excel Exchange with macro-enabled workbooks. We'll investigate that and, in a future version of SAM, allow for working with the .xslsm filename extension if it does not cause any unforseen problems.

2. You can only use cell references (A5, B7, etc.) to refer to cells in the first worksheet in the workbook.

3. That's a bug -- we neglected to configure the tracking equipment cost ($, $/Wdc, and $m2) variables for Excel Exchange, parametric simulations, and other special simulation options. We will fix that for the next version of SAM.

4. That's another problem. The SAM input variable should show the value from the Excel workbook. We'll fix that too.

Thank you for letting us know about these issues.

Best regards,
Paul.

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

  • russellharris
  • Topic Author
More
15 Mar 2015 17:35 #3116 by russellharris
Replied by russellharris on topic Excel exchange issues
Thanks for your help Paul.

Russell

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

  • van.pham.nguyen
More
14 Jul 2015 00:46 #3117 by van.pham.nguyen
Replied by van.pham.nguyen on topic Excel exchange issues
Paul,

How do I run a for loop feeding a batch of weather file names from an Excel exchange sheet to SAM? Is there a way to read in the weather file names one by one (assuming that I have downloaded all the referenced weather files to SAM library) by using an offset function? In VBA it would be coded something like weatherfile = cell(1,1).offset(0,i).value

Thanks,

-Van

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

  • van.pham.nguyen
More
14 Jul 2015 00:58 #3118 by van.pham.nguyen
Replied by van.pham.nguyen on topic Excel exchange issues
Similarly, how do I output the kWh to Excel one by one on different rows and columns. I'm trying to batch run a flat plate PV system using multiple weather files at different tilts and azimuths.

Thanks,

-Van

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

  • pgilman
More
14 Jul 2015 12:17 #3119 by pgilman
Replied by pgilman on topic Excel exchange issues
Dear Van,
I would recommend using the LK scripting language rather than Excel Exchange to loop through the weather files and to export results data to a CSV file.
Please see the sample scripts #2 and #3 on the Sample Files page  for examples of how to do that. For an introduction to LK, see the Macros and Scripting topic in Help, listed under References in the Help table of contents.
Best regards,

Paul.

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

Moderators: pgilman
Powered by Kunena Forum