The idxSta.y[1] trace ranges from 1 to 5 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 4.06 s.
The system being tested
Lawrence Berkeley National Laboratory publishes the Buildings test named SelectEquipmentAtStage. 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 selEquSta (Select Equipment At Stage), intScaRep (Integer Scalar Replicator). 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
At 1.05 s, idxSta.y[1] reads 2 and selEquSta.nReq reads 0. Across the run, the second channel ranges from 0 to 3. 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.
![Equipment selection at a given stage. The simulated idxSta.y[1] channel runs from 1 to 5 source units over 7 seconds.](https://static.wixstatic.com/media/21e41b_40356abc467c4fec870c8a33b77bf3ec~mv2.png/v1/fill/w_616,h_345,al_c,q_85,enc_auto/21e41b_40356abc467c4fec870c8a33b77bf3ec~mv2.png)
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) | selEquSta.nReq (integer) |
|---|---|---|
0 | 1 | 1 |
0.98 | 1 | 1 |
1.05 | 2 | 0 |
1.4 | 2 | 0 |
2.8 | 3 | 1 |
4.06 | 5 | 3 |
4.2 | 5 | 3 |
5.6 | 4 | 2 |
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 selEquSta.nReq uses integer or state code. Keep the exact channel name and unit together when exporting data to a historian. Read the component definition.
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. idxSta.y[1] (source units) ranges from 1 to 5 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/f9482ba4a14eecca6.webp)