| 1 | """ |
| 2 | .. module:: skrf.vi |
| 3 | ======================================================== |
| 4 | virtual instruments (:mod:`skrf.vi`) |
| 5 | ======================================================== |
| 6 | |
| 7 | This module defines "virtual instruments" or interfaces to a number of different |
| 8 | types of instruments used in RF measurements and experiments. |
| 9 | |
| 10 | Creating A Driver |
| 11 | ================= |
| 12 | |
| 13 | Drivers are classes inherited from the respective instrument type's abstract base |
| 14 | class and define methods specific to each instrument. This syntax can be complex |
| 15 | and vary wildly between devices and manufacturers. The vi module attempts to |
| 16 | present a standard interface for each. |
| 17 | |
| 18 | Basically, creating a driver consists of the following: |
| 19 | |
| 20 | 1. Creating an instrument class that inherits from its abstract base class |
| 21 | 2. Consulting the device's datasheet to find the command for each method in the |
| 22 | abstract base class |
| 23 | |
| 24 | Those wishing to use an instrument that's not supported are encouraged to |
| 25 | consult existing classes to understand the architecture, develop their own |
| 26 | class, and contribute it to scikit-rf. |
| 27 | |
| 28 | If you choose to do so, please try to use the following standard terms for the |
| 29 | associated meaning |
| 30 | |
| 31 | Conventions |
| 32 | ----------- |
| 33 | |
| 34 | ==================== ======================================================== |
| 35 | Name Meaning |
| 36 | ==================== ======================================================== |
| 37 | frequency Frequency settings [:class:`skrf.Frequency`] |
| 38 | freq_start Start frequency [Hz] |
| 39 | freq_stop Stop frequency [Hz] |
| 40 | freq_step Frequency step [Hz] |
| 41 | freq_center Center frequency [Hz] |
| 42 | freq_span Frequency span [Hz] |
| 43 | npoints Number of frequency points |
| 44 | sweep_time Time taken for a frequency sweep [s] |
| 45 | sweep_type How frequency points are distributed (linear,log,etc.) |
| 46 | sweep_mode How the instrument is triggered (continuous,single,etc) |
| 47 | averaging_on Whether averaging is on or not |
| 48 | averaging_count The number of measurements combined for an average |
| 49 | averaging_mode How averages are taken (per point, each sweep, etc) |
| 50 | if_bandwidth IF bandwidth [Hz] |
| 51 | ==================== ======================================================== |
| 52 | |
| 53 | Validators |
| 54 | ---------- |
| 55 | |
| 56 | .. autosummary:: |
| 57 | :toctree: generated/ |
| 58 | |
| 59 | validators.IntValidator |
| 60 | validators.FloatValidator |
| 61 | validators.FreqValidator |
| 62 | validators.EnumValidator |
| 63 | validators.SetValidator |
| 64 | validators.DictValidator |
| 65 | validators.DelimitedStrValidator |
| 66 | validators.BooleanValidator |
| 67 | |
| 68 | """ |
| 69 | from . import validators |