发表于:2001-11-08 19:09:00
楼主
Feedback on Monitor Sets
Monitor and Control
To monitor is to obtain network variable values from the network
To control is to modify network variable values
Monitoring Techniques
Control Techniques
Monitor Sets
What is a Monitor Set?
Collection of Monitor Points
Created on a specific Network Interface
Used by Local, Full, and Independent Clients for Monitoring and Control
What is a Monitor Point?
A Network Variable that is being monitored
Monitor Sets can be independently turned on and off
Using Monitor Sets & Points
Create a Monitor Set
On a network interface (usually a local one)
May use a network interface that will be used by a Independent Client
Create the Monitor Point by adding the NV to the Monitor Set
A Network Variable can be added to multiple Monitor Sets
Monitor Points have independent Poll Rates
Monitor Sets
Create a new monitor set
ObjectServer.Networks.Network.MyVNI.MonitorSets.Add(“BigSet”)
Types of monitor points in that set
NvMonitorPoint – Network Variable
MsgMonitorPoint – Explicit Message
Start using an existing monitor set
MyVNI.MonitorSets.Item(“Pumps”).Open()
Adding a monitor point
myPumpsSet.NvMonitorPoints.Add(“pump1Speed”, nvObject, ConnDescTemplate
Enabling a monitor set all at once
myMonitorSet.Enable()
DataPoints
DataPoints returned by MonitorSet Updates
The MonitorPoint provides a context for the Data Point
The Data Point provides
Formatted Data
Raw Data
Format-Specifier Access
MonitorPoint Updates only return DataPoints
Context is implicit from the MonitorPoint that generated the update
DataPoint.Read()
DataPoint.Write()
Summary of Monitor Sets
Monitor Sets are made of Monitor Points
Data Points are provided in a known context
Monitor Sets provide:
Easy, fast starting/stopping of monitor applications
Logical sets of values to be monitored
Robust handling of Update Events