Below is an example of getting the total count value of a grid. This is based on the above program set ups.

The below is getting the total count of all the VAV’s associated to their AHU. The gridSize block will read the size of the grid that the bundle variable is returning. This is based on how many VAV’s the “cityCenterVavProgram” is running on.

First the user will link the bundle variable to the val input of the gridSize block.

Then the user will link the gridSize output to the input of the writable variable to use for the total vav count value. In our case “totalVavs”.