windmueller Posted October 21, 2016 Posted October 21, 2016 Dear WAsP community,I would like to know whether there is a command in the Html script which will show me the full load hours for a wind farm in the report view. Therefore I just need to devide the "Net AEP" with the "rated hours".The comand for the "Net Aep" in the script is: "Builder.InsertClosedTableDataElement DataFormatting.FormatAep(Site.ProductionRose.SumOfSectorsAnnualNetProduction, False, MaxPower)""rated hours":Builder.InsertClosedTableDataElement Site.AsICalculatingHierarchyMember.CalculationByType(5).Associates.WindTurbineGenerator.SelectedPerformanceTable.PointWithHighestPower.Power/1000000 MsgBox(MaxPower)I tried a couple of combinations but it wasn#t working out. I hope you can help me - I wll appreciate it.Cheers windmueller.
Duncan Posted November 1, 2016 Posted November 1, 2016 What problem do you see? Is there an error? I suggest that you separate the calculations from the presentation. Create an intermediate variable to hold the intermediate result. Put the number into that, and then MSGBOX it to see that the calculation has worked. Then handle the writing as a separate operation.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now