太空工程师吧 关注:36,762贴子:508,649
  • 10回复贴,共1

在编程模块里面使用的Echo(),无法显示信息了!

只看楼主收藏回复

原来使用Echo()来debug…现在不能用了。何解?


IP属地:新疆来自iPhone客户端1楼2016-02-09 11:33回复
    用WritePublicText在LCD上显示撒


    IP属地:北京2楼2016-02-09 13:05
    收起回复
      楼主能不能写一些demo或者贡献一些代码。。让我们这些小白入入门


      IP属地:北京3楼2016-02-10 14:28
      回复
        lcd+1
        private void log(String msg)
        {
        string BlockLogs="LCD显示器(LCDxsq) kbc-logs 1";//写字板的全名,不能有重名块
        IMyTextPanel TextPanel = GridTerminalSystem.GetBlockWithName(BlockLogs) as IMyTextPanel;
        if(TextPanel!=null)
        {
        String prefix = TextPanel.GetPublicText();
        prefix+="\n"+msg;
        TextPanel.WritePublicText(prefix);
        }
        }
        ////写字板log-清除
        void Main(string argument)
        {
        cleanLog();
        }


        IP属地:山西4楼2016-02-11 08:46
        回复
          private void cleanLog()
          {
          string BlockLogs="LCD显示器(LCDxsq) kbc-logs 1";//写字板的全名,不能有重名块
          IMyTextPanel TextPanel = GridTerminalSystem.GetBlockWithName(BlockLogs) as IMyTextPanel;
          if(TextPanel!=null)
          {
          TextPanel.WritePublicText("");
          }
          }


          IP属地:山西5楼2016-02-11 08:48
          回复