How to duplicate network parameters and cascade vertically?
4 views (last 30 days)
Show older comments
I'd like to duplicate an s-parameter file and cascade it vertically to itself to be able to use in concatenating to a larger s-parameter. For example, taking two identical s4p files together to create an s8p file: .s4p + .s4p = .s8p
I understand this voids the crosstalk terms in the vertical direction, however I need to duplicate a generic connector model to step across the pins of a large device (s192p). The cascadesparams command can do this, however it seems difficult to do for large networks because the pins would need to be remapped after each cascade (this function always cascades starting from the bottom pin of adjacent networks, does not allow vertical integration without first remapping ports).
__
1-| |-5
2-|__|-6
__
3-| |-7
4-|__|-8
1 Comment
Mark
on 23 Mar 2016
Edited: Mark
on 23 Mar 2016
The RF Toolbox offers a node-based syntax for constructing RF circuits. Here's a snippet of code that takes two 4-ports and adds them to a circuit with the node numbering you give above.
ckt = circuit;
n1 = nport('default.s4p');
add(ckt,[1 2 5 6],n1)
n2 = nport('default.s4p');
add(ckt,[3 4 7 8],n2)
setports(ckt,[1 0],[2 0],[3 0],[4 0],[5 0],[6 0],[7 0],[8 0])
freq = n1.NetworkData.Frequencies;
S = sparameters(ckt,freq,50);
rfplot(S)
r1 = resistor(10);
add(ckt,[2 3],r1); % add small resistor across nodes 2 and 3
r2 = resistor(10);
add(ckt,[6 7],r2); % add small resistor across nodes 6 and 7
S2 = sparameters(ckt,freq,50);
figure(2)
rfplot(S2)
I hope this helps!
Best, Mark
Answers (0)
See Also
Categories
Find more on Frequency Domain Analysis in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!