Skip to content

Signal Test Generator

The Signal Test Generator automatically generates cyclic test values for all PLCInput signals on its parent interface. It discovers Bool, Float, and Int input signals and applies test patterns: sine waves for floats, on/off toggling for bools, and incrementing counters for ints.

Attach it to any interface GameObject to simulate signal activity without a real PLC connection. This is useful for testing interface communication, verifying signal routing, and demonstrating data exchange in demo scenes.

  1. Select the interface GameObject that contains your PLC signals as children
  2. Add the Signal Test Generator component (Tools > realvirtual > Interfaces > Signal Test Generator)
  3. Press Play — all PLCInput signals will start generating test values automatically

The component discovers signals at startup. If you add or remove signals at runtime, click Refresh Signals to re-scan.

PropertyDescription
Enable TestingEnable or disable test signal generation
Update IntervalTime in seconds between signal value updates
Sine AmplitudeAmplitude of the sine wave for float signals
Sine OffsetCenter offset of the sine wave for float signals
Sine FrequencyFrequency of the sine wave in Hz
Toggle IntervalTime in seconds between bool signal toggles
Int IncrementIncrement value per update cycle for int signals
Int MaxMaximum value before the int counter resets to zero
PropertyDescription
Cycle CountNumber of update cycles completed since play started

Each PLCInputFloat signal follows a sine wave: Offset + Amplitude * sin(2pi * Frequency * time + phase). Multiple float signals get different phase offsets so they don’t move in sync.

PLCInputBool signals toggle between true and false at the configured toggle interval. Even-indexed and odd-indexed signals toggle on opposite phases for visual variety.

PLCInputInt signals increment by the configured step each update cycle and wrap around at the maximum value. Multiple int signals get different offsets.

  • Interface demo scenes — Show live signal exchange without requiring a PLC
  • WebSocket testing — Verify server/client signal transmission with changing values
  • UI development — Generate varying signals for testing HMI displays and dashboards
  • Integration testing — Simulate signal activity for automated test scenarios