Skip to content

Commit

Permalink
set pulse_train_rep param to pulse_train_dur if wait for trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
fusEngineers committed Dec 17, 2024
1 parent 2eb3dee commit 6519205
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions fus_ds_package/fus_driving_systems/sequence.py
Original file line number Diff line number Diff line change
Expand Up @@ -498,6 +498,12 @@ def n_triggers(self, n_triggers):
True, True, True, False)
if is_validated:
self._n_triggers = n_triggers

# set temporarily the pulse train repetition parameters equal to
# the pulse train duration to prevent default being lower than
# pulse train duration
self.pulse_train_rep_int = self.pulse_train_dur
self.pulse_train_rep_dur = self.pulse_train_dur

@property
def transducer(self):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
one_interleaved_session_ms = seq1.pulse_train_rep_dur + seq3.pulse_train_rep_dur
n_sessions = round(total_duration_s / (one_interleaved_session_ms/1000))
for i in range(n_sessions):
print(f'\n session {i} of {n_sessions} \n')
igt_driving_sys.execute_sequence(seq1, seq2)
igt_driving_sys.execute_sequence(seq3, seq4)

Expand Down

0 comments on commit 6519205

Please sign in to comment.