Question about problem regarding dynamic creation of PIACEPoints

Discussion created by VarbanVarbanov on Oct 15, 2012
Latest reply on Oct 16, 2012 by VarbanVarbanov

Hi everybody,

I've searched for possibilities to create dynamically PIACEPoints in ACE Module, i.e PIACEPoints which are not predefined. After I didn't succeed for a while, I've searched for similar topics here and although I understand now the behaviour I want to achieve is not trivial and this is not the way ACE Modules are supposed to work, I ended up with the following simple sample code:

    Private Input As PIACEPoint
    Private Output As PIACEPoint
    Public Overrides Sub ACECalculations()
        Output.Value = Input.Value + 190
    End Sub

    Protected Overrides Sub InitializePIACEPoints()
        Input = New PIACEPoint("test", "CDT158", TagAliasUsedType.TagAliasAsInput)
        Output = New PIACEPoint("test", "MDynamicTag",  TagAliasUsedType.TagAliasAsOutput)
        Output.SendDataToPI = True
    End Sub

The module itself is created in Visual Studio without defining any output and input tags. The problem is that the module is working and inserting new values in MDynamicTag only after debugging or manual recalculation via ACE Manager. I've experimented with different clock shedule options but I wasn't able to achieve automatic generation of values for the output tag. Can anyone tell me what the reason for this might be - is something i need to add in the code (which i doubt) or I should look for the reason somewhere else?

Thank you in advance for your help!