unable to access singlediodeparams or singlediode compute modules

  • caseyzak24
  • Topic Author
More
14 May 2018 16:56 #6241 by caseyzak24
I am using the python SDK to try and run the
Code:
singlediode
and
Code:
singlediodeparams
modules. Below is my code (note that as far a I can tell it is all properly indented but I couldn't figure out how to display it correctly in this post):
Code:
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() ssc.data_set_number(data1,b'alpha_isc',0.0007) ssc.data_set_number(data1,b'adj_ref',-3.86179) ssc.data_set_number(data1,b'a_ref',2.97911) ssc.data_set_number(data1, b'Il_ref', 1.8409) ssc.data_set_number(data1, b'Io_ref', 2.48981e-13) ssc.data_set_number(data1, b'Rs_ref', 4.96815) ssc.data_set_number(data1, b'Rsh_ref', 833.884) ssc.data_set_number(data1, b'T', 25) ssc.data_set_number(data1, b'I', 1000) ####RUN THE SIMULATION#### module = ssc.module_create(b'singlediodeparams') if ssc.module_exec(module, data1) == 0: print('singlediodeparams simulation error') idx = 1 msg = ssc.module_log(module, 0) while (msg != None): print(' : ' + msg.decode("utf - 8")) msg = ssc.module_log(module, idx) idx = idx + 1 SystemExit( "Simulation Error" ) a = ssc.data_get_number(data1, b'a') il = ssc.data_get_number(data1, b'il') io = ssc.data_get_number(data1, b'io') rs = ssc.data_get_number(data1, b'rs') rsh = ssc.data_get_number(data1, b'rsh')


The output is simply:

Code:
singlediodeparams simulation error


Based on the fact that no additional info is provided with the error (not the case for other compute modules), it seems to me that the
Code:
singlediodeparams
string is not being recognized by the
Code:
module_create()
method call. I have even checked the ssc source code to ensure that these compute modules aren't referred to by different names. I also confirmed that the irradproc module works fine with the same setup/environment. These single diode modules work fine using the SDKtool on my machine. I am running OSX on a Mac laptop.

This is likely just a stupid coding error but any help is greatly appreciated.

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

Moderators: pgilman
Powered by Kunena Forum