Ejemplo n.º 1
0
        public bool WriteTareTest(Behavior behavior)
        {
            _jetTestConnection = new TestJetbusConnection(behavior, "wss://172.19.103.8:443/jet/canopen", "Administrator", "wtx", delegate { return(true); });

            _wtxObj = new WtxJet(_jetTestConnection);

            _wtxObj.Connect(this.OnConnect, 100);

            _wtxObj.taring(WriteDataCompleted);     // Alternative : _jetTestConnection.Write("6002/01", 1701994868);

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

            else
            {
                return(false);
            }
        }
Ejemplo n.º 2
0
 // Write to WTX : Tare
 private void button2_Click(object sender, EventArgs e)
 {
     _wtxObj.taring(WriteDataCompleted);
 }