c# OPCClient using OPCAutomation.DLL wrapper|Classic OPC: DA, A&E, HDA, XML-DA, etc.|Forum|OPC Foundation

Avatar
Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
Lost password?
sp_Feed sp_PrintTopic sp_TopicIcon
c# OPCClient using OPCAutomation.DLL wrapper
Avatar
s416504
New Member
Members
Forum Posts: 1
Member Since:
06/05/2015
sp_UserOfflineSmall Offline
1
10/18/2017 - 19:05
sp_Permalink sp_Print sp_EditHistory

private void MyOPCGroup_DataChange(int TransactionID, int NumItems, ref Array ClientHandles, ref Array ItemValues, ref Array Qualities, ref Array TimeStamps)
{
   for (int i = 1; i <= NumItems; i++)
   {
      int iHandles = Convert.ToInt32(ClientHandles.GetValue(i));

      string abc = Convert.ToString( ItemValues.GetValue(i));

      // How to GetValue() of VT_ARRAY type Item ??

   }
}

 

See the above DataChange implementation. This works great for single item but How to implement to Read Float Array of 2000 points?

Forum Timezone: America/Phoenix
Most Users Ever Online: 510
Currently Online:
Guest(s) 41
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Forum Stats:
Groups: 2
Forums: 10
Topics: 1445
Posts: 4889