vrbls_to_stat
Purpose:
-
Create a statistical variable that contains the statistics for a list of variables
Enter:
-
vrbls_to_stat <filename>
Where:
-
filename
Specify the spec filename that contains the information needed to create a statistical variable that contains the statistics for a list of variables.
Example:
-
vrbls_to_stat /specs/vrbls_to_stat.spec
The above computes the statistics of a group of CyFlex variables that are listed in the spec file /specs/vrbls_to_stat.specs.
Notes:
-
The statistics are re-computed from the list of variables on each ‘@INTERVAL’. The values do not accumulate. For each interval, the statistics are cleared and re-computed from the new values of the variables.
The following is an example spec file:
@STAT_VARIABLE
# the name of the statistical variable that will contain the statistics of the ‘@VARIABLES’
@STAT_VARIABLE
# the name of the statistical variable that will contain the statistics of the ‘@VARIABLES’
Vrbls_stat
@INTERVAL
# the periodic interval that the ‘@VARIABLES’ are sampled.
1[sec]
@VARIABLES
vrbl_tmp1
vrbl_tmp2
vrbl_tmp3
vrbl_tmp4
vrbl_tmp5
@SYNC_EVENT
# optional event name that will be set when the Stat Variable has been updated. It will be
# created if it doesn’t exist
Vrbls_stat_rdy
@INTERVAL
# the periodic interval that the ‘@VARIABLES’ are sampled.
1[sec]
@VARIABLES
vrbl_tmp1
vrbl_tmp2
vrbl_tmp3
vrbl_tmp4
vrbl_tmp5
@SYNC_EVENT
# optional event name that will be set when the Stat Variable has been updated. It will be
# created if it doesn’t exist
Vrbls_stat_rdy