txlineDelayLossless
Creates a lossless transmission line with a delay.
| Library |
|
Description
Use the function txlineDelayLossless to create a lossless transmission line with a delay. Also the object txlineDelayLossless It can be used to simulate a lossless, delayed transmission line in RF systems using an object rfbudget.
In the picture represents the value of the argument TimeDelay, and 1 and 2 are the input and output ports.
Syntax
Function call
-
dltxline = txlineDelayLossless()— creates a lossless, delayed transmission line object with default properties.
-
dltxline = txlineDelayLossless(Name=Value)— sets properties specified by one or more arguments of the type «name-value». Unspecified properties retain their default values.
Arguments
Input arguments «name-value»
Specify optional argument pairs as Name=Value, where Name — the name of the argument, and Value — the appropriate value. You can specify multiple pairs «name-value».
Example: dltxline = txlineDelayLossless(Z0 = 75) creates a lossless, delayed transmission line with impedance 75 Om.
# Z0 — characteristic impedance
+
50.0 (default) | scalar
Details
The characteristic impedance of a lossless delay transmission line, set as a positive scalar in ohms.
| Типы данных |
|
# TimeDelay — time delay in the transmission line
+
1.0e−12 (by default) | scalar
Details
Time delay in a lossless transmission line with a delay specified as a positive scalar in seconds.
| Типы данных |
|
# Name is the name of the lossless delayed transmission line
+
"DelayLossless" (by default) | line
Details
The name of the lossless delayed transmission line, set as a string.
| Типы данных |
|
# Terminals — Lossless delayed transmission line terminals
+
("p1+", "p2+", "p1−", "p2−") (by default) | tuple of strings
Details
Lossless delay transmission line terminals, specified as a tuple of strings from 4 elements.
| This argument is read-only. |
# NumPorts — number of input and output ports
+
2 (by default) | scalar
Details
The number of input and output ports, set as a positive scalar.
| This argument is read-only. |
| Типы данных |
|
Output arguments
# dltxline — transmission line object
+
object
Details
A lossless, delayed transmission line object containing the following properties:
-
Z0— characteristic impedance; -
TimeDelay— time delay; -
Name— the name of the object as a string, for example"DelayLossless"; -
Terminals— terminal names in the form of a tuple of strings; -
NumPorts— number of ports; -
Parent— the parent schema that the chain object belongs to; -
ParentNodes— nodes of the parent schema in the form of a vector of integers, displayed only after adding the child schema to the parent schema; -
ParentPath— the full path to the parent schema as a string, displayed only after adding the child schema to the parent schema; -
Ports— port names as a tuple of strings:("p1", "p2").
Methods
sparameters: Calculation of S-parameters for radio frequency data, networks, circuits and related objects
groupdelay:: Calculation of the group delay of S-parameters, RF filter or circuit object
noisefigure: Calculation of the noise coefficient of transmission lines, serial and parallel RLC circuits
Examples
Calculating the group delay of a lossless delayed transmission line
Details
Create a lossless transmission line with a delay 5e−12 seconds.
dltxline = txlineDelayLossless(TimeDelay = 5e-12)
println("Z0: ", dltxline.Z0,
"\nTimeDelay: ", dltxline.TimeDelay,
"\nName: ", dltxline.Name,
"\nTerminals: ", dltxline.Terminals,
"\nNumPorts: ", dltxline.NumPorts)
Z0: 50.0
TimeDelay: 5.0e-12
Name: DelayLossless
Terminals: ("p1+", "p2+", "p1-", "p2-")
NumPorts: 2
Calculate the group delay at the frequency 10 MHz.
freq = [10e6, 10e6 + 1e3]
gd = groupdelay(dltxline, freq)
2-element Vector{Float64}:
4.999999999998535e-12
4.999999999998535e-12