Tiza Group

Home / Guides / Testing, commissioning and faults

Missing Current Samples in the Record

Gaps or flat stretches in the current of a COMTRADE record: causes (variable rate, lost frames, time) and how to measure them. We configure it remotely.

By Shadai García, CEO and protection engineer at Tiza Group.

Short answer

When a record's current is missing samples, separate three things: a record with a variable sampling rate that the viewer reads as uniform, samples the device never received or retained (lost frames, time jumps) and an incomplete file. They are told apart by comparing sample number, timestamp and file size against what the configuration file declares.

Symptom

When opening a fault record, the current of one or more phases has something that does not add up: a straight stretch where there should be a wave, a step that does not coincide with the fault, a phase jump between two neighboring samples, or a total record duration shorter than configured. In other cases the viewer shows a healthy current, but a time or magnitude calculation based on the samples gives odd results. The problem tends to appear more with records taken from sampled values on a process bus than with direct analog inputs.

To understand how a COMTRADE file is organized, what the configuration file declares and what the data file holds, see the guide on COMTRADE files: .cfg, .dat, .hdr and .inf format. This guide only helps you decide why samples are missing and what to do about it.

Probable causes, from most to least likely

CauseHow to recognize itWhat confirms or rules it out
Variable sampling rate that the viewer treats as uniformPrefault or postfault looks compressed or stretched; the sample total does not match the durationIn the configuration file, a number of rates greater than one and the last sample number of each rate
Sampled value frames lost or flagged invalidBrief, irregular gaps in time; sometimes a repeated value in those samplesLost-frame counters and sample quality in the field unit and in the relay
Clock jump or correction during the recordA single timestamp jump, with the wave continuous or with a small overlapTime synchronization events near the fault
Incomplete or truncated fileThe data file is smaller than expected; the record ends earlier than configuredCompare the actual size with the size expected from the number of samples and channels
Resampling, decimation or format conversionFewer samples per cycle than in the original device, uniformlyCompare the file’s rate with the device’s and with the exported format
Analog input saturationClipped peaks, not gaps: the value sticks at a ceilingRepeated maximum value and comparison with the channel range; it is a channel problem, not a sampling one

The last row is included to rule it out: a clipped peak looks like a missing sample, but it is solved with range and transformation ratio, not with sampling rate. If the symptom is that waveform, see COMTRADE record that does not match the relay setting.

How to diagnose it

  1. Read what the configuration file declares. Note the number of sampling rates, the frequency of each, the last sample number of each rate and the total number of samples. In a single-rate record, the last sample number equals the total.
  2. Calculate the expected duration. For each rate, the number of samples divided by its frequency gives its duration; the sum must match the record duration shown by the device.
  3. Compare with the data file. Check that the number of rows matches the declared total. In binary format each row has a constant size that depends on the number of channels; dividing the file size by the row size gives the number of samples, which must be an integer.
  4. Look for gaps in time. With a script or with the viewer, calculate the timestamp difference between consecutive samples. It must equal the sampling period of that stretch; a larger difference is a real gap and a smaller one, an overlap.
  5. Tell a gap from a repeated value. If the timestamp advances regularly but the value stays constant over several samples, the device held the last value; this points to the data source, not the file.
  6. Check the source. If the record comes from sampled values, compare with the lost-frame counters and sample quality; the guide on sampled values lost on the process bus details that search.
  7. Download again. If the file is incomplete, download it again and compare sizes; if there is no difference, the truncation originated in the device.

Illustrative example

Generic situation with invented figures. A record declares two rates: 960 samples per second up to sample 192 and 4,800 samples per second up to sample 2,592. That is 192 samples at 960 Hz, or 0.2 s of prefault with 16 samples per cycle at 60 Hz, and 2,400 samples at 4,800 Hz, or 0.5 s with 80 samples per cycle. The total duration is 0.7 s for 2,592 samples.

A viewer that assumes a single 4,800 Hz rate calculates 2,592 ÷ 4,800 = 0.54 s and compresses the prefault to 192 ÷ 4,800 = 0.04 s: the healthy wave suddenly looks shorter and the fault inception appears 0.16 s earlier than it really is. It looks as if samples are missing, and none are: the correct reading is stretch by stretch. With the interpretation corrected, the fault starts at 0.2 s and the duration is 0.7 s.

In another record, with a single 4,800 Hz rate, the timestamp advances 208.3 microseconds per sample, except at one point where it advances 833.3 µs, meaning three samples are missing. Those 625 µs are equivalent to 13.5 electrical degrees at 60 Hz. With the fault inception inside that gap, the apparent pickup time shifts by up to 0.6 ms. That record is flagged as incomplete, it is not interpolated to calculate clearing time, and the source’s lost-frame counter is checked.

Field checklist

  • Record and its configuration and data files downloaded complete, with their size noted.
  • Number of rates, frequencies and last sample number of each stretch read.
  • Expected duration calculated and compared with the device’s.
  • Number of rows in the data file equal to the declared total.
  • Timestamp difference between consecutive samples checked with a script.
  • Repeated value distinguished from a gap in time.
  • Time and synchronization events near the fault consulted.
  • Lost-frame counters and sample quality checked, if the source is a process bus.
  • Device rate compared with the exported file’s.
  • Record flagged as incomplete when there are unexplained gaps.

What to do

  • Variable rate misread: configure the viewer to read stretches, or use one that does; do not change the file.
  • Lost frames: fix the source (network, subscription, field unit) following the sampled values guide and record again with a test or with the next event.
  • Time jumps: check the device’s synchronization; a jump during the fault compromises comparison with other records.
  • Truncated file: download again; if the device is what truncates, check the configured duration, prefault and memory.
  • Conversion: export with the original rate or state the file’s rate when sharing it.
  • Use of the record: if there are gaps, state the affected range in the report and do not use it to calculate anything that depends on that range.

What not to do

  • Do not interpolate the gaps and present the result as a measurement.
  • Do not validate a setting or calculate a clearing time with a stretch that has missing samples without pointing it out.
  • Do not open the secondary of an energized current transformer to test the record; injection tests are done with the circuit de-energized and per the procedure.
  • Do not edit the data file to cover a gap; keep the original.
  • Do not assume the wave is continuous because the viewer draws it continuous. The viewer joins points; check the timestamps.
  • Do not dismiss the symptom for being brief: a few samples can contain exactly the instant of the fault.

When to call us

If your relays’ or recorders’ records show gaps you cannot explain, or you need to adjust rate, duration and synchronization so the records are complete and comparable, we review the configuration of the device and the process bus and leave a test that proves it. We configure it remotely.

References

  • IEEE C37.111, Measuring Relays and Protection Equipment. Common Format for Transient Data Exchange (COMTRADE) for Power Systems; IEC 60255-24, Measuring relays and protection equipment. Common format for transient data exchange (COMTRADE) for power systems.
  • IEC 61850-9-2, Communication networks and systems for power utility automation. Specific communication service mapping: sampled values over ISO/IEC 8802-3.
  • 9-2LE implementation guideline (80 samples per cycle profile): 4,000 samples per second at 50 Hz and 4,800 at 60 Hz.
  • Recorder manual, for its rate, prefault and memory policy.

Frequently asked questions

Is a missing sample the same as a lost channel?

No. A lost channel appears flat or absent across the whole record. A missing sample is a gap in time within a channel that does exist: the timestamp jumps, the value repeats or the waveform shows a step.

Can I fill the gaps by interpolation to use the record?

Only for display, and marked as such. An interpolated stretch is not a measurement, and must not be used to validate a setting or to calculate clearing time without stating which part of the calculation rests on reconstructed data.

How much information is lost if a few samples are missing?

It depends on the rate. At 4,800 samples per second, three consecutive samples span 625 microseconds, about 13.5 electrical degrees at 60 Hz. That can hide the start of a fault or a current peak, even if the waveform looks continuous.

WhatsApp