Problem loading solar resource file

  • jesusm1985
  • Topic Author
More
02 Jun 2016 02:14 #4470 by jesusm1985
Problem loading solar resource file was created by jesusm1985
Hi, I'm trying to execute the Matlab example given in the SDK files (pvwatts.m). However, I'm getting this error:

precheck input: variable 'solar_resource_file' required but not assigned

I have not changed the original file.
Can someone give me a clue about how to solve the problem?

I appreciate any comment. Thank you in advance

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

  • Angus King
More
02 Jun 2016 03:13 #4471 by Angus King
Replied by Angus King on topic Problem loading solar resource file
jesus

Line 13 should (probably) be "... data, 'solar_resource_file', ..." rather than "... data, 'file_name', ..."

Angus

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

  • jesusm1985
  • Topic Author
More
02 Jun 2016 04:03 #4472 by jesusm1985
Replied by jesusm1985 on topic Problem loading solar resource file
Thank you Angus, it works!

Is there any file that I can read to know all this kind of details?

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

  • Angus King
More
02 Jun 2016 06:52 #4473 by Angus King
Replied by Angus King on topic Problem loading solar resource file
If you go to your SAM SDK Library there's a program sdktool.exe Execute that and select the desired model on the left to show all it's variables. This is described in the ssc_guide (page 27 of the current copy)

Angus

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

  • jesusm1985
  • Topic Author
More
02 Jun 2016 22:24 #4474 by jesusm1985
Replied by jesusm1985 on topic Problem loading solar resource file
Excellent, thank you very much Angus.

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

Moderators: Paul Gilman
Powered by Kunena Forum