Esempio n. 1
0
        private void MiTest1_Click(object sender, EventArgs e)
        {
            Log.Clear();

            string fn = @"D:\Work\Mining\App\GControl\GControlSrv\bin\TTTT\1.log.txt";

            Log.Wrl(Path.GetDirectoryName(fn));
            Log.Wrl(Path.GetFileName(fn));
            CommonProc.DeleteFiles(Path.GetDirectoryName(fn), "*" + ".log.txt");

            Log.Wrl(CommonProc.ApplicationExePath);
            Log.Wr(DateTime.Now.ToString(CommonProc.FullDTFormatStr) + " - ");
            TempCls.Test1(10000, 1000, "");
            Log.Wrl(DateTime.Now.ToString(CommonProc.FullDTFormatStr));

            VTEthDcrMine.VTSettings settings = new VTEthDcrMine.VTSettings()
            {
                MemoryClock = 1750,
                CoreClock   = 1250,
                TempLimit   = 74,
                PowerLimit  = 30,

                MemoryClockStepUp   = 50,
                MemoryClockStepDown = 10,
            };

            string fileName = CommonProc.ApplicationExePath + @"Log\edm_" + DateTime.Now.ToString(CommonProc.FullDateTimeFormatStr("-", false)) + @"\log.edm";

            VTEthDcrMine edm = new VTEthDcrMine(settings, fileName);

            TempCls.TmpElement te = new TempCls.TmpElement(10);



            Log.Wrl(te.JsonStr1());
        }