public bool MeasureZeroTest(Behavior behavior) { _jetTestConnection = new TestJetbusConnection(behavior, ipaddress, "Administrator", "wtx", delegate { return(true); }); _dseObj = new DSEJet(_jetTestConnection, 200, Update); _dseObj.Connect(this.OnConnect, 100); _dseObj.AdjustZeroSignal(); if ( _jetTestConnection.ReadIntegerFromBuffer(JetBusCommands.CIA461ScaleCommand) == 2053923171 && _jetTestConnection.ReadIntegerFromBuffer(JetBusCommands.CIA461GrossValue) == 0 && _jetTestConnection.ReadIntegerFromBuffer(JetBusCommands.CIA461NetValue) == 0 ) { return(true); } else { return(false); } }