From 8d6ab149adf91aed74bc01b268c033e095d600de Mon Sep 17 00:00:00 2001 From: Pablo Romero Date: Wed, 1 May 2024 09:09:07 +0200 Subject: [PATCH] Add argument validation to configure_time_port_marker --- toolbox/src/bossdevice.m | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/toolbox/src/bossdevice.m b/toolbox/src/bossdevice.m index b4703cf..11b171e 100644 --- a/toolbox/src/bossdevice.m +++ b/toolbox/src/bossdevice.m @@ -344,7 +344,11 @@ function stop(obj) setparam(obj, 'UDP', 'num_aux_channels', n); end - function configure_time_port_marker(obj, sequence) + function obj = configure_time_port_marker(obj, sequence) + arguments + obj bossdevice + sequence {mustBeNumeric} + end numRows = size(obj.generator_sequence, 1); assert(size(sequence, 1) <= numRows, 'Sequence exceeds maximum number of rows.');