예제 #1
0
        public bool WriteTareTest(Behavior behavior)
        {
            _jetTestConnection = new TestJetbusConnection(behavior, ipaddress, "Administrator", "wtx", delegate { return(true); });

            _wtxObj = new WTXJet(_jetTestConnection, 200, update);

            _wtxObj.Connect(this.OnConnect, 100);

            _wtxObj.Tare();     // Write in index(address) "6002/01" value 1701994868

            if (_jetTestConnection.getDataBuffer.ContainsKey("6002/01") && _jetTestConnection.getDataBuffer.ContainsValue(1701994868))
            {
                return(true);
            }

            else
            {
                return(false);
            }
        }