rfdata.data
Saves the result of the analysis of the chain object.
| Library |
|
Description
Ways to create an object rfdata.data:
-
You can create it by specifying its properties from the workspace data using the constructor.
rfdata.data. -
You can perform an analysis of the frequency domain of a circuit object using the function
analyze, and the result will be saved in the objectrfdata.data.
|
It is recommended to use the function |
Syntax
Function call
-
h = rfdata.data()— creates a data object whose properties are set by default.
-
h = rfdata.data(Name=Value)— sets properties specified by one or more name-value arguments. Unspecified properties retain their default values.
Arguments
Name-value input arguments
Specify optional argument pairs as Name=Value, where Name — the name of the argument, and Value — the appropriate value.
# Freq — frequency values for S-parameters, Hz
+
vector
Details
Frequency data for the S-parameters in the property S_Parameters, set as a vector from elements in Hz. The values must be positive and correspond to the order of the S-parameters. By default, this vector is empty.
| Типы данных |
|
# S_Parameters — S-parameter data
+
array
Details
S-parameter data, set as an array of size on on , where — the number of frequencies at which the network parameters are set. By default, this array is empty.
| Типы данных |
|
| Support for complex numbers |
Yes |
# Z0 — reference impedance, ohms
+
50 (by default) | scalar
Details
The reference impedance, set as a scalar in ohms.
| Типы данных |
|
| Support for complex numbers |
Yes |
# ZS — source impedance, ohms
+
50 (default) | scalar
Details
The impedance of the source, set as a scalar in ohms.
| Типы данных |
|
| Support for complex numbers |
Yes |
# ZL — load impedance, ohms
+
50 (by default) | scalar
Details
The load impedance, set as a scalar in ohms.
| Типы данных |
|
| Support for complex numbers |
Yes |
# IntpType — interpolation method
+
"Linear" (by default) | "Spline" | "Cubic"
Details
The interpolation method used in the function rfdata.data, set as one of the following values:
-
"Linear"— linear interpolation; -
"Spline"— cubic spline interpolation; -
"Cubic"— piecewise cubic Hermite interpolation.
# Name — the name of the object
+
"Data Object" (by default) | line
Details
The name of the object, set as a string.
| This argument is read-only. |
| Типы данных |
|
Examples
Creating a data object
Details
Creating a data object with the default properties using the function rfdata.data.
using EngeeRF
h = rfdata.data()
println("Name: ", h.Name,
"\nFreq: ", h.Freq,
"\nS-Parameters: ", h.S_Parameters,
"\nRefImpedance: ", h.Z0,
"\nSourceImpedance: ", h.ZS,
"\nLoadImpedance: ", h.ZL,
"\nIntpType: ", h.IntpType)
Name: Data Object
Freq: Float64[]
S-Parameters: Array{ComplexF64, 3}(undef, 1, 1, 0)
RefImpedance: ComplexF64[50.0 + 0.0im]
SourceImpedance: ComplexF64[50.0 + 0.0im]
LoadImpedance: ComplexF64[50.0 + 0.0im]
IntpType: Linear