Below is an example of getting the total value of a variable of all the VAV’s. This is based on the above program set ups.
The below is getting the total vav airflow of all the VAV’s associated to their AHU. The add block will look at all the airflow variables and add them up to get the total airflow.
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 total of in the “colName” input. This is the exact variable name found in the bundle program. It’s case sensitive. In our case “airflow”.
The user would then link the gridSelectCol output to the input of the add block.
The add block output would then be linked to the input of the writable variable to use for the total airflow value. In our case “vavTotalAirflow”.