SAM to MATLAB code errors (Generic System and Battery)

  • Giorgos S. Georgiou
  • Topic Author
More
26 Mar 2020 17:18 #8069 by Giorgos S. Georgiou
SAM to MATLAB code errors (Generic System and Battery) was created by Giorgos S. Georgiou
Hi 

I converted SAM to MATLAB code and when I run the code I get the following errors:

generic_system errors:
fail(system_use_lifetime_output, integer): number could not be interpreted as an integer: 5.26354e-315

I changed the "system_use_lifetime_output" parameter from 1 to 0 for overcoming this error.

battery errors:
fail(batt_replacement_option, integer): number could not be interpreted as an integer: 5.26354e-315

I changed the "batt_replacement_option" parameter from 1 to 0 for overcoming this error.

battery errors:
exec fail(battery): Generic System must be AC connected to battery.

I don't know how to overcome the above. Could you help me please?

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

  • Paul Gilman
More
12 May 2020 15:42 - 12 May 2020 15:54 #8184 by Paul Gilman
Hi Giorgos,

It looks like integer values of zero are being generated as very small decimal values, which may be causing errors. You may need to go through and change those values to zeros. We are working to resolve that issue as described here:

sam.nrel.gov/forum/forum-sdk/2949

For Generic Battery configurations, you should verify that system_use_lifetime_output = 1 and batt_ac_or_dc = 1.

Best regards,
Paul.
Last edit: 12 May 2020 15:54 by Paul Gilman.

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

Moderators: Paul Gilman
Powered by Kunena Forum