private void Stop_RoSpec() { MSG_STOP_ROSPEC msg = new MSG_STOP_ROSPEC(); msg.ROSpecID = 123; MSG_STOP_ROSPEC_RESPONSE rsp = reader.STOP_ROSPEC(msg, out msg_err, 3000); if (rsp != null) { textBox2.Text = rsp.ToString(); } else if (msg_err != null) { textBox2.Text = msg_err.ToString(); } else { textBox2.Text = "Command time out!"; } }
/// <summary> /// If the Reader was currently executing the ROSpec corresponding to the ROSpecID, /// and the Reader was able to stop executing that ROSpec, then the success code is returned. /// </summary> public void Stop_RoSpec() { MSG_STOP_ROSPEC msg = new MSG_STOP_ROSPEC(); msg.ROSpecID = 123; MSG_STOP_ROSPEC_RESPONSE rsp = client.STOP_ROSPEC(msg, out msg_err, 3000); if (rsp != null) { //textBox2.Text = rsp.ToString(); WriteMessage(rsp.ToString(), "Stop_RoSpec"); } else if (msg_err != null) { WriteMessage("Stop_RoSpec " + msg_err.ToString()); } else { WriteMessage("Stop_RoSpec Command time out!"); } }