datahub_write (pointname, value [, force, quality, timestamp])
The name of the point, as a string.
The value to be assigned to the point—a number, string, or array.
The quality of a point, as a number. You can use the constants OPC_QUALITY_* found in GetQualityName by requiring that file like this: require("Quality.g");.
The time stamp in Windows time. Windows time is a floating point number that can be obtained in Gamma by requiring Time.g like this: require("Time.g");, then calling the functions GetCurrentWindowsTime, UnixTimeToWindowsTime, or PointGetWindowsTime.
This function is the same as the Gamma force function, but the pointname is a string, so the symbol never needs to be created in the Gamma engine. This can be used to reduce Gamma engine load when using a large number of points.
Copyright © 1995-2010 by Cogent Real-Time Systems, Inc. All rights reserved.