Skip to content

Commit

Permalink
Add argument validation to configure_time_port_marker
Browse files Browse the repository at this point in the history
  • Loading branch information
pablorcum committed May 1, 2024
1 parent 5d626c4 commit 8d6ab14
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion toolbox/src/bossdevice.m
Original file line number Diff line number Diff line change
Expand Up @@ -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.');
Expand Down

0 comments on commit 8d6ab14

Please sign in to comment.