13.6. DataSim - a data simulation program

DataSim is a data simulation program that creates local data for the Cascade DataHub. It generates data for four different wave patterns, and sends these to the DataHub by a TCP connection.

As soon as DataSim starts, it attempts to connect to a DataHub and begins generating data. To receive the data, the Cascade DataHub should be set up as a mirroring master.

Connection Parameters

Host

The name or IP address of the host computer. Since DataSim connects via TCP, this can be any computer on the network running a Cascade DataHub acting as a mirroring master.

Service

The port number or service name as entered in the Master service/port entry box of the DataHub.

Status

Displays the attempts to connect, which change to Connected when the connection is made.

You can use the Reconnect button to reconnect and the Pause button to freeze all data generation. Press the Show button to view and change some of the data parameters:

Configurable Options

The following options can be set in DataSim, and sent to the Cascade DataHub. All of the numeric options have a corresponding point in the DataHub that contains the value. Thus, these values can be set from within the Data Browser, by selecting the point name and entering a new value for it.

Waveform Parameters
Amplitude

The height of the wave forms. DataHub Point name: Amplitude.

Offset

An offset from zero of the generated data, and thus the wave form. DataHub Point name: Offset.

Frequency

The frequency of the wave form. DataHub Point name: Frequency.

Data Domain

The Cascade DataHub data domain name for the data points. Any entry in this box changes the connection Status to IDLE. You must press the Reconnect button to reestablish the connection.

Update Frequency

The number of times per second that data changes and is sent to the Cascade DataHub.

Apply Changes

Applies any changes that have been entered for these configurable options. This button is greyed out until a change has been entered and can be applied.

Send data change as binary...

Allows you to send the data changes from DataSim in binary form, rather than as ASCII characters. This can speed data update rates substantially. This feature is only available on x86 machines.

Data Generation

For each of the following four variables, the check box stops or starts data generation, while the toggle button hides or shows the graph display. The numerical value is shown at the right of the graph.

SIN

Data generates a sine wave.

SQR

Data generates a square wave.

TRI

Data generates a triangular (45 degree) wave pattern.

RMP

Data generates a ramp wave—steadily increasing, followed by a sudden drop.

Display Mode

Controls how the data is displayed in the trend display. Scroll moves the wave from right to left as the data is generated. Old data scrolls off the left side of the display as new data scrolls in from the right. Wrap adds to the wave from left to right, and writes over old data.