示例#1
0
 private DirectoryInfo ResultPathAlternative()
 {
     try
     {
         ResultPath = new DirectoryInfo(GCHandleAcqClient.GetResultFilePath(InstrumentKey));
     }
     catch (Exception)
     {
     }
     return(_resultPath);
 }
示例#2
0
        internal static void Tick()
        {
            Thread.Sleep(5000);
            GCHandleAcqClient.StopRun(Gc.InstrumentKey);
            _posthandle = Task.Run(() => ReadDataFromRstFile(Gc.ResultPath, _cancellation.Token));
            //ReadDataFromRstFile(Gc.ResultPath, cancellation.Token);

            if (++Gc.K <= Gc.Max)
            {
                Thread.Sleep((int)(Gc.Interval));
                Start();
            }
        }
示例#3
0
 private static void Start()
 {
     GCHandleAcqClient.StartRun(Gc.InstrumentKey);
     _timer.Start();
     bartimer.Start();
 }