constructor

Instances a new object of type MindSphereAsset.

Synopsis

MindSphereAsset(string dp);

Parameters

Parameter Description
dp Name of the MindSphere Asset as shown in the MindSphere configuration panel. If the name is not a MindSphere Asset or the data point does not exist, the object returns -1.

Return value

Object of type MindSphereAsset.

Description

Constructor of MindSphereAsset class.

#uses "classes/mindSphere/MindSphereAsset"

void main()
{
   string dp = "NameOfMindSphereAsset"; // This MindSphere Asset must already exist in WinCC OA
   MindSphereAsset assetX = MindSphereAsset(dp);
   //shared_ptr can also be used
   //shared_ptr<MindSphereAsset> assetPtr = new MindSphereAsset(dp);

   DebugTN(assetX);
   //DebugTN(assetPtr);
}

Assignment

MindSphere

Availability

UI, CTRL