public bool OpPickWaveIdx() //sjw { Bkd_WaveLen = Spctr.GetWaveLen().Select(x => (double)Math.Round(x, 11)).ToArray(); PickedIdx = Enumerable.Range(0, Bkd_WaveLen.GetLength(0)).ToList(); //SelectedWaves = PickedIdx.Select( x => (double)Bkd_WaveLen [ x ] ).ToList(); SelectedWaves = Bkd_WaveLen.ToList(); return(true); }
public void SetHWInternalParm(double rspeed, double xspeed, double scan2avg, double intetime, double boxcar, double edgeend) { Config.RStgSpeed = ( int )rspeed; Config.XStgSpeed = ( int )xspeed; Config.Scan2Avg = ( int )scan2avg; Config.IntegrationTime = ( int )intetime; Config.Boxcar = ( int )boxcar; Config.EdgeEnd = edgeend; Stg.SendAndReady("S:24"); Stg.SendAndReady("S:15"); //Stg.SendAndReady( Stg.SetSpeed // + Axis.W.ToIdx() // + ( Config.RStgSpeed ).ToSpeed() // + ( Config.XStgSpeed ).ToSpeed() ); Spctr.ScanAvg(Config.Scan2Avg); //Spctr.ScanAvg( 2 ); Spctr.IntegrationTime(Config.IntegrationTime * 1000); //Spctr.IntegrationTime( 600000 ); Spctr.BoxCar(Config.Boxcar); }