massuthe

Case sensitive tag names

Discussion created by massuthe on Jun 24, 2010
Latest reply on Jun 25, 2010 by hanyong

Hi,

 

I am using the PI SDK to create tags. However, the following code snippet throws an exception when I want to create two different tags with the names "foo" and "Foo":


PIPoint point;

point = _piServer.PIPoints.Add("foo", "classic", PointTypeConstants.pttypString, null);
try
{
  point = _piServer.PIPoints.Add("Foo", "classic", PointTypeConstants.pttypString, null);
}
catch (System.Runtime.InteropServices.COMException comExc)
{
    Console.WriteLine(" Warning: " + comExc.Message + " (Code: " + comExc.ErrorCode + ")");
}

 

 

gives me the output:


Warning: Point with this tag name already exists.  Foo (Code: -2147220429)

 

Any solutions?

 

What about having language special characters, like Polish or German letters, in a tag name? Does this work (somehow)?

Outcomes