Add multiple vias or feeds in a pcb antenna
7 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
rect1 = antenna.Rectangle("Center",[0 0],"Length",75e-3,"Width",37.5e-3);
rect2 = antenna.Rectangle("Center",[0 0],"Length",150e-3,"Width",75e-3);
p = pcbStack("BoardShape",rect2,"Layers",{rect1, rect2});
p.ViaLocations = [0 0 1 2];
show(p);
This is a script, if I run the script I get this error messege. I would like to add 2 vias (in this example I add only one, but I would like to know how I can add more) but I get this error, I don't understand why, there isn't one example on this in the documentation
0 Kommentare
Antworten (1)
Janakinadh
am 29 Apr. 2022
Bearbeitet: Janakinadh
am 29 Apr. 2022
Hello,
The visualization seems to fail because the ViaDiameter is empty.
rect1 = antenna.Rectangle("Center",[0 0],"Length",75e-3,"Width",37.5e-3);
rect2 = antenna.Rectangle("Center",[0 0],"Length",150e-3,"Width",75e-3);
p = pcbStack("BoardShape",rect2,"Layers",{rect1, rect2});
p.ViaLocations = [0 0 1 2];
p.ViaDiameter
So, try to visualize after setting the ViaDiameter.
p.ViaDiameter = 1e-3;
show(p)
You can add 2 vias by doing something such as:
p.ViaLocations = [0 0 1 2;0.01 0 1 2];
show(p)
Hope this helps.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Get Started with Antenna Toolbox finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!