/// <summary> /// 通道名称取得解析 /// 通道名字最多19个字节 + 0位 共20字节通道序号(1开始) /// 例如 /// index == 1 命令读取的第1个通道的名字,返回20个字节 /// </summary> /// <param name="ChannelNameData"></param> /// <param name="nTotalSize"></param> /// <returns></returns> private bool GetChannelName() { FileLog("Get Channel Name"); //读取通道名称 m_Channel_Number = EpsonLCD.GetChannelNameTotalLength(); //m_Channel_Number = 8; for (int nIndex = 1; nIndex <= m_Channel_Number; nIndex++) { ChannelNameList.Add(Encoding.Default.GetString(EpsonLCD.GetChannelNameData((ushort)nIndex))); } return(true); }