Example #1
0
 public double[] ReadL502()
 {
     if (!lcard_local)
     {
         return(null);
     }
     if (lcard == null)
     {
         return(null);
     }
     return(lcard.Read());
 }
Example #2
0
 // ---------------------------------------------------------------------------
 public void Exec(int _tick)
 {
     if (bank == null)
     {
         return;
     }
     if (!started)
     {
         return;
     }
     //if (_tick - LastExec < ReadPeriod)
     //    return;
     LastExec = _tick;
     //	pr(AnsiString("ExecTick=")+_tick);
     double[] buf = lcard.Read();
     if (buf == null)
     {
         LastError = "не смогли прочитать";
         Finish();
         return;
     }
     bank.AddGroup(Tp, buf);
 }