GetHMIServerComputerName method

Returns the name of the computer on which the HMI server in the specified area resides. The area name must be a fully qualified name (that is, a relative area reference will cause an error). If the specified area does not contain an HMI server, an empty string is returned.
Syntax
sComputerName = Application
.
GetHMIServerComputerName
([/
AreaName
])
where
sComputerName
– is a String variable that will be set to the name of the computer hosting the active HMI server instance.
Application
– is the name of a
FactoryTalk View SE
Client Application object or an expression that evaluates to a
FactoryTalk View SE
Client Application object.
AreaName
– is a string that specifies the area in which the HMI server resides. If this parameter is not supplied, the computer name of the HMI server in the root will be returned. If there is no HMI server in the root, an empty string is returned.
Remarks
If a redundant (standby) server is defined, the computer name that is returned is the name of the computer hosting the active server instance. When the primary server is active, the primary server computer name is returned. When the secondary server is active, the secondary server computer name is returned.
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal