private void initReceiveEnable() { int error_code; ReceiverActive active = ReceiverActive.OFF; error_code = GetRecieverDAQ.Active(SelectAscan.sessionIndex, SelectAscan.port, ref active); if (error_code != 0) { return; } switch (active) { case ReceiverActive.OFF: rdoOFF.Checked = true; break; case ReceiverActive.ON: rdoON.Checked = true; break; default: MessageShow.show("Error:Initial receive anable failed!", "错误:初始化接收使能失败!"); break; } }