Example Code for Downloading Inverter Efficiency Values SAM->SDK

  • James M.S. Barile
  • Topic Author
More
28 Jan 2015 18:54 #3007 by James M.S. Barile
Dear Paul,

This is James, whom had contacted you along with Elizabeth earlier this month for the Yale research code. Thank you for assisting us then.

Could you provide an example line of LK code that would load an 'inv_eff' value to an input, given the inverter type. Though our data set contains the litany of inverter types, to individually search for the efficiency value in SAM is prohibitively slow.

Our best loading of external files to inputs, using a weather example, has looked like this:

eather_file=choose_file(cwd(),'Choose weather file', 'TMY2 (*.tm2)|*.tm2');
var( 'solar_resource_file', weather_file );

Nonetheless, this requires mannual file selection, and the desired input in this case is a full file, not an integer located somewhere in a large file.

As you can see, this prevents us from coding in SDK in the same way that one hopes to use SAM. Could you help us with that problem?

Best,
James

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

Moderators: Paul Gilman
Powered by Kunena Forum