Quantcast
Channel: OPC Labs - OPC Labs - Recent Topics - OPC Labs Online Forums
Viewing all articles
Browse latest Browse all 1794

API not returning value for reading UAAttributeId.ArrayDimensions - by: chandresekaran

$
0
0
When you try to read array size of tags, the API returns only bad status. we are migrating the app from OPC UA Foundation library to OPC Labs, the same server and credentials, we can retrieve the array size using that library. the response here is not bad for every nodes, few results are success but null and remaining are all bad status response, please check the screenshotscreenshot

Code Snippet

List<UAReadArguments> arguments = new List<UAReadArguments>();
foreach (var node in nodes)
{
arguments.Add(new UAReadArguments(_endpoint, node, UAAttributeId.ArrayDimensions));
}
var results = _opcClient.ReadMultipleValues(arguments.ToArray());


Error
{*** Failure Opc.UA.StatusCode=0x80350000: Status is not good: {BadAttributeIdInvalid}. The attribute is not supported for the specified Node. [...]}

Viewing all articles
Browse latest Browse all 1794

Trending Articles