hi,
I would like to know how to read ALL subscribed tags? I can't get anywhere with the ReadMultipleItems(). Here is my code:
EasyDAClient m_edac = new EasyDAClient();
DAItemGroupArguments[] argumentArray2 = new DAItemGroupArguments[2];
argumentArray2[0] = new DAItemGroupArguments(m_OPCMachineName, m_OPCServerName, itemIdTrigger, m_OPCUpdateRate, m_OPCObjectState);
argumentArray2[1] = new DAItemGroupArguments(m_OPCMachineName, m_OPCServerName, itemIdCycleCount, m_OPCUpdateRate, m_OPCObjectState);
m_edac.SubscribeMultipleItems(argumentArray2.ToArray());
Then when 1 specific tags changes, I want to read all subscribed items and pass them to a stored procedure, I have about 200 items to log to the database. Can someone show me how to read all subscribed items in the server? If I do the following, I get a null exception error:
DAReadItemArguments[] sectArgArray = new DAReadItemArguments[2];
DAVtqResult[] sectVtqResults = m_edac.ReadMultipleItems(sectArgArray); --> blows in here with the following error:
Precondition failed.: Contract.ForAll(argumentsArray, elem => elem != null) Null element in argumentsArray.
Parameter name: Null element in argumentsArray.
SubscribeMultipleItem takes an array of type DAItemGroupArgument and
ReadMultipleItems takes an array of type DAReadItemArgument and you can't cast from one to another and you can't read Items by creating a new array object?
Let me know
Thanks