pmonGetName()

The function pmonGetName() returns the name of the WinCC OA manager that corresponds to the specified index.

Synopsis

string pmonGetName(int idx);

Parameters

Parameter Description
idx The WinCC OA manager index. See chapter Details on the Pmon

Return value

The function returns the name of the WinCC_OA manager or in the event of errors, -1.

Description

The function pmonGetName() returns the name of the WinCC OA manager that corresponds to the specified index.

NOTE that the function pmonGetName() can only be used on a local computer. A remote UI cannot query the PMON of a server.

EXAMPLE

In the following example, the names of WinCC_OA managers are returned and output.

main(mapping event)
{
  string pName;
  int i;
  for (int i = 0; i < pmonGetCount(); i++)
  {
   pName = pmonGetName(i);
   DebugN("Mamager names: ", pName);
  }
 }

The function outputs depending on the project (depending on the managers defined), e.g., the following:

WCCOAui2:["Manager names: "]["WCCILpmon"]

WCCOAui2:["Manager names: "]["WCCILdata"]

WCCOAui2:["Manager names: "]["WCCOAvalarch"]

WCCOAui2:["Manager names: "]["WCCOAvalarch"]

WCCOAui2:["Manager names: "]["WCCOAvalarch"]

WCCOAui2:["Manager names: "]["WCCOAvalarch"]

WCCOAui2:["Manager names: "]["WCCOAvalarch"]

WCCOAui2:["Manager names: "]["WCCOAvalarch"]

WCCOAui2:["Manager names: "]["WCCILevent"]

WCCOAui2:["Manager names: "]["WCCILproxy"]

WCCOAui2:["Manager names: "]["WCCOActrl"]

WCCOAui2:["Manager names: "]["WCCILsim"]

WCCOAui2:["Manager names: "]["WCCOAui"]

WCCOAui2:["Manager names: "]["WCCOActrl"]

WCCOAui2:["Manager names: "]["WCCOActrl"]

WCCOAui2:["Manager names: "]["WCCOAui"]

Assignment

PMON functions.

Availability

UI