From 6997cd0dd9e5156c64256a456dded2386f4ee36f Mon Sep 17 00:00:00 2001 From: Julia Pineda Date: Mon, 27 May 2024 11:12:22 +0800 Subject: [PATCH] Fix uri setting Signed-off-by: Julia Pineda --- test/AD4030Tests.m | 2 +- test/AD7768Tests.m | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/test/AD4030Tests.m b/test/AD4030Tests.m index 0ffe680..556d8ff 100644 --- a/test/AD4030Tests.m +++ b/test/AD4030Tests.m @@ -10,7 +10,7 @@ methods(TestClassSetup) % Check hardware connected function CheckForHardware(testCase) - Device = @()adi.AD4030.Rx; + Device = @()adi.AD4030.Rx('uri',testCase.uri); testCase.CheckDevice('ip',Device,testCase.uri(4:end),false); end end diff --git a/test/AD7768Tests.m b/test/AD7768Tests.m index 1e79617..e3e2944 100644 --- a/test/AD7768Tests.m +++ b/test/AD7768Tests.m @@ -18,7 +18,8 @@ function CheckForHardware(testCase) methods (Test) function testAD7768Smoke(testCase) - adc = adi.AD7768.Rx('uri',testCase.uri); + adc = adi.AD7768.Rx(); + adc.uri = testCase.uri; data = adc(); adc.release(); testCase.assertTrue(sum(abs(double(data)))>0);