The relSwi.y trace ranges from 0 to 1 across 101 saved checkpoints. It begins at 1 and finishes at 0 after 1 s of test time. The source identifies the channel scale as logical state. Its first saved maximum occurs at 0 s.

The system being tested

Lawrence Berkeley National Laboratory publishes the Buildings test named OnOffPeriod. The source file places it under Controls, OBC, Utilities, PID With Autotuning, Relay. We used the 101 stored values for relSwi.y over the interval 0 to 1 seconds. This is a simulated test with specified inputs and boundaries.

The component declarations name onOffPer (On Off Period), modTim (Civil Time), relSwi (Pulse), retSig (Pulse). 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 0.87 s, relSwi.y reads 0 and retSig.y 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.

Length of the on period and the off period. The simulated relSwi.y channel runs from 0 to 1 source units over 1 seconds.
Length of the on period and the off period. The simulated relSwi.y channel runs from 0 to 1 source units over 1 seconds. Figure by Industry Applied.

Reproduce the calculation

The largest absolute change between consecutive stored points appears from 0.86 to 0.87 seconds. Subtracting 1 from 0 gives -1 source units. Its location brackets the change within one saved interval of 0.01 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)

relSwi.y (logical state)

retSig.y (logical state)

0

1

0

0.07

0

0

0.2

0

0

0.4

0

0

0.6

0

0

0.8

1

0

0.86

1

0

0.87

0

0

1

0

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, relSwi.y uses logical state and retSig.y uses logical state. 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.