Get multiple OPC values
问题 Here is the code to get the multiple values from OPC Server. private void getData() { try { int count = 1; opcServer.Connect("OPCTechs.SiemensNet30DA", ""); opcGroup = opcServer.OPCGroups.Add("MP"); opcGroup.DataChange += new DIOPCGroupEvent_DataChangeEventHandler(opcGroup_DataChange); //Get First String for (int i = 40; i <= 47; i++) opcGroup.OPCItems.AddItem("D104.B" + i, count++); //Get Second String for (int i = 80; i <= 91; i++) opcGroup.OPCItems.AddItem("D104.B" + i, count++); opcGroup