Software Developoment Kit (SDK)

1 post / 0 new
heychrisaikens
Cell Type enum ordering mismatch

We are writing some custom wrappers around both the pvsamv1 and iec61853par modules, but are seeing a mismatch in the ordering of enum options between the two when using the SAM UI and the SSC SDKTool.

The enum for iec61853par has CdTe as the fifth option, but the SAM UI for the IEC61853 Single Diode Model option has CdTe listed third.

In addition, the only field in the SDK Tool that calls out the enum also has a different order (see below).

2 posts / 0 new
Last post
heychrisaikens
Cell Type enum ordering mismatch

We are writing some custom wrappers around both the pvsamv1 and iec61853par modules, but are seeing a mismatch in the ordering of enum options between the two when using the SAM UI and the SSC SDKTool.

The enum for iec61853par has CdTe as the fifth option, but the SAM UI for the IEC61853 Single Diode Model option has CdTe listed third.

In addition, the only field in the SDK Tool that calls out the enum also has a different order (see below).

2 posts / 0 new
Last post
xpeng37@wisc.edu
SDK needs more input variables than Desktop application

Hi Paul,

This question is about the number of input variables in SDK.

Let me take Photovaltaic, LCOE Calculator for example. Using the desktop application, under system design, system sizing. We can choose to specify either [desired system size] or [# of strings and inverters].
But in the python code it generated, I have to specify all three sizing variables as inputs:

ssc.data_set_number( data, b'system_capacity', xxx )
ssc.data_set_number( data, b'strings_in_parallel', xxx )
ssc.data_set_number( data, b'inverter_count', xxx )

3 posts / 0 new
Last post
toq1
battwatts input parameters

Where can I find the unit specifications/descriptions for the battwatts module in the SDKtool? I am interested in determining the options for the inputs for battery chemistry, dispatch, and meter position. There is no metadata listed describing the 0,1, or 2 options for these inputs.

2 posts / 0 new
Last post
xpeng37@wisc.edu
Call SAM using Excel VBA

Hi Paul,

Is it possible to call SAM directly from EXCEL using vba code?
I think it could since the code generator can generate vba code. I try that but it generated a bunch of csv files, I go through them and could not figure out where the vba code sits?
Could you point me to the code or provide me with an vba call SAM example?

Thanks,
Xinyue

2 posts / 0 new
Last post
xpeng37@wisc.edu
matlab ssccall fail and python 3 example

Hi Paul,

I am a new user of SAM SDK.

I first try to run the matlab example, but it fails to call the ssccall.m with an error "error: 'ssclib' undefined near line 23 column 21". Do you know how to solve the issue? Is this related to the C complier?

I also try to run the python example, but since I am using python 3, the syntax of the example doesn't match. Could I find an example written in python 3?

Thanks,
Xinyue

2 posts / 0 new
Last post
gorman_will
NSRDB and SAM Python APIs

Hello,

I am trying to use NREL's API to connect the NSRDB and SAM APIs and am recieving an error when trying to create an instance of 'ssc'. I have been able to import the sscapi package successful, but when I call:

ssc = sscapi.PySSC()

I get the following below error. Have I not set-up my installation correctly?

3 posts / 0 new
Last post
burakomersaracoglu
burakomersaracoglu's picture
Integration Possibility Of Tools & Models Under R&D

Dear SAM Developers;

We have been developing some tools and models (small software parts or models).

Can we integrate them to the SAM and present them on the SAM according to "Collaboration: Contribute new models, fix bugs, or work with NREL to implement new features that can be added to the NREL versions of SAM."? (directly on SAM)

If we can, what do we have to do and take into consideration in our R&D processes, studies, and publications?

Have a nice day

Best Regards

9 posts / 0 new
Last post
emiliocernadas@...
pvwatts version 5 calculator demo. sscphp.so

Hi,
I am trying to run pvwatts version 5 calculator demo, the php that comes in the sam open source folder. When I press the button "calculate" I get this error message: Fatal error: Call to undefined function sscphp_data_create() in /www/docs/FILE_PATH/pvwatts.php on line 267

Any idea how to fix it?

Probably is because I didn`t create the "sscphp.so"

Could it be possible to have the steps needed to create the dynamic library "sscphp.so" for a mac 10.10, please

thank you very much!
Best regards

1 post / 0 new
caseyzak24
unable to access singlediodeparams or singlediode compute modules

I am using the python SDK to try and run the singlediode and singlediodeparams modules. Below is my code (note that as far as I know it is all properly indented, but I couldn't get the formatting right in this post):

irr_value_goal = list(range(25,1025,25))
singlediodecurve25 = {'irr':irr_value_goal,'Imp':[],'Vmp':[],'I_sc':[],'V_oc':[],'Pmp':[],'All_V':[],'All_I':[]}
ssc = PySSC()
# ssc.module_exec_set_print(0)
#create the data container where everthing gets carried around
data1 = ssc.data_create()

Theme by Danetsoft and Danang Probo Sayekti inspired by Maksimer