Real-Time Simulator Signals

A simulator point can produce values that match several predefined signals. These points use the following syntax:

svrsim:<signal> [<datatype>] [<speed>] [<low-range>] [<high-range>] [<step-count>] [<period-and-offset>]
  • The order of the parameters can be changed except for low range, high range, and step count. The first number in the tag name must always be the low range, second will be the high range, and third will be the step count.
  • Parameters are usually separated with spaces, but comma, semicolon, and parentheses are also allowed.
  • The elements of the point name are not case sensitive.

The table below explains what the various parts mean. When an optional part is omitted, the default value is used.

Part name

Description

Optional

Default Value

signal

The name of the simulation signal or shape. Learn more

No

 

datatype

The data type of the variable. Learn more

When using string with a simulation signal, the value of the point will be a string with this text: computer-name: Value is v where computer-name is the name of the local computer and v is the current value of the simulation signal.

Yes

Double

speed

How fast the signal changes value. Possible values are: 

  • Slow
  • Med
  • Fast

Yes

Med

low-range

The low range for the simulation signal. Must be an integer or decimal number.

Yes

0

high-range

The high range for the simulation signal. Must be an integer or decimal number.

Yes

100

step-count

The number of steps for a step signal. Only valid when both low range and high range are defined.

Yes

10

period-and-offset

The period of the simulation signal and its offset, separated by + (for a positive offset) or - (for a negative offset).

Both period and offset should be in the form hh:mm:ss.s, where the hh part is optional for the period. For offset, hh and mm parts are optional. ClosedSee examples

Yes

Varies based on signal and range

Here are some examples of signal point names:

Example point name Description

svrsim:random int 255

Random integers between 0 and 255.

svrsim:sine -2.5 2.5

Sine wave of decimal numbers between -2.5 and 2.5.

svrsim:step int 5 25 10

Integer values from 5 to 25 that increments in steps of 10.

svrsim:ramp fast string

Rapidly changing ramp signal that returns textual values like "MYCOMPUTER: Value is 45.3". The value will in the range 0-100.

svrsim:sine double 1:00+15

Sine wave of decimal numbers from 0-100 that has a period of 1 minute and an offset of 15 seconds.