public static void ReadData(Channel channel) { if (channel == null) { return; } NetModulDll.SendCmdCurrentChan(channel.channeParam.channelNum); NetModulDll.MyReadData(channel.wavaData, channel.channeParam.channelNum, 1); NetModulDll.MyReadOridata(channel.oriWaveData, channel.channeParam.channelNum); }
/// <summary> /// 初始化系统 /// </summary> /// <returns></returns> public static bool SystemInit() { if (AllForms.m_WaveForms == null || AlllChannels.m_ChannelParams == null || AlllChannels.m_Channels == null) { return(false); } NetModulDll.MyInitParam(); for (int i = 0; i < HSD_EMAT.totalChannelNum; i++) { DLL.NetModulDll.MyBindingData(i); } return(true); }
/// <summary> /// 创建连接 /// </summary> public static void NetModuleConnect() { if (!NetModulDll.InitModule((uint)HSD_EMAT.totalChannelNum, (uint)HSD_EMAT.boardNum) || !NetModulDll.CreateHostSocket()) { connectStatus = -1; return; } ; if (NetModulDll.GetConnectStatus(ref HSD_EMAT.pConnectNo)) { connectStatus = 1; } }
public static void SeverStop() { NetModulDll.SendCmdServerClose(); }