Skip to content

Commit 03f850f

Browse files
committed
test: Fix parameters
Signed-off-by: Pineda <Julia.Pineda@analog.com>
1 parent c6f7f51 commit 03f850f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

test/AD4630_24Tests.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
properties(TestParameter)
99
% start frequency, stop frequency, step, tolerance, repeats
1010
signal_test = {{10000,250000,2500,0.05,10}};
11-
signal_vpp = {0.1, 0.3, 0.5};
11+
signal_vpp = {0.5};
1212
sample_rate = {'10000', '50000', '100000', ...
1313
'200000', '500000', '1000000', ...
1414
'1760000', '2000000'};

test/AD7768_1Tests.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
properties(TestParameter)
99
% start. stop, step, tolerance, repeats
1010
signal_test = {{1000,125000,2500,0.015,10}};
11-
samples_per_frame = {{2^1,1048580,2^16,0.0,10}};
11+
samples_per_frame = {{2^1,2^20,2^16,0.0,10}};
1212
sample_rate = {'256000', '128000', '64000', ...
1313
'32000', '16000', '8000', '4000', ...
1414
'2000', '1000'};
@@ -89,7 +89,7 @@ function testAD7768_1AttrSamplesPerFrame(testCase,samples_per_frame)
8989
step = samples_per_frame{3};
9090
tol = samples_per_frame{4};
9191
repeats = samples_per_frame{5};
92-
numints = round((stop-start)/step);
92+
numints = floor((stop-start)/step);
9393
for ii = 1:repeats
9494
ind = randi([0, numints]);
9595
val = start+(step*ind);

0 commit comments

Comments
 (0)