Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Plant SCADA

Workspace_GetEquipmentCluster

  • Last UpdatedJul 18, 2023
  • 1 minute read

Returns the given equipment string with its cluster prefix and caching it in the process. The function will attempt to automatically detect the cluster of the equipment in the following order:

  1. In a single cluster system, the cluster may be automatically resolved and require no further custom code.

  2. Get the cluster from the page cluster context.

  3. Check each configured cluster to see if the passed equipment exists.

If the cluster cannot be automatically detected, the original equipment string will be returned.

Syntax

Workspace_GetEquipmentCluster(STRING sEquipmentContext [, INT bRefreshCache])

sEquipmentContext

The equipment context to verify.

bRefreshCache

Force the function to ignore any cached value. This is an optional parameter. The default value is FALSE.

Return Value

The context will be returned with the cluster prefix. If the cluster cannot be automatically detected, the original equipment string will be returned.

Example

STRING sEquipmentNameWithCluster = WWorkspace_GetEquipmentCluster("MyPlant.Mixing.TNK01");

Result: Cluster1.MyPlant.Mixing.TNK01

Workspace_GetContext, Workspace_GetPageNameWithRes, Workspace_GetResolution, Workspace_GetSelContext, Workspace_GetWindow, Workspace_GetWorkspaceFromName, Workspace_GetWorkspaceFromWindow, Workspace_Init, Workspace_IsSelContext, Workspace_IsSystem_Initialised, Workspace_SelectEquipment, Workspace_SetSelContext, Workspace_ShowContent

See Also

Public Functions

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in