Beispiel #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);
     }
     RTC6Wrap.n_set_scanner_delays(this.Index + 1,
                                   (uint)(scannerJump / 10.0),
                                   (uint)(scannerMark / 10.0),
                                   (uint)(scannerPolygon / 10.0)
                                   );
     RTC6Wrap.n_set_laser_delays(this.Index + 1,
                                 (int)(laserOn * 64.0),
                                 (uint)(laserOff * 64.0)
                                 );
     return(true);
 }
Beispiel #2
0
 public bool CtlDelay(double laserOn, double laserOff, double scannerJump, double scannerMark, double scannerPolygon)
 {
     if (this.CtlGetStatus(RtcStatus.Busy))
     {
         return(false);
     }
     RTC6Wrap.n_set_start_list(this.Index + 1, 1);
     RTC6Wrap.n_set_scanner_delays(this.Index + 1,
                                   (uint)(scannerJump / 10.0),
                                   (uint)(scannerMark / 10.0),
                                   (uint)(scannerPolygon / 10.0)
                                   );
     RTC6Wrap.n_set_laser_delays(this.Index + 1,
                                 (int)(laserOn * 64.0),
                                 (uint)(laserOff * 64.0)
                                 );
     RTC6Wrap.n_set_end_of_list(this.Index + 1);
     RTC6Wrap.n_execute_list(this.Index + 1, 1);
     this.CtlBusyWait();
     return(true);
 }