Pulse commands with arbitrary shapes

  • Create command
  • Create pattern; set Shape for the pattern
  • Set pattern type to
    • Arbitrary pattern
    • Arbitrary pattern modulated with sinusoid
    • Resampled pattern
    • Resampled pattern modulated with sinusoid
  • Load pattern
    • From file
    • From MATLAB using console

File format: 2*n columns, where n is the maximum index of the pattern
[I1 Q1 I2 Q2 ... In Qn]
For AWG connected in quadrature use I and Q columns. For single output AWG set Q columns to zero.

MATLAB loader script for 2 patterns from the console
Variable p will be read as a dataset with 2*n columns
Assumption: there is command awg with pattern shape. Single output AWG.

Example:

.puls.awg.shape.MATLAB='px=transpose(linspace(0,pi,100)); p=[sin(px),px*0,cos(px),px*0];'