PVWatts V1 user_poa Assign Array

4 posts / 0 new
Last post
MDuarte
PVWatts V1 user_poa Assign Array

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

Paul Gilman

Dear Miguel,

The user_poa 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.

MDuarte

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.

Paul Gilman

Dear Miguel,

Yes, that is correct.

Best regards,
Paul.

Theme by Danetsoft and Danang Probo Sayekti inspired by Maksimer