2.3.2. Point Values

Often when we use a DataHub point as a variable in a script, we don't want to evaluate it at the time that the code is being read. We want to simply quote it, and let it be evaluated when an event occurs. In these cases, we use the # quote operator when referring to a DataHub point, like this:

#$DataSim:Sine

Or, if the point name is within an expression that requires partial evaluation, the syntax would be like this:

@$DataSim:Sine

Please refer to Section 2.2.2, “The Read/Evaluate Cycle” for more details about evaluation, or to Section 4.3, “Accessing Data” for an example of this syntax in use.