make_trigger

Contents

make_trigger#

pypulseqpp.make_trigger()[source]#

Create a trigger halt event for a synchronization with an external signal from a given channel with an optional given delay prio to the sync and duration after the sync. Possible channel values: ‘physio1’,’physio2’ (Siemens specific).

See also pypulseq.Sequence.sequence.Sequence.add_block().

Parameters:
  • channel (str) – Must be one of ‘physio1’ or ‘physio2’.

  • delay (float, default=0) – Delay in seconds

  • duration (float, default=0) – Duration in seconds.

  • system (Opts, default=Opts()) – System limits.

Returns:

trigger – Trigger event.

Return type:

SimpleNamespace

Raises:

ValueError – If invalid channel is passed. Must be one of ‘physio1’ or ‘physio2’.

Notes

This is PyPulseq’s factory; the event it builds is returned with its fields in slots.