> For the complete documentation index, see [llms.txt](https://docs.heisenware.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.heisenware.com/reference/functions/utilities.md).

# Utilities

Utilities are the classes that need no machine and no external system: they process data, keep state, measure and schedule time, generate documents and barcodes, and stand in for sources that are not connected yet. You find them under **Utilities** in the Functions explorer; the internal agent **Utility Functions** serves all of them except PDF templates, which comes from the **Templates** agent.

## Available utility classes

<table><thead><tr><th width="220">Class</th><th>Description</th></tr></thead><tbody><tr><td><a href="https://docs.heisenware.com/reference/functions/utilities/barcode-generation.md">Barcode Generation</a></td><td>Encodes text as a 1D or 2D barcode and answers the image.</td></tr><tr><td><a href="https://docs.heisenware.com/reference/functions/utilities/counter.md">Counter</a></td><td>A numerical value you increment, decrement, set and reset, with <code>onChange</code>.</td></tr><tr><td><a href="https://docs.heisenware.com/reference/functions/utilities/cron.md">Cron</a></td><td>A calendar schedule set at birth, firing <code>onTick</code>.</td></tr><tr><td><a href="https://docs.heisenware.com/reference/functions/utilities/data-processing.md">Data Processing</a></td><td>Merges, filters, reshapes and maps values: echo, memory, combine and the rest of the everyday toolbox.</td></tr><tr><td><a href="https://docs.heisenware.com/reference/functions/utilities/data-simulation.md">Data Simulation</a></td><td>Random values, random records and fixed demo datasets for laying out a page.</td></tr><tr><td><a href="https://docs.heisenware.com/reference/functions/utilities/signal-simulation.md">Signal Simulator</a></td><td>The time series of a source that is not connected yet: seeded signals, or a preset for a silo, tank, pump, conveyor, machine, energy meter or production orders.</td></tr><tr><td><a href="https://docs.heisenware.com/reference/functions/utilities/event-simulation.md">Event Simulation</a></td><td>Impulses: manual with a payload, periodic, one-shot and debounced.</td></tr><tr><td><a href="https://docs.heisenware.com/reference/functions/utilities/pdf-processing.md">PDF Processing</a></td><td>Builds PDFs from JSON or HTML and merges documents and pictures into one.</td></tr><tr><td><a href="https://docs.heisenware.com/reference/functions/utilities/pdf-templates.md">PDF Templates</a></td><td>Fills a layout designed in the Template editor with your data.</td></tr><tr><td><a href="https://docs.heisenware.com/reference/functions/utilities/stopwatch.md">Stopwatch</a></td><td>Elapsed milliseconds and laps.</td></tr><tr><td><a href="https://docs.heisenware.com/reference/functions/utilities/timer.md">Timer</a></td><td>A countdown with <code>onTick</code> and <code>onTimeup</code>, and delays in a flow.</td></tr><tr><td><a href="https://docs.heisenware.com/reference/functions/utilities/users.md">Users</a></td><td>Lists an App's users and hands out access links.</td></tr></tbody></table>

Three more Utility Functions classes keep data rather than process it, and the Functions explorer lists them under **Storage**: [Buffer](https://docs.heisenware.com/reference/functions/storage/buffer.md), [Accumulator](https://docs.heisenware.com/reference/functions/storage/accumulator.md) and [Data Store](https://docs.heisenware.com/reference/functions/storage/data-store.md).

{% hint style="info" %}

#### Building with simulated data

Simulated data belongs at the source, not in the middle of a flow. Give the [Signal Simulator](https://docs.heisenware.com/reference/functions/utilities/signal-simulation.md) the shape of the real signal and let it feed the real sink: the OPC UA server, the publish, the widget. The flow then reads its source as it will read the machine, and connecting the machine later changes one address, not the logic.

[Data Simulation](https://docs.heisenware.com/reference/functions/utilities/data-simulation.md) is for the other job: filling a page with plausible records and fixed demo datasets while you lay it out.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.heisenware.com/reference/functions/utilities.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
