- Posts: 2
SAM to MATLAB code errors (Generic System and Battery)
- ggeorgiou
- Topic Author
Less
More
26 Mar 2020 11:18 #8069
by ggeorgiou
SAM to MATLAB code errors (Generic System and Battery) was created by ggeorgiou
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?
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.
- pgilman
Less
More
- Posts: 5423
12 May 2020 09:42 - 12 May 2020 09:54 #8184
by pgilman
Replied by pgilman on topic SAM to MATLAB code errors (Generic System and Battery)
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.
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 09:54 by pgilman.
Please Log in or Create an account to join the conversation.
Moderators: pgilman