Skip to content

Commit b1ca514

Browse files
committed
Update other functions to work with PicoVNA 108
1 parent 47d768a commit b1ca514

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

functions/connectVNA.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
%
33
%% Description
44
%
5-
% |connectVNA()| creates and returns a COM object to a PicoVNA device.
5+
% |connectVNA()| creates and returns a COM object to a PicoVNA106 device.
66
%
77
% *Output Arguments:*
88
%

functions/disconnectVNA.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
function disconnectVNA(obj)
1717

1818
% Check inputs are valid
19-
validateattributes(obj,{'COM.PicoControl2_PicoVNA__2'},{});
19+
validateattributes(obj,{'COM.PicoControl2_PicoVNA__2','COM.PicoControl3_PicoVNA__3'},{});
2020

2121
% Close connection to PicoVNA.
2222
obj.CloseVNA();
@@ -26,4 +26,4 @@ function disconnectVNA(obj)
2626

2727
end
2828
%%
29-
% *Copyright:* © 2017-2018 Pico Technology Ltd. All rights reserved.
29+
% *Copyright:* © 2017-2020 Pico Technology Ltd. All rights reserved.

functions/getBlockDataVNA.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
function [frequency, data] = getBlockDataVNA(obj, Spara, datatype)
2323

2424
% Check for valid inputs
25-
validateattributes(obj,{'COM.PicoControl2_PicoVNA__2'},{});
26-
validstr1 = validatestring(Spara,{'S11', 'S12', 'S21', 'S22'});
25+
validateattributes(obj,{'COM.PicoControl2_PicoVNA__2','COM.PicoControl3_PicoVNA__3'},{});
26+
validstr1 = validatestring(Spara,{'S11', 'S12', 'S21', 'S22', 'Rawdata'});
2727
validstr2 = validatestring(datatype,{'real', 'imag', 'logmag', 'phase', 'swr', 'gd', 'td'});
2828

2929
% Get data from VNA.
@@ -41,4 +41,4 @@
4141
end
4242

4343
%%
44-
% *Copyright:* © 2017-2018 Pico Technology Ltd. All rights reserved.
44+
% *Copyright:* © 2017-2020 Pico Technology Ltd. All rights reserved.

0 commit comments

Comments
 (0)