write_existing_point, write_point
write_existing_point,
write_point — write point values.
write_existing_point (symbol, value, seconds?, nanoseconds?)
write_point (symbol, value, seconds?, nanoseconds?)
symbolA point name, as a symbol.
valueAny numeric or string expression.
secondsNumber of seconds since Jan 1st, 1970.
nanosecondsNumber of nanoseconds within the second.
These functions write a point value to the DataHub program. If the point
does not exist in a DataHub instance, write_point will
create the point and set its value.
write_existing_point will return nil if the point does not
exist.
Gamma>init_ipc("writer","wq");tGamma>write_existing_point("my",150);nilGamma>write_point(#my,120);tGamma>write_point(#dog,130,450000000);tGamma>write_point("has",140);tGamma>write_point("fleas",150,1210947,2134444);tGamma>write_existing_point("my",600);tGamma>
These points can be viewed in the DataHub instance (sorted in alphabetical order) using the dhview command at the shell prompt:
# Point Name Conf Value 1 dog 100 130 2 fleas 100 150 3 has 100 140 4 my 100 600