145
Remarks
An Event monitors its Source for changes. When new data arrives, or the data changes, the Event is notified.
The setting of the Event’s match value determines whether the Event is signaled to execute on this change in
data.
The value of
Source
depends on the type of Event.
Event Type
Value of
Source
string
Clock, Timer, and Startup
“RTC”
Variable
Name of the Variable
Serial, DIO, A/D, Relay, and IR
“Port%d”, where %d represents a number
Telnet
IP address or host name of the Telnet
server to connect to.
GetEventType ( EventId )
GetEventType ( EventId )
GetEventType ( EventId )
GetEventType ( EventId )
Returns the type of the Event with a specified ID.
Syntax
HRESULT GetEventType(
[in] long EventId,
[out, retval] long* Type
);
Parameters
EventId
[in] ID for the specified Event.
Type
[out, retval] Type of the indicated Event.
Remarks
Type
is returned as one of the following values:
Value
Type
0
Unknown
1
Scheduled
2
Timer
3
Variable
4
Serial Input
5
Digital Input
6
A/D Input
7
Startup
8
Telnet
SetEventById ( EventId, Name, Type, Concurrent, Source, Match )
SetEventById ( EventId, Name, Type, Concurrent, Source, Match )
SetEventById ( EventId, Name, Type, Concurrent, Source, Match )
SetEventById ( EventId, Name, Type, Concurrent, Source, Match )
Sets the basic information about an existing Event.