Tag Locationing
Readers which support Tag Locationing feature report the same in the field IsTagLocationingSupported of ReaderCaps as true. This feature is supported only on Handheld readers and is useful to locate a specific tag in the field of view of the reader’s antenna. The default locationing algorithm supported on the reader can perform locationing only on a single antenna. rfidApi.Actions.TagLocationing.Perform can be used to start locating a tag, and rfidApi.Actions.TagLocationing.Stop to stop the locationing operation. Result of locationing of a tag is reported as LocationInfo in TagData and will be present in TagData if tagData.ContainsLocationInfo is true. tagData.LocationInfo.RelativeDistance gives the relative distance of the Tag from the Reader Antenna.
try
{
rfidApi.Actions.TagLocationing.Perform(tagInField,antennaInfo);
Thread.Sleep(1000);
rfidApi.Actions.TagLocationing.Stop();
TagData[] tagData = rfidApi.Actions.GetReadTags(1000);
if (tagData != null)
{
for (int nIndex1 = 0; nIndex1 < tagData.Length; nIndex1++)
{
if(tagData[nIndex1].ContainsLocationInfo)
{
Console.WriteLine(“Relative Distance:”+ tagData[nindex1].LocationInfo.RelativeDistance.ToString());
}
}
}
}
catch (OperationFailureException ofe)
{
Console.WriteLine(ofe.ToString())
}