Below is an example of getting the count of a certain value of a variable of all the VAV’s. This is based on the above program set ups.

The below is getting the count of occupied VAV’s of all the VAV’s associated to their AHU. The count block combined with the cmpEq block will look at all the occMode variables and return the amount that are set to true.

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 count of in the “colName” input. This is the exact variable name found in the bundle program. It’s case sensitive. In our case “occMode”.

The user would then link the gridSelectCol output to the val input of the count block.

The user would link the “it” variable to the first input of the cmpEq block.

Then type in “true” for the next input of the cmpEq block. In our example, “occMode” is a boolean type so the input value reflects that. If it’s a number, you can choose a number value and change the logical block accordingly etc.

Link the output of the cmpEq block to the iterator input of the count block.

The count block output would then be linked to the input of the writable variable to use for the occupied count variable. In our case “vavsOccupied”.