Skip to content

Commit 8d6ab14

Browse files
authored
Add argument validation to configure_time_port_marker
1 parent 5d626c4 commit 8d6ab14

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

toolbox/src/bossdevice.m

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,11 @@ function stop(obj)
344344
setparam(obj, 'UDP', 'num_aux_channels', n);
345345
end
346346

347-
function configure_time_port_marker(obj, sequence)
347+
function obj = configure_time_port_marker(obj, sequence)
348+
arguments
349+
obj bossdevice
350+
sequence {mustBeNumeric}
351+
end
348352
numRows = size(obj.generator_sequence, 1);
349353

350354
assert(size(sequence, 1) <= numRows, 'Sequence exceeds maximum number of rows.');

0 commit comments

Comments
 (0)