- Posts: 70
- Thank you received: 0
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 COM
- Reading, Writing, Subscriptions, Property Access
- Can Develop OPC XML DA C++ client in Visual Studio 2015?
Can Develop OPC XML DA C++ client in Visual Studio 2015?
Thanks for the update.
I have a query regarding subscription based one.
What I am doing is sending group of events for subscription using below code, As mentioned in ExamplesCOM. And waiting for item changed events, Here I am getting single item changed event at a time, I suppose to get event for all group of items I subscribed, but I am not.
I get single item and convert into JSON and upload to cloud, it leaks to much memory for each item if I do. Therefore, I am looking for a way, where I can get group of items get changed at a time where I subscribed group of items only.
Please do let me know your inputs.
for (int i = 0; i < noOftags; i++)
{
_EasyDAItemSubscriptionArgumentsPtr ItemSubscriptionArgumentsPtr(_uuidof(EasyDAItemSubscriptionArguments));
ItemSubscriptionArgumentsPtr->ServerDescriptor->UrlString = urlString.m_str;
ItemSubscriptionArgumentsPtr->ItemDescriptor->ItemId = itemIds.m_str;
ItemSubscriptionArgumentsPtr->GroupParameters->RequestedUpdateRate = 1;
arguments.SetAt(i, _variant_t((IDispatch*)ItemSubscriptionArgumentsPtr));
}
LPSAFEARRAY pArguments = arguments.Detach();
CComSafeArray<VARIANT> handles(ClientPtr->SubscribeMultipleItems(&pArguments));
arguments.Attach(pArguments);
Please Log in or Create an account to join the conversation.
For the CPU consumption, I will need a reproducible scenario in order to be able to help further. It should be noted, however, that OPC XML-DA is not designed for high performance, and produces large messages and lots of communication even for relatively small item/event counts. It is therefore possible that the message processing for 130 changes/second is that much demanding as well.
Regards
Please Log in or Create an account to join the conversation.
The CPU and Memory usages are more in QuickOPC Libraries, Please help me to solve this CPU n Memory issues or any lead which will help me.
Please Log in or Create an account to join the conversation.
Ad 2. It is possible.
Please Log in or Create an account to join the conversation.
1. How do I check server status? whether its running, disconnected and etc? Is there any QuickOPC API for this, as per as I searched I could not find one.
2. My application taking around 50MB of RAM consistently, In that around 17MB is my application(private working set) and 42MB is shared working set. In that case quickOPc assemblies are taking 42MB?
PLease clarify above questions.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
And, I do not understand how you could have tested by removing the loop, because without the loop, the program won't have time to deliver events. So, for example, if the high CPU consumption comes from processing the events, then of course removing the loop would "solve" the problem, but that would not be because the loop itself has consumed the CPU, but because other parts of the program did not run,
There are tools to check the CPU consumption per thread, SysInternals tools, profilers, etc. You need to figure out the true place where the CPU is consumed.
BTW, how many events per second are you receiving? Many?
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
while (1) {
Sleep(60000);
}
Please Log in or Create an account to join the conversation.
- Forum
- Discussions
- QuickOPC-Classic in COM
- Reading, Writing, Subscriptions, Property Access
- Can Develop OPC XML DA C++ client in Visual Studio 2015?