src/Pulses/PulMLEV.cc
/* ****************************************************************************
 
     There are 16 cycles associated with MLEV-16, as shown below
                    _ _ _     _ _ _       _ _
            U = R R R R R R R R R R R R R R R R          R = 90 180 90
                                                               x   y  x

     Each R represents a pulse waveform and the bar indicates a         
     180 degree phase shift.  A MLEV-16 pulse train will employ R = MLEV
     which is just a composite 180 pulse.  The MLEV-16 cycle is simply the
     phi phi phi+180 phi+180 phi+180 phi phi phi+180 ..... phase sequence.
 
******************************************************************************/


Each R represents a pulse waveform and the bar indicates a
180 degree phase shift.  A MLEV-16 pulse train will employ R = MLEV
which is just a composite 180 pulse.
Each R represents a pulse waveform and the bar indicates a 180 degree phase shift . A MLEV - 16 pulse train will employ R = MLEV which is just a composite 180 pulse .
row_vector CYC_MLEV16(double phi)
  {
  double phibar = phi+180.0;                    
  row_vector PTCsteps(16);			
  PTCsteps.put(phi,    0);                      
  PTCsteps.put(phi,    1);
  PTCsteps.put(phibar, 2); 
  PTCsteps.put(phibar, 3); 
  PTCsteps.put(phibar, 4); 
  PTCsteps.put(phi,    5);
  PTCsteps.put(phi,    6);
  PTCsteps.put(phibar, 7); 
  PTCsteps.put(phibar, 8); 
  PTCsteps.put(phibar, 9); 
  PTCsteps.put(phi,   10);
  PTCsteps.put(phi,   11);
  PTCsteps.put(phi,   12);
  PTCsteps.put(phibar,13); 
  PTCsteps.put(phibar,14); 
  PTCsteps.put(phi,   15);
  return PTCsteps;
  }
row_vector CYC_MLEV16 ( double phi ) { double phibar = phi + 180.0 ; row_vector PTCsteps ( 16 ) ; PTCsteps . put ( phi , 0 ) ; PTCsteps . put ( phi , 1 ) ; PTCsteps . put ( phibar , 2 ) ; PTCsteps . put ( phibar , 3 ) ; PTCsteps . put ( phibar , 4 ) ; PTCsteps . put ( phi , 5 ) ; PTCsteps . put ( phi , 6 ) ; PTCsteps . put ( phibar , 7 ) ; PTCsteps . put ( phibar , 8 ) ; PTCsteps . put ( phibar , 9 ) ; PTCsteps . put ( phi , 10 ) ; PTCsteps . put ( phi , 11 ) ; PTCsteps . put ( phi , 12 ) ; PTCsteps . put ( phibar , 13 ) ; PTCsteps . put ( phibar , 14 ) ; PTCsteps . put ( phi , 15 ) ; return PTCsteps ; }
There are 16 cycles associated with MLEV-16, as shown below
_ _ _     _ _ _       _ _
U = R R R R R R R R R R R R R R R R          R = 90 180 90
x   y  x
There are 16 cycles associated with MLEV - 16 as shown below _ _ _ _ _ _ _ _ U = R R R R R R R R R R R R R R R R R = 90 180 90 x y x
// Input        void    : None //              phi     : Phase angle (degrees) // Output       PCyc    : MLEV-16 pulse cycle // Phase of "barred" steps  // Cycle vector{ phi }  // Set cycle phase values