示例#1
0
        public static void SaveLog(int itemIndex, string runResult, List <double> blockOutputValues)
        {
            //创建文件夹
            if (!Directory.Exists(_logDir))
            {
                Directory.CreateDirectory(_logDir);
            }

            var line = DataLogger.FormatOutputLine(runResult, itemIndex, blockOutputValues,
                                                   _blockOutputNames.IndexOf("ZhaiXia"));

            try
            {
                csvFile = _dataLogger.WriteLine(line);
            }
            catch
            {
                MessageBox.Show("请先关闭CCD软件产生的所有文档");
            }

            removeOutdatedFiles(_logDir);
        }