From a23d372c7fca486c81fa42269e7fd22473301646 Mon Sep 17 00:00:00 2001 From: Pablo Romero Date: Tue, 28 May 2024 00:54:23 +0200 Subject: [PATCH] Update demo_measure_loop_latency.m Use sendPulse. --- toolbox/examples/demo_measure_loop_latency.m | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/toolbox/examples/demo_measure_loop_latency.m b/toolbox/examples/demo_measure_loop_latency.m index eb1d8a5..b19bdeb 100644 --- a/toolbox/examples/demo_measure_loop_latency.m +++ b/toolbox/examples/demo_measure_loop_latency.m @@ -39,9 +39,5 @@ % Cursors must be moved manually in the SDI plot for an accurate measurement of the total delay. -%% Generate trigger -s = [0, 1, 0]; -s(1000,3) = 0; % fill with zeros (TODO: this should be done in the API) -bd.generator_sequence = s; - -bd.manualTrigger; +%% Send pulse +bd.sendPulse(1); % Send single pulse on port 1