When shape selection is Expression with 5 parameters, the pulse shape will be generated from the provided expression.

Variables and functions are complex. Calculations are performed with time resolution provided by AWG. IMPORTANT: Trigonometric functions are defined in fractions of 2*pi, not radians, e.g. sin(0.25) = 1. Hyperbolic functions have standard definitions.

Built-in variables

  • t — absolute time within pulse sequence (vector)
  • t0 — time from the beginning of the pulse (vector)
  • tp — pulse length (scalar)
  • j — complex unit (0 + 1j, scalar)
  • par1par5 — parameters specified in PPL (scalars)

Built-in functions

  • cos(x)cos(2*pi*x) cosine
  • sin(x)sin(2*pi*x) sine
  • tan(x)tan(2*pi*x) tangent
  • sec(x)sec(2*pi*x) secant
  • exp(x)exp(2*pi*x) complex exponent (use exp(j*t*f) syntax for IQ)
  • cosh(x)cosh(x) hyperbolic cosine
  • sinh(x)sinh(x) hyperbolic sine
  • tanh(x)tanh(x) hyperbolic tan
  • sech(x)sech(x) hyperbolic sec
  • exph(x)exp(x) complex exponent (2*pi factor is not used)
  • gaussian(x,x0,w) — Gaussian with width w centered at x0
  • sinc(x,x0,l) — sinc with first lobe at 2/l centered at x0

Example:

exp(j*par1*t) * sin(0.5*t0/tp) - IQ RF pulse sin(par1*t) * gaussian(t0, 0.5*tp, 0.1*tp) - gaussian RF pulse

See also:

PPL and Pulse Engine