Esempio n. 1
0
 public void TestOPCItemAttributesString01()
 {
     OPCItemAttributes opcAttribute = new OPCItemAttributes();
     opcAttribute.ItemID = "OPCItem1";
     opcAttribute.AccessPath = "OPCTop\\OPCTop2";
     opcAttribute.HandleClient = 1;
     opcAttribute.HandleServer = 1;
     opcAttribute.AccessRights = OPCACCESSRIGHTS.OPC_READABLE;
     opcAttribute.RequestedDataType = System.Runtime.InteropServices.VarEnum.VT_I2;
     opcAttribute.CanonicalDataType = System.Runtime.InteropServices.VarEnum.VT_I2;
     opcAttribute.EUType = OPCEUTYPE.OPC_ANALOG;
     opcAttribute.EUInfo = null;
     byte[] buffer = new byte[10];
     opcAttribute.Blob = buffer;
     //Test Procedure Call
     string result = opcAttribute.ToString();
     
 }
Esempio n. 2
0
        public void TestCreateOPCItemAttributes01()
        {
            OPCItemAttributes oPCItemAttributes = CreateOPCItemAttributes01();

            Assert.IsNotNull(oPCItemAttributes);
        }
Esempio n. 3
0
        public static OPCItemAttributes CreateOPCItemAttributes01()
        {
            OPCItemAttributes oPCItemAttributes = new OPCItemAttributes();

            return(oPCItemAttributes);
        }