The scaler configuration file:
Provides a meaningful name to each scaler channel you care about.
Describes a set of scaler display pages (tabs in a tabbed notebook) and what to display in each page.
Optionally defines a stripchart and what is plotted on that chart.
A configuration file is just a Tcl script. A few extra commands have been added that allow that script to define the objects needed by the scaler program:
Associates a meaningful name with a scaler channel index from a specific source id. In addition, this command can define alarm levels, indicate whether the scaler is read incrementally or reset after each read and indicate the number of bits wide the scaler data from that channel are.
Defines a scaler display page. The command defines both a page title (long form) and the short form which is used to reference this page in other commands. The short form is also used to label the scaler page's tab in the scaler display tabbed notebook.
Adds a line to a page that displays a single scaler.
Adds a line to a page that displays a pair of scalers and their ratio of rates/totals.
Adds a blank line to a scaler page.
Enables stripcharting if it is not already enabled, and plots the rate of a scaler on the stripchart.
Enables stripcharting if it is not already enabled, and plots the ratio f the rates of two scalers on the strip chart.
Allows aspects of the strip chart to be configured. Specifically the number of seconds of history that are displayed on the time axis.
The scaler definition file below shows all of the features of scaler definition files:
Example 32-1. Scaler Definition files
page page1 {Source 1} page page2 {Source 2} for {set i 0} {$i < 32} {incr i} { set name [format channel%02d $i] channel $name $i.1 display_single page1 $name set name [format src2%02d $i] channel -incremental 0 $name $i.2 display_single page2 $name } page ratio ratios blank ratio display_ratio ratio channel00 src200 stripparam channel00 stripparam src200 stripratio channel00 src200 stripconfig -timeaxis 1200
On each pass through the loop, this command will create a new channel definition for data source 1.