- Posts: 12
PVWatts V1 user_poa Assign Array
- MDuarte
- Topic Author
Less
More
28 Feb 2017 13:18 #5185
by MDuarte
PVWatts V1 user_poa Assign Array was created by MDuarte
Good evening Paul,
I have yet another question regarding the usage of POA values, this time in PVWatts v1. I´ve enabled usage of POA values by setting "enable_user_poa" to 1, but this returns an error, asking me to assign values to the array variable "user_poa"
To do this I´m trying to use the vbassc_data_set_array Function, but I´m running into trouble there.
I have my POA values in the last column of my weather file, but don´t know how to use the set_array function to retrieve that column as an array, could you help me out with this?
I´m guessing it should look something like this:
vbassc_data_set_array p_data, "user_array", value, length
But I don´t know what values to assign to value or length.
Thank you (once again!) for any and all help,
Kindest regards,
Miguel Duarte
I have yet another question regarding the usage of POA values, this time in PVWatts v1. I´ve enabled usage of POA values by setting "enable_user_poa" to 1, but this returns an error, asking me to assign values to the array variable "user_poa"
To do this I´m trying to use the vbassc_data_set_array Function, but I´m running into trouble there.
I have my POA values in the last column of my weather file, but don´t know how to use the set_array function to retrieve that column as an array, could you help me out with this?
I´m guessing it should look something like this:
vbassc_data_set_array p_data, "user_array", value, length
But I don´t know what values to assign to value or length.
Thank you (once again!) for any and all help,
Kindest regards,
Miguel Duarte
Please Log in or Create an account to join the conversation.
- pgilman
Less
More
- Posts: 5447
28 Feb 2017 15:01 #5186
by pgilman
Replied by pgilman on topic PVWatts V1 user_poa Assign Array
Dear Miguel,
The
array should be a single column of data with 8760 rows.
You will have to write code in VBA to extract the data from the weather file and read it into a VBA array, and then use the vbassc_data_set_array() function to set the value of the SSC input.
Best regards,
Paul.
The
Code:
user_poa
You will have to write code in VBA to extract the data from the weather file and read it into a VBA array, and then use the vbassc_data_set_array() function to set the value of the SSC input.
Best regards,
Paul.
Please Log in or Create an account to join the conversation.
- MDuarte
- Topic Author
Less
More
- Posts: 12
01 Mar 2017 12:04 #5187
by MDuarte
Replied by MDuarte on topic PVWatts V1 user_poa Assign Array
Dear Paul,
Just to clear one last thing, for the data_set_array function, the "value" shall be the name of the array I create, and length shall be 8760, correct?
Thank you so much for your time,
Kindest,
Miguel D.
Just to clear one last thing, for the data_set_array function, the "value" shall be the name of the array I create, and length shall be 8760, correct?
Thank you so much for your time,
Kindest,
Miguel D.
Please Log in or Create an account to join the conversation.
- pgilman
Less
More
- Posts: 5447
02 Mar 2017 17:27 #5188
by pgilman
Replied by pgilman on topic PVWatts V1 user_poa Assign Array
Dear Miguel,
Yes, that is correct.
Best regards,
Paul.
Yes, that is correct.
Best regards,
Paul.
Please Log in or Create an account to join the conversation.
Moderators: pgilman