Skip to content

Commit 09ba692

Browse files

33 files changed

+1831
-634
lines changed

.github/CODE_OF_CONDUCT.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.
6+
7+
## Our Standards
8+
9+
Examples of behavior that contributes to creating a positive environment include:
10+
11+
* Using welcoming and inclusive language
12+
* Being respectful of differing viewpoints and experiences
13+
* Gracefully accepting constructive criticism
14+
* Focusing on what is best for the community
15+
* Showing empathy towards other community members
16+
17+
Examples of unacceptable behavior by participants include:
18+
19+
* The use of sexualized language or imagery and unwelcome sexual attention or advances
20+
* Trolling, insulting/derogatory comments, and personal or political attacks
21+
* Public or private harassment
22+
* Publishing others' private information, such as a physical or electronic address, without explicit permission
23+
* Other conduct which could reasonably be considered inappropriate in a professional setting
24+
25+
## Our Responsibilities
26+
27+
Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.
28+
29+
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
30+
31+
## Scope
32+
33+
This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.
34+
35+
## Enforcement
36+
37+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at [email protected]. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
38+
39+
Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.
40+
41+
## Attribution
42+
43+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version]
44+
45+
[homepage]: http://contributor-covenant.org
46+
[version]: http://contributor-covenant.org/version/1/4/

README.md

Lines changed: 58 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,59 @@
1-
# PicoVNA Vector Network Analyzer Toolbox
2-
3-
The PicoVNA Vector Network Analyzer Toolbox provides a set of functions and examples for use with Pico Technology PicoVNA<sup>TM</sup> Vector Network Analyzer products directly from MATLAB.
4-
This toolbox contains Help documentation that can be accessed via the Documentation page in the MATLAB Help menu.
5-
6-
Users downloading the zip file will need to add the root folder and sub-folders to the MATLAB path.
7-
8-
## Getting started
9-
10-
### Prerequisites
11-
12-
* [MATLAB](https://uk.mathworks.com/products/matlab.html) for Microsoft Windows (32-bit)
13-
* PicoVNA 2 software (see [Installing software](#Installing software))
14-
15-
**Notes:**
16-
17-
* MATLAB 2015b is recommended for 32-bit versions of MATLAB on Microsoft Windows operating systems.
18-
* The interface to the PicoVNA Network Analyzers is not currently compatible with 64-bit versions of MATLAB.
19-
20-
### Supported models
21-
22-
* PicoVNA 106
23-
24-
### Installing the PicoVNA Vector Network Analyzer Toolbox files
25-
26-
We recommend using the [Add-Ons Explorer](https://uk.mathworks.com/help/matlab/matlab_env/get-add-ons.html) in MATLAB in order to install these files and obtain updates.
27-
28-
If your version of MATLAB does not have the Add-Ons Explorer, download the zip file from the [MATLAB Central File Exchange page]()
29-
and add the root and sub-folders to the MATLAB path.
30-
31-
### Installing software
32-
33-
* Download the PicoVNA 2 software from our [Downloads page](https://www.picotech.com/downloads).
34-
35-
## Obtaining support
36-
37-
Please visit our [Support page](https://www.picotech.com/tech-support) to contact us directly or visit our [Test and Measurement Forum](https://www.picotech.com/support/forum71.html) to post questions.
38-
39-
Issues can be reported via the [Issues tab](https://github.com/picotech/picosdk-matlab-picovna-vector-network-analyzer-toolbox/issues).
40-
41-
Please leave a comment and rating for this submission on our [MATLAB Central File Exchange page]().
42-
43-
## Code of conduct
44-
45-
Please refer to our [Code of Conduct](.github/CODE_OF_CONDUCT.md).
46-
47-
## Copyright and licensing
48-
49-
See [LICENSE.md](LICENSE.md) for license terms.
50-
51-
*PicoVNA* is a registered trademark of Pico Technology Ltd.
52-
53-
*MATLAB* is a registered trademark of The Mathworks, Inc.
54-
55-
*Windows* is a registered trademark of Microsoft Corporation.
56-
1+
# PicoVNA Vector Network Analyzer Toolbox
2+
3+
The PicoVNA Vector Network Analyzer Toolbox provides a set of functions and examples for use with Pico Technology PicoVNA<sup>®</sup> Vector Network Analyzer products directly from MATLAB.
4+
This toolbox contains Help documentation that can be accessed via the Documentation page in the MATLAB Help menu.
5+
6+
Users downloading the zip file will need to add the root folder and sub-folders to the MATLAB path.
7+
8+
## Getting started
9+
10+
### Prerequisites
11+
12+
* [MATLAB](https://uk.mathworks.com/products/matlab.html) for Microsoft Windows (32-bit)
13+
* [RF Toolbox](https://uk.mathworks.com/products/rftoolbox.html)
14+
* PicoVNA 2 software (see [Installing software](#installing-software))
15+
16+
**Notes:**
17+
18+
* MATLAB 2015b is recommended for 32-bit versions of MATLAB on Microsoft Windows operating systems.
19+
* The interface to the PicoVNA Network Analyzers is not currently compatible with 64-bit versions of MATLAB.
20+
* RF Toolbox is required for the S11 Smith Chart example.
21+
22+
### Supported models
23+
24+
* PicoVNA 106
25+
26+
### Installing the PicoVNA Vector Network Analyzer Toolbox files
27+
28+
We recommend using the [Add-Ons Explorer](https://uk.mathworks.com/help/matlab/matlab_env/get-add-ons.html) in MATLAB in order to install these files and obtain updates.
29+
30+
If your version of MATLAB does not have the Add-Ons Explorer, download the zip file from the [MATLAB Central File Exchange page](https://uk.mathworks.com/matlabcentral/fileexchange/66035-picovna-vector-network-analyzer-toolbox)
31+
and add the root and sub-folders to the MATLAB path.
32+
33+
### Installing software
34+
35+
* Download the PicoVNA 2 software from our [Downloads page](https://www.picotech.com/downloads).
36+
37+
## Obtaining support
38+
39+
Please visit our [Support page](https://www.picotech.com/tech-support) to contact us directly or visit our [Test and Measurement Forum](https://www.picotech.com/support/forum71.html) to post questions.
40+
41+
Issues can be reported via the [Issues tab](https://github.com/picotech/picosdk-matlab-picovna-vector-network-analyzer-toolbox/issues).
42+
43+
Please leave a comment and rating for this submission on our [MATLAB Central File Exchange page](https://uk.mathworks.com/matlabcentral/fileexchange/66035-picovna-vector-network-analyzer-toolbox).
44+
45+
## Code of conduct
46+
47+
Please refer to our [Code of Conduct](.github/CODE_OF_CONDUCT.md).
48+
49+
## Copyright and licensing
50+
51+
See [LICENSE.md](LICENSE.md) for license terms.
52+
53+
*PicoVNA* is a registered trademark of Pico Technology Ltd.
54+
55+
*MATLAB* is a registered trademark of The Mathworks, Inc. *RF Toolbox* is a registered trademark of The Mathworks, Inc.
56+
57+
*Windows* is a registered trademark of Microsoft Corporation.
58+
5759
Copyright © 2017-2018 Pico Technology Ltd. All rights reserved.

examples/PicoVNA_DUT_PassFail_Testing_Example.m

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@
22
%
33
% This is an example of a Pass/Fail test using the PicoVNA. This compares a
44
% S21 log magnitude sweep from a device to the same measurement of a
5-
% prevously measured Golden DUT using the PicoVNA_GoldenDUT_Example.m file.
5+
% previously measured Golden DUT using the |PicoVNA_GoldenDUT_Example.m| file.
66
%
77
% To run this example session, type the name of the file,
8-
% PicoVNA_DUT_PassFail_Testing_Example, in the MATLAB Command Window.
8+
% |PicoVNA_DUT_PassFail_Testing_Example|, in the MATLAB Command Window.
99
%
10-
% The file, PicoVNA_DUT_PassFail_Testing_Example.m must be on your MATLAB
11-
% Path. For additional information on setting your MATLAB path, type 'help
12-
% addpath' in the MATLAB Command Window
10+
% The file, |PicoVNA_DUT_PassFail_Testing_Example.m| must be on your MATLAB
11+
% Path. For additional information on setting your MATLAB path, see
12+
% <matlab:doc('addpath') addpath>.
1313
%
14-
% Additionally you must have the .cal file for your device and the
15-
% GoldenDUT.mat file in the current folder.
14+
% Additionally you must have the |.cal| file for your device and the
15+
% |GoldenDUT.mat| file in the current folder.
1616
%
1717
% *Example:*
1818
% PicoVNA_DUT_PassFail_Testing_Example;
@@ -37,21 +37,21 @@
3737
%% Load calibration
3838
% Load a calibration and settings file.
3939
% This needs to be generated and saved using the PicoVNA2 software.
40-
41-
% Replace DefCal.cal with the correct calibration for your device, 'Pico TD
42-
% demo with limits [Serial#].cal'.
40+
%
41+
% Replace |DefCal.cal| with the correct calibration for your device, |Pico TD
42+
% demo with limits [Serial#].cal|.
4343

4444
picoVNACOMObj.LoadCal('DefCal.cal');
4545

4646
%% Load Golden DUT log magnitude
4747
% Load in the reference data from the Golden Dut captured using
48-
% PicoVNA_GoldenDUT_Example.m
48+
% <PicoVNA_GoldenDUT_Example.html |PicoVNA_GoldenDUT_Example|>
4949

5050
load('GoldenDUT.mat');
5151

5252
%% Create pass band
5353
% Create a pass band using the Golden DUT data and the tolererance in dB of
54-
% the testing for comparision with the DUTs later.
54+
% the testing for comparison with the DUTs later.
5555

5656
tolerance = 0.2; % Tolerance of the cable in dB
5757

@@ -159,4 +159,4 @@
159159

160160
disconnectVNA(picoVNACOMObj)
161161
close PicoVNA
162-
clear ans ax1 flag go i k n picoVNACOMObj
162+
clear ans ax1 flag go i k n picoVNACOMObj

examples/PicoVNA_GoldenDUT_Example.m

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@
33
% This is an example of Golden DUT data aquisition using the PicoVNA. This
44
% makes a measurement of the Golden DUT and retrieves the S21 log magnitude
55
% data from the VNA ready for use in the
6-
% PicoVNA_DUT_PassFail_Testing_Example.
6+
% <PicoVNA_DUT_PassFail_testing_Example.html |PicoVNA_DUT_PassFail_Testing_Example|>.
77
%
88
% To run this example session, type the name of the file,
9-
% PicoVNA_GoldenDUT_Example, in the MATLAB Command Window.
9+
% |PicoVNA_GoldenDUT_Example|, in the MATLAB Command Window.
1010
%
11-
% The file, PicoVNA_GoldenDUT_Example.m must be on your MATLAB PAth. For
12-
% additional information on setting your MATLAB path, type 'help addpath'
13-
% in the MATLAB Command Window
11+
% The file, |PicoVNA_GoldenDUT_Example.m| must be on your MATLAB Path. For
12+
% additional information on setting your MATLAB path, see
13+
% <matlab:doc('addpath') addpath>.
1414
%
15-
% Additionally you must have the .cal file for your device in the current
15+
% Additionally you must have the |.cal| file for your device in the current
1616
% folder.
1717
%
1818
% *Example:*
@@ -36,10 +36,10 @@
3636

3737
%% Load calibration
3838
% Load a calibration and settings file.
39-
% This needs to be generated and saved using the PicoVNA2 software.
40-
41-
% Replace DefCal.cal with the correct calibration for your device, 'Pico TD
42-
% demo with limits [Serial#].cal'.
39+
% This needs to be generated and saved using the PicoVNA 2 software.
40+
%
41+
% Replace |DefCal.cal| with the correct calibration for your device, |Pico TD
42+
% demo with limits [Serial#].cal|.
4343
picoVNACOMObj.LoadCal('DefCal.cal');
4444

4545
%% Measure Golden DUT
@@ -50,12 +50,12 @@
5050
[Golden.Frequency, Golden.S12LogMag] = getBlockDataVNA(picoVNACOMObj,'S21','logmag');
5151

5252
%% Save Golden DUT Data
53-
% Save the Golden DUT data read for use in the Pass/Fail Testing Example.
53+
% Save the Golden DUT data read for use in the <PicoVNA_DUT_PassFail_Testing_example.html Pass/Fail Testing Example>.
5454

5555
save ('GoldenDUT.mat', 'Golden');
5656

5757
%% Disconnect VNA
5858

5959
disconnectVNA(picoVNACOMObj);
6060

61-
disp('Complete');
61+
disp('Complete');

examples/PicoVNA_S11_Smith_Chart_Example.m

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
% Chart.
66
%
77
% To run this example session, type the name of the file,
8-
% PicoVNA_S11_Smith_Chart_Example, in the MATLAB Command Window.
8+
% |PicoVNA_S11_Smith_Chart_Example|, in the MATLAB Command Window.
99
%
10-
% The file, PicoVNA_S11_Smith_Chart_Example.m must be on your MATLAB Path. For
11-
% additional information on setting your MATLAB path, type 'help addpath' in
12-
% the MATLAB Command Window.
10+
% The file, |PicoVNA_S11_Smith_Chart_Example.m| must be on your MATLAB Path. For
11+
% additional information on setting your MATLAB path, see
12+
% <matlab:doc('addpath') addpath>.
1313
%
14-
% Additionally you must have the .cal file for your device in the current
14+
% Additionally you must have the |.cal| file for your device in the current
1515
% folder.
1616
%
1717
% <https://uk.mathworks.com/products/rftoolbox.html RF Toolbox> is required for this example.
@@ -36,10 +36,10 @@
3636

3737
%% Load calibration
3838
% Load a calibration and settings file.
39-
% This needs to be generated and saved using the PicoVNA2 software.
40-
41-
% Replace DefCal.cal with the correct calibration for your device, 'Pico TD
42-
% demo with limits [Serial#].cal'.
39+
% This needs to be generated and saved using the PicoVNA 2 software.
40+
%
41+
% Replace |DefCal.cal| with the correct calibration for your device, |Pico TD
42+
% demo with limits [Serial#].cal|.
4343

4444
picoVNACOMObj.LoadCal('DefCal.cal');
4545

@@ -91,4 +91,4 @@
9191

9292
% Tidy workspace
9393
close PicoVNA
94-
clear ans flag go stopFig picoVNACOMObj
94+
clear ans flag go stopFig picoVNACOMObj
Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,27 @@
1-
%% PicoVNA Rapid Block Example
1+
%% PicoVNA S-Parameter Example
22
%
33
% This is an example of setting up the connection with the Pico Technology
4-
% PicoVNA 106, loading calibration data, making measurements and collecting
5-
% the log magnitude data for S11, S12, S21 and S22.
4+
% PicoVNA Vector Newtwork Analyzer, loading calibration data, making measurements and collecting
5+
% the log magnitude data for S11, S12, S21 and S22 parameters.
66
%
77
% To run this example session, type the name of the file,
8-
% PicoVNA_Rapid_Block_Example, in the MATLAB Command Window.
8+
% |PicoVNA_S_Parameter_Example|, in the MATLAB Command Window.
99
%
10-
% The file, PicoVNA_Rapid_Block_Example.m must be on your MATLAB Path. For
11-
% additional information on setting your MATLAB path, type 'help addpath' in
12-
% the MATLAB Command Window
10+
% The file, |PicoVNA_S_Parameter_Example.m| must be on your MATLAB Path. For
11+
% additional information on setting your MATLAB path, see
12+
% <matlab:doc('addpath') addpath>.
1313
%
14-
% Additionally you must have the .cal file for your device in the current
14+
% Additionally you must have the |.cal| file for your device in the current
1515
% folder.
1616
%
1717
% *Example:*
18-
% PicoVNA_Rapid_Block_Example;
18+
% PicoVNA_S-Parameter_Example;
1919
%
2020
% *Description:*
2121
% Demonstrates how to connect to the VNA, load in a calibration, make
22-
% measurements and collect data for S11, S12, S21 and S22. The measurement
23-
% and data collection is looped until the user stops the process.
22+
% measurements and collect data for S11, S12, S21 and S22 parameters. The
23+
% S-parameters are plotted onto auto-scaled plots. The measurement and
24+
% data collection is looped until the user stops the process.
2425
%
2526
% *Copyright:* © 2017-2018 Pico Technology Ltd. See LICENSE file for terms.
2627

@@ -36,6 +37,7 @@
3637

3738
%% Load Calibration
3839
% Load a calibration and settings file.
40+
<<<<<<< HEAD:examples/PicoVNA_Rapid_Block_Example.m
3941
% This needs to be generated and saved using the PicoVNA2 software.
4042

4143
% Replace DefCal.cal with the correct calibration for your device, 'Pico TD
@@ -44,6 +46,13 @@
4446

4547
%%
4648
ans1 = picoVNACOMObj.SetEnhance('BW', 140000);
49+
=======
50+
% This needs to be generated and saved using the PicoVNA 2 software.
51+
%
52+
% Replace |DefCal.cal| with the correct calibration for your device, |Pico TD
53+
% demo with limits [Serial#].cal|.
54+
picoVNACOMObj.LoadCal('DefCal.cal');
55+
>>>>>>> 2cfc4b692078fea93da97288c75f6be6cdb49fa4:examples/PicoVNA_S_Parameter_Example.m
4756

4857
%% Stop button for exiting loop
4958
% Create a stop button for exiting rapid block capture and for displaying
@@ -196,4 +205,4 @@
196205
disconnectVNA(picoVNACOMObj)
197206

198207
% Tidy workspace
199-
clear ans flag go maxS11 minS11 maxS12 minS12 maxS21 minS21 maxS22 minS22 picoVNACOMObj
208+
clear ans flag go maxS11 minS11 maxS12 minS12 maxS21 minS21 maxS22 minS22 picoVNACOMObj

0 commit comments

Comments
 (0)