Below is an example of getting the average value of a variable of all the VAV’s. To find the min/max value, just replace the avg block with either min/max block. This is based on the above program set ups.
The below is getting the average of all the dampers in the VAV’s associated to their AHU. The avg block will look at all the damper variables and return the average.
First the user will link the bundle variable to the val input of the gridSelectCol block.
Then the user will specify the variable name of the point they would like to get the average of in the “colName” input. This is the exact variable name found in the bundle program. It’s case sensitive. In our case “damper”.
The user would then link the gridSelectCol output to the input of the avg block.
The avg block output would then be linked to the input of the writable variable to use for the average damper value. In our case “vavAvgDamper”.