Testing with SIMRX

The SIMRX command forces Omniscope to simulate receiving the indicated message. This is a useful technique for testing a script or a program. To test a script, you can simultaneously run another script that uses the SIMRX command to simulate real network traffic. Both scripts (and any other Omniscope modules running at the time) will receive the simulated data.

The syntax is SIMRX address pgn data . Note the addition of the simulated source address.


:Set up some buttons for testing a genset monitoring script
BUTTON "Simulate Gen Off" {SIMRX 40 1FFDC 00 FF FF FF FF FF FF FF}
BUTTON "Simulate Gen On" {SIMRX 40 1FFDC 01 FF FF FF FF FF FF FF}