diff --git a/test/AD4630_24Tests.m b/test/AD4630_24Tests.m index b06a676..ed2b9ec 100644 --- a/test/AD4630_24Tests.m +++ b/test/AD4630_24Tests.m @@ -10,7 +10,7 @@ methods(TestClassSetup) % Check hardware connected function CheckForHardware(testCase) - Device = @()adi.AD4630_24.Rx; + Device = @()adi.AD4630_24.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);