DH_RegisterPoint, DH_RegisterExistingPoint — register with the Cascade DataHub for a point.
#include <cogent.h>
ST_STATUS DH_RegisterPoint(IP_hTASK myself, PT_pCPOINT ppoint, IP_hMSG hmsg, ER_hLIST elist );
ST_STATUS DH_RegisterExistingPoint(IP_hTASK myself, PT_pCPOINT ppoint, IP_hMSG hmsg, ER_hLIST elist );
This function informs the DataHub that this task should receive exceptions (value change notifications) for the named point. The DataHub will not generate an initial exception on the point, but instead returns the current value of the point in the ppoint structure. Subsequent exceptions will be transmitted to the task as type=IP_ASYNC messages with command=ST_EXCEPTION or command=ST_ECHO. DH_RegisterPoint will create the point on the DataHub if it does not exist. DH_RegisterExistingPoint will return an error if the point does not exist.
Copyright © 1995-2006 by Cogent Real-Time Systems, Inc. All rights reserved.