Troubleshooting
Vijeo Historian log all samples for unchanged tag values
Short answer
A zero deadband only removes change filtering; it does not store repeated values. To keep every 00:05:00 sample of a stable tag, enable Log all samples on that historian tag, prove the result with raw-record queries, and make the change in the configuration that owns the tag so synchronization cannot revert it.
On this page
- Why a five-minute trend stores so few rows
- Separate the three layers before you change anything
- The decision table
- Example: how many rows does a stable 00:05:00 tag produce per hour?
- Test Log all samples without touching acquisition
- Make the setting survive synchronization
- Storage and the decision
- Questions asked
In Citect 2015 SP1, a trend with a sample period of 00:05:00 and historize set to TRUE delivers samples to Vijeo Historian, but the historian stores a row only when the value changes. The fix is the Log all samples attribute on the historian logging tag, not a shorter sample period and not a controller-side workaround. Enable it, prove it with raw records, and make the change where the configuration is owned so synchronization cannot revert it.
Why a five-minute trend stores so few rows #
A sample schedule and a storage policy do different jobs. The Citect trend sample period decides when the acquisition system reads the value; the historian then decides which received samples it keeps. If the logging policy suppresses repeated values, a stable process yields continuous acquisition but only a handful of physical database records.
A deadband defines a value-change threshold. Duplicate suppression asks a different question: does another sample with the same value need its own record? Your deadband is already 0, so every changed value is kept; that alone does not store repeats. A flat line on a chart or a report returning a value at every requested time proves nothing either, because both can be interpolated from sparse rows.
The layer that already works is historize: existing database values show the Citect-to-historian path is healthy, so changing it during diagnosis would hide the real variable. This is the same distinction that separates change filtering from storage behavior in deadband logging, covered in the article on historian deadband style Auto vs Discrete.
Separate the three layers before you change anything #
Work on one affected tag and inspect the same time window at each layer. Change only one setting at a time; simultaneous edits hide which one controls the result.
- Confirm the displayed object, the Citect trend tag and the historian logging tag refer to the same process signal. A screen bound to a different tag makes a storage problem look contradictory.
- Read the trend configuration on the running system, not just an edited project: the sample period of 00:05:00 and historize = TRUE.
- Check current value, quality and communications status through the acquisition path. Repeated healthy values differ from a frozen value caused by lost communications.
- Inspect the historian tag's logging attributes and record the current Log all samples state and the deadband of 0.
- Query raw stored values and timestamps for a stable interval and for an interval containing a normal process change, recording any quality information the historian exposes.
If changing values appear but stable intervals produce no new records, retention policy is the problem. If changing values also fail to arrive, investigate tag mapping, the historian connection and the acquisition path first; a missing-tag symptom has its own causes, described in the article on historian tags missing from records.
The decision table #
| Layer | Setting in your case | What it controls | Decision |
|---|---|---|---|
| Retain repeated samples | Log all samples in the historian tag's logging attributes | Whether identical received samples each get a row | Enable it and test both storage and synchronization persistence |
| Change filtering | Historian deadband, already 0 | Minimum change needed to store a new value | Leave at 0; it does not retain repeats |
| Acquisition frequency | Citect trend sample period, currently 00:05:00 | When the value is read | Leave unchanged; it does not touch retention |
| Historical inclusion | Citect trend historize, already TRUE | Whether the tag flows to the historian at all | Leave unchanged; existing rows prove the path works |
Example: how many rows does a stable 00:05:00 tag produce per hour? #
The inputs: a Citect trend sample period of 00:05:00, taken from the configured trend, and an hour of uninterrupted operation.
The rule: sample opportunities per hour equal 60 minutes divided by the sample period in minutes, and each opportunity stores one row when Log all samples is enabled.
The arithmetic: 60 / 5 = 12 sample opportunities per hour; over a day, 12 x 24 = 288 opportunities.
The result: with Log all samples enabled, a fully stable tag stores up to 288 rows per day, where the change-only policy stored a handful.
The decision: budget historian storage on that 288-per-day figure per stable tag as an upper bound, and verify actual totals by comparing consecutive scheduled timestamps in a raw-record query rather than trusting a count, since missed scans and query boundaries reduce the observed total.
Test Log all samples without touching acquisition #
- Choose a noncritical signal that stays stable long enough to span several scheduled samples. Use an approved test signal; do not manipulate operating equipment to create records.
- Capture the baseline: logging attributes, trend configuration, and raw database records for the selected tag over a stable interval.
- Enable Log all samples in that tag's logging attributes and apply the configuration through the historian's documented configuration workflow.
- Read the effective setting back after applying it and confirm it belongs to the intended logging tag.
- Keep the sample period at 00:05:00, historize at TRUE and the deadband at 0 for the whole comparison, so the only variable is the new attribute.
- Let a stable interval span several sample opportunities, then retrieve raw records after ingestion completes.
- Compare stored values and timestamps against the baseline. Repeated stored values with their own timestamps are the proof; extra plotted points are not.
Make the setting survive synchronization #
A setting can produce correct logging yet still be replaced at the next synchronization, so treat configuration and configuration ownership as separate questions.
- Record the enabled Log all samples state and keep the successful raw-record results as the reference.
- Determine whether the attribute is held locally in the historian or regenerated from the Citect configuration; the integration documentation for your installed version identifies the owning side, and some integrations allow historian tag properties to be configured from the SCADA server so a manually edited attribute is simply overwritten.
- Run the normal Citect-to-historian synchronization under your site's change-control process.
- Reopen the same logging tag and read the setting again.
- If it reverts, make the change in the owning upstream configuration or a documented synchronization override, not by repairing the generated tag each time.
- Repeat the stable-value logging test after synchronization, even if the checkbox survived.
If the integration offers no persistent configuration path, get the supported method from the manufacturer's official support channel before applying the change across all tags.
Storage and the decision #
Storing every sample increases database growth compared with change-only logging; the 288-rows-per-day-per-stable-tag figure above is the sizing input, and your retention and pruning settings should absorb it. Enable Log all samples on one noncritical tag first, prove it with raw records, confirm it survives a synchronization, and roll it out to the remaining stable tags. If you also need a fixed-cadence record independent of value change, a separate cyclic logging scheme is a different tool, as covered in the article on why one-second cyclic tags store as deltas.
One safety note: never shorten the sample period or modify the controller to force value changes purely to generate historian rows; the logging policy is the correct and safe place to solve this.
Questions asked
Why doesn't a zero deadband already store every sample?
The deadband sets how large a value change must be before the change itself is stored. With the deadband at 0, every new value that differs is kept. Unchanged values are a separate question: whether a repeat of the same value needs its own row. Only Log all samples answers that question, and its default behavior does not.
How many records does a five-minute trend produce per hour?
Twelve sample opportunities per hour, since 60 divided by 5 is 12. With Log all samples enabled, a fully stable tag produces up to those twelve stored rows per hour, roughly 288 per day. That is an upper bound: query boundaries, missed scans and timestamp handling change the total, so compare consecutive scheduled timestamps rather than trusting the count alone.
Will the Log all samples change survive Citect synchronization?
Not automatically. If the integration regenerates the historian tag from the Citect configuration, a manually edited attribute is replaced at the next synchronization. Read the setting back after a synchronization; if it reverts, make the change in the owning upstream configuration or through the manufacturer's documented override instead of repairing the generated tag repeatedly.
Does enabling Log all samples affect existing stored history?
No. The setting governs which future received samples are retained; it does not rewrite or backfill records already in the database. Historical intervals before the change keep exactly the records they had, so the raw-record comparison between baseline and after the change is the only evidence of the new behavior.