WaveWare Adaptive AlphaNet User Manual

Page 106

Advertising
background image

How to use real-time data in a message

106

3 — Creating and sending messages

Table 18: Alpha® String Update Control Methods & Properties

METHODS

Initialize

Syntax:

AlphaStringUpdateCtrl.Initialize

Parameters:

none

Remarks:

Method must be called prior to calling any
other method of this control. This method
opens a COM port or creates a socket
connection to the display.

UpdateString

Syntax:

AlphaStringUpdateCtrl.UpdateString(“String
Label”, Value, Color, Flash)

Parameters:

String Label — String. One character only.

(In the previous example, the String Label is
1.)

Value — String. This is the value to be

passed and displayed.

Color — Integer. 1 = Red, 2 = Green, 3 =

Amber.

Flash — Byte. 0 = off, 1 = on.

Remarks:

This method will pass any value to the
designated string. The Color parameter will
override any color definition set by the
message itself. The Flash parameter will only
work in the Hold mode.

PROPERTIES

ConnectMode

Type:

Byte

Values:

0 = Serial connection, 1 = TCP/IP connection

NetworkAddress

Type:

String

Values:

TCP/IP address of the network adapter. (Only
applicable to a TCP/IP connection.)

NetworkPort

Type:

Integer

Values:

3001 (default)

SerialBaudRate

Type:

Integer

Values:

110, 300, 600, 1200, 4800, 9600, 14400,
19200, 28800, 38400, 56000, 115200,
128000, 256000

SerialComPort

Type:

Byte

Values:

1 through 16

SerialDataBits

Type:

Byte

Values:

4 through 8

SerialParity:

Type:

String

Values:

None, Even, Odd, Mark, Space

SerialStopBits

Type:

Byte

Values:

1 or 2

Serial Address

Type:

Integer (use 2 digits)

Values:

00 (default)

Advertising