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.
Monitoring all variables in a DB
Best regards
Please Log in or Create an account to join the conversation.
I was just curious because for my example I might have 1000 variables I want to monitor in a single DB. With your method I would have to enter 1000 lines of code one for each variable. The other would take maybe 6 lines of code to accomplish by browsing for the nodes then using the foreach loop to create each entry.
Also if the DB is modified I will have to modify my code to include the new variable. With a foreach if a new variable is added it will dynamically be included.
Anyways just curious if it was possible I really like your product.
Code Example:
Thanks,
Please Log in or Create an account to join the conversation.
thank you for your interest in our products.
1. I do not quite understand this part: "How can I ... without creating a monitored item for each variable.". What's wrong with creating a monitored item for each variable? It is not even possible to subscribe to multiple variables without doing that; when you write " In the OPC Stack you can create a write list and create a subscription to all the variables", you are, in principle, referring to doing the same thing.
2. To your code: each element of UANodeElementCollection is a UANodeElement, and it has an implciti conversion to UANodeDescriptor. The line with call to the EasyUAMonitoredItemArguments constructor can therefore be written much easier, simply pass in the 'Nodes' variable as the 3rd argument).
Best regards
Please Log in or Create an account to join the conversation.
For Example:
Thanks,
Please Log in or Create an account to join the conversation.