phaseshift
Creates a phase-shifting circuit.
| Library |
|
Syntax
Function call
-
psh = phaseshift()— creates a phase-shifting circuit object whose properties are set by default.
-
psh = phaseshift(Name=Value)— creates a phase-shifting chain object with properties specified by one or more arguments of the typeName=Value. Unspecified properties retain their by default values.
Arguments
Name-value input arguments
# Name — name of the phase-shifting circuit
+
"phaseshift" (by default) | string
Details
The name of the phase-shifting circuit. All names must be valid variable names.
| Типы данных |
|
# PhaseShift — phase shift, deg.
+
90 (by default) | positive scalar
Details
The phase difference between the input and output signals in degrees, expressed in terms of the phase shift introduced by the circuit elements, given as a positive scalar.
| Типы данных |
|
# NumPorts — number of ports
+
2 (by default) | scalar
Details
The number of ports specified as an integer scalar.
| This argument is read-only. |
| Типы данных |
|
# Terminals — terminal names
+
("p1+", "p2+", "p1−", "p2−") (by default) | tuple of strings
Details
Terminal names specified as a tuple of strings.
| This argument is read-only. |
Output arguments
# psh — the object of the phase-shifting circuit
+
object
Details
The object of the phase-shifting circuit.
Examples
Creating a phase-shifting circuit object with by default properties
Details
Create a phase-shifting circuit object and display its properties.
using EngeeRF
psh = phaseshift()
println("Name: ", psh.Name)
println("PhaseShift: ", psh.PhaseShift)
println("NumPorts: ", psh.NumPorts)
println("Terminals: ", psh.Terminals)
Name: phaseshift
PhaseShift: 90.0
NumPorts: 2
Terminals: ("p1+", "p2+", "p1-", "p2-")
Creation of a phase-shifting circuit and calculation of S-parameters
Details
Let’s create a circuit with a phase shift by 25 degrees for the radio receiver and calculate the S-parameters at the frequency 3 GHz.
using EngeeRF
psh = phaseshift(PhaseShift = 25)
spar = sparameters(psh,3e9)
sparameters(Impedance = 50.0, NumPorts = 2, Parameters = ComplexF64[0.0 + 0.0im 0.9063077870366499 + 0.42261826174069944im; 0.9063077870366499 + 0.42261826174069944im 0.0 + 0.0im;;;], Frequencies = [3.0e9])