Omid TeimooriEngineer & educator
← All projects

Node-RED node / Open source

Data Generator

Generate test signals for dashboards, PLC interfaces, and IoT flows.

npm package: @omidteimoori/node-red-data-generator

SIGNAL EXPLORERConcept demo
+10−1time →

An interactive illustration of test signals. The Node-RED package runs in your own flow.

In practice

Test a flow before connecting equipment.

Test a dashboard or prototype a flow before connecting real equipment.

The task
A dashboard or PLC interface needs input data before real sensors and equipment are available.
My contribution
I built a configurable generator with controls for test patterns, value range, and generation interval.
The result
A flow can be exercised with repeatable or changing values while the hardware is disconnected.

Capabilities

  • Sine, random, rising, falling, square, triangle, exponential, sine with noise, and step-change patterns.
  • Configure minimum and maximum values, step size, and the generation interval.
  • Each sample supplies msg.payload with its value and msg.topic with the selected pattern.
Install in your Node-RED user directory
npm install @omidteimoori/node-red-data-generator

Restart Node-RED after installation.

Example setup · a bounded sine signal
Pattern: sinusoidal
Minimum value: 0
Maximum value: 100

Each sample:
msg.payload → generated value
msg.topic   → selected pattern
Package documentation ↗

From the project

Inside the node configuration.

The published node starts generating after deployment. These are its configured defaults; the signal illustration above is separate.

Editor source · data-generator.html
defaults: {
            name: { value: "" },
            datatype: { value: "sinusoidal" },
            frequency: { value: 1000 },
            min: { value: 0 },
            max: { value: 100 },
            step: { value: 1 }
        }

View the source ↗