set_domain
set_domain — sets the default domain for future calls.
set_domain (domain_name)
domain_nameA string.
The domain_name argument.
This function sets the default DataHub domain for all future calls to
read_point,
read_existing_point,
register_point,
register_existing_point,
write_point and
write_existing_point. The default domain can be
overridden by explicitly placing the domain name at the beginning of the
point name, separated by a colon (:). For example, a variable named
tank_level in the default domain would have to be
named acme:tank_level in the "acme"
domain.
![]() | |
There is a possibility of aliasing points. If the default domain is
"acme" then the point
|
Gamma>set_domain("acme");tGamma>read_point(#tank_level);12.5Gamma>set_domain("steamplant");tGamma>read_point("tank_level");4.35Gamma>read_point("acme:tank_level");12.5