Online Forums
Technical support is provided through Support Forums below. Anybody can view them; you need to Register/Login to our site (see links in upper right corner) in order to Post questions. You do not have to be a licensed user of our product.
Please read Rules for forum posts before reporting your issue or asking a question. OPC Labs team is actively monitoring the forums, and replies as soon as possible. Various technical information can also be found in our Knowledge Base. For your convenience, we have also assembled a Frequently Asked Questions page.
Do not use the Contact page for technical issues.
- Forum
- Discussions
- QuickOPC-Classic in .NET
- Browsing, Browse Dialogs and Controls
- Browsing all variables in a Device
Browsing all variables in a Device
The string identifier you wanted was "Channel1.Device2". But, if "s=", "g=", "i=", or "b=" does not immediately follow the semicolon after the namespace URL or namespace index, the whole remainder is the string identifier. So, what you were effectively using (with the space) was " s=Channel1.Device2".
Best regards
Please Log in or Create an account to join the conversation.
Thanks thats sorted it! Didn't realise the spaces were relevant.
I had: "nsu=KEPServerEX; s=Channel1.Device2"
Now : "nsu=KEPServerEX;s=Channel1.Device2"
The space before the s= stops it working.
Thanks for your help.
Please Log in or Create an account to join the conversation.
before I get to reproducing it: Do you really have the blank spaces in the node ID, i.e.
"nsu = KEPServerEX ; ns = 2; s = Channel1.Device2"
Regards
Please Log in or Create an account to join the conversation.
The Kepserver version is 6.6.350.
OPF for config attached.
The code I'm using is the following : -
public IEnumerable<UANodeElement> GetTags()
{
List<UANodeElement> tags = new List<UANodeElement>();
UANodeElementCollection nodeElementCollection = new UANodeElementCollection();
try
{
nodeElementCollection = client.BrowseDataVariables(endpointDescriptor, "nsu = KEPServerEX ; ns = 2; s = Channel1.Device2");
}
catch (UAException uaException)
{
Console.WriteLine("*** Failure: {0}", uaException.GetBaseException().Message);
}
// Display results
foreach (UANodeElement nodeElement in nodeElementCollection)
{
Console.WriteLine();
Console.WriteLine("nodeElement.NodeId: {0}", nodeElement.NodeId);
Console.WriteLine("nodeElement.DisplayName: {0}", nodeElement.DisplayName);
tags.Add(nodeElement);
}
return tags;
}
Thanks
Please Log in or Create an account to join the conversation.
1. Find out the Kepware server version
2. post here the Kepware server configuration you are using (or a smaller version of it which still shows the problem)
3. post here the project to reproduce the problem (I know you have posted the BrowseXXXX statement, so in fact this may be sufficient; I am just trying to make sure there is no difference between what you are using and what I am going to try out).
Thank you
Please Log in or Create an account to join the conversation.
Both the Kepserver and my code is Channel1.Device2, it was a typo on the previous post.
But Channel1.Device2 is getting no nodes returned?
Please Log in or Create an account to join the conversation.
what you have posted looks good. Except, you mentioned "Channel1.Device1", but the code has "Channel1.Device2". Isn't that the cause?
Best regards
Please Log in or Create an account to join the conversation.
Been using this for a while with KepwareEX6, and all working great.
Just trying to get some data from the server under one particular device.
I'd just like to see all variables inside of "Channel1.Device1". Is there a quick way to do this?
Ived tried pasting the starting node id from Connectivity Explorer (nsu=KEPServerEX ;ns=2;s=Channel1.Device2)...
But browse Nodes/Objects/Variables is returning a 0 length list.
I'm sure its something simple I'm missing..
I'm using: nodeElementCollection = client.BrowseDataVariables(endpointDescriptor, "nsu=KEPServerEX; s=Channel1.Device2");
Any ideas?
Thanks
Please Log in or Create an account to join the conversation.
- Forum
- Discussions
- QuickOPC-Classic in .NET
- Browsing, Browse Dialogs and Controls
- Browsing all variables in a Device