Exemplo n.º 1
0
 public bool ListDelay(double laserOn, double laserOff, double scannerJump, double scannerMark, double scannerPolygon)
 {
     if (this.CtlGetStatus(RtcStatus.Aborted))
     {
         return(false);
     }
     if (!this.IsListReady(2))
     {
         return(false);
     }
     RTC5Wrap.n_set_scanner_delays(this.Index + 1,
                                   (uint)(scannerJump / 10.0),
                                   (uint)(scannerMark / 10.0),
                                   (uint)(scannerPolygon / 10.0)
                                   );
     RTC5Wrap.n_set_laser_delays(this.Index + 1,
                                 (int)(laserOn * 2.0),
                                 (uint)(laserOff * 2.0)
                                 );
     return(true);
 }
Exemplo n.º 2
0
 public bool CtlDelay(double laserOn, double laserOff, double scannerJump, double scannerMark, double scannerPolygon)
 {
     if (this.CtlGetStatus(RtcStatus.Busy))
     {
         return(false);
     }
     RTC5Wrap.n_set_start_list(this.Index + 1, 1);
     RTC5Wrap.n_set_scanner_delays(this.Index + 1,
                                   (uint)(scannerJump / 10.0),
                                   (uint)(scannerMark / 10.0),
                                   (uint)(scannerPolygon / 10.0)
                                   );
     RTC5Wrap.n_set_laser_delays(this.Index + 1,
                                 (int)(laserOn * 2.0),
                                 (uint)(laserOff * 2.0)
                                 );
     RTC5Wrap.n_set_end_of_list(this.Index + 1);
     RTC5Wrap.n_execute_list(this.Index + 1, 1);
     this.CtlBusyWait();
     return(true);
 }