in
Creating Smarter Networks

Delete device

Last post 08-14-2008 11:25 PM by lumatec. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 07-23-2008 12:41 AM

    • lumatec
    • Top 10 Contributor
    • Joined on 04-29-2008
    • Posts 61
    • Points 845

    Delete device

    Hello,

    all our devices have an output variable called nvoFault. In order to read their values, we first call 'List' with <Item[@xsi:type="Dp_Cfg"][contains(UCPTname,"nvoFault")]>. So we get a list of all variables containing 'nvoFault'. We then use that list as input of a 'Read' in order to get the values. That works fine.

    If we delete one of the devices, for a certain time (some minutes...) its variable is still returned by the 'List' request, with the UCPTitemStatus set to 'IS_DELETED'. The following Read for that item then returns a fault. Of course we can catch the exception with the .NET application, but I'm wondering what the reason is for this. Why is the variable not gone immediately after the delete, and how long does it take for the variable for being deleted?

    The SmartServer is in standalone mode.

    Best regards,
    Daniel

    • Post Points: 5
  • 08-14-2008 11:25 PM In reply to

    • lumatec
    • Top 10 Contributor
    • Joined on 04-29-2008
    • Posts 61
    • Points 845

    Re: Delete device

    Probably we found the answer:

    If an output variable of a device is defined as input variable on a DataLogger, it's important to delete that variable separately. It's not deleted by deleting the device! As long as that variable is registered in a DataLogger it will be returned as 'IS_DELETED'.

    Maybe there is a reason for this, but it would be good if deleting a device would cause all its variables to be deleted too.

    Regards,

    Daniel

    • Post Points: 5
Page 1 of 1 (2 items)
©2008 Echelon Corporation