labscript.functions.pulse_sequence
- pulse_sequence(pulse_sequence, period)[source]
Returns a function that interpolates a pulse sequence.
Relies on
numpy.digitize
to perform the interpolation.- Parameters:
pulse_sequence (
numpy.ndarray
) – 2-D timeseries of change times and associated states.period (float) – How long, in seconds, to hold the final state before repeating the sequence.
- Returns:
Interpolating function that takes a single parameter
t
. Only well defined ift
falls within thepulse_sequence
change times.- Return type:
func