The idxSta.y[1] trace ranges from 1 to 3 across 101 saved checkpoints. It begins at 1 and finishes at 3 after 7 s of test time. The source identifies the channel scale as integer or state code. Its first saved maximum occurs at 5.04 s.
The system being tested
Lawrence Berkeley National Laboratory publishes the Buildings test named SelectSortedAvailable. The source file places it under Templates, Plants, Controls, Staging Rotation. We used the 101 stored values for idxSta.y[1] over the interval 0 to 7 seconds. This is a simulated test with specified inputs and boundaries.
The component declarations name selSorAva (Select Sorted Available), intScaRep (Integer Scalar Replicator), selEquSta (Select Equipment At Stage). The source declares nEquAlt = 2. These identifiers can be found in the linked model definition. Check how they connect to the plotted quantity before comparing it with a field meter or a differently named controller tag.
Compare the recorded channels
The two named channels have separate paths in the model. idxSta.y[1] begins at 1 and ends at 3. selSorAva.y1[2] begins at 0 and ends at 1. The reference export supplies numerical samples but does not attach a physical unit to these fields. Use the linked model declarations to establish the quantity and units of each channel before calculating a difference or assigning it a physical meaning.
Reproduce the calculation
The largest absolute change between consecutive stored points appears from 0.98 to 1.05 seconds. Subtracting 1 from 2 gives 1 source units. Its location brackets the change within one saved interval of 0.07 seconds. It does not identify an unobserved instantaneous peak or the exact crossing time.
The worked table retains the first and last points, the primary maximum and minimum, the largest adjacent change and a spread of checkpoints across the run. Rounding is for presentation. Use the full linked reference series to repeat integrals or compare events between checkpoints. The archived sampling interval need not match the simulation solver’s internal step.
Worked data
Simulation time (s) | idxSta.y[1] (integer) | selSorAva.y1[2] (logical state) |
|---|---|---|
0 | 1 | 0 |
0.98 | 1 | 0 |
1.05 | 2 | 0 |
1.4 | 2 | 0 |
2.8 | 2 | 1 |
4.2 | 2 | 1 |
5.04 | 3 | 0 |
5.6 | 3 | 0 |
7 | 3 | 1 |
What to check on site
Record each condition, calculated request and issued output as separate tags. Keep timestamps and the sample or event rule with the export. A stable displayed value may be held by logic after the measured input has changed.
State the operating duty, measurement location and expected tolerance before evaluating a local trend. Re-run the comparison with the installed controls and instruments during a representative operating period. Retain the native units and the raw export so that a later change in software or presentation can be investigated.
Units in the source model
The component declarations identify the scale of the exported variables. In this run, idxSta.y[1] uses integer or state code and selSorAva.y1[2] uses logical state. Keep the exact channel name and unit together when exporting data to a historian. Read the component definition.
Checking the two recorded channels
At 1.05 s, idxSta.y[1] reads 2 and selSorAva.y1[2] reads 0. Across the run, the second channel ranges from 0 to 1. Compare the timing of changes on the two traces. A numerical difference between these channels has no demonstrated physical meaning without matching quantity definitions and units.
Data and source model
Published model and component definitions. Numerical reference series. Simulation and plot commands. Download the worked checkpoints in CSV format.


![Equipment selection at a given stage, given a priority order. idxSta.y[1] (source units) ranges from 1 to 3 across the recorded simulation time (s) interval of 0 to 7. Bands show the minimum and maximum per group of samples. Crossbars mark the median.](/story-art/edd64f11168b764d7.webp)