beautypg.com

Updateevent – Echelon OpenLNS User Manual

Page 1002

background image

OpenLNS Programmer's Reference

965

Syntax

object.

UpdateErrorEvent

updateType

Element

Description

object

An object that implements the

ILcaMsgMonitorPointListener

interface.

updateType

A value indicating the type of monitor

point update which returned an error.

This will be set to 1.

Added to API

LNS Release 3.0.

UpdateEvent

Summary

Allows an object to execute a callback for message monitor

point updates. This can only be used in multi-threading

programming environments such as Visual C++. It cannot be

used in Visual Basic. To cause events to be generated in this

manner, follow these steps:
1. Create an object that implements the

ILcaMsgMonitorPointListener interface.

2.

Define the object's behavior when the

UpdateEvent

method is called

.

3.

Call the

Advise

method of the

MsgMonitorPoint object

with the object created in step 1 as the object element.

OpenLNS will then provide event notification of update

errors for the selected monitor point using callbacks

instead of Windows messaging.
You must call the Advise method from the event handler

that is handling the update error events for the message

monitor point. For more information on this, see the

Advise

method of the

MsgMonitorPoint object.

For completion code messages, the InputDp, OutputDp, and

Src parameters are NULL.

Availability

Local and full clients.

Syntax

UpdateErrorEvent

(UpdateType as Integer)

Element

Description

object

An object that implements the

ILcaMsgMonitorPointListener interface.

updateType

A value indicating the type of message

monitor point update. This will be set to

0.

inputDp

The DataPoint object containing the

message monitor point update.

The InputDp parameter's

AutoRead

and

AutoWrite

properties are set to False.

outputDp

A DataPoint object that allows a

response to be sent if the update is a