stackUp
Description
Use the stackUp
object to create a printed circuit board (PCB)
stackup definition to import Gerber files. A Gerber file is a set of manufacturing files used
to describe a PCB. A Gerber file uses an ASCII vector format for 2-D binary
images.
Creation
Syntax
Description
s = stackUp
creates a default PCB stackup object with five
layers. Specify Gerber files as inputs to the second and fourth layers. Specify
dielectric material objects as inputs to layers one, three, and five.
Properties
NumLayers
— Number of layers in stackup
5
(default) | positive scalar
This property is read-only.
Number of layers in the stackup, returned as a positive scalar.
Layer1
— First layer in stackup
'Air'
(default) | dielectric
object
First layer in the stackup definition object, specified as a dielectric
object.
Example:
s = stackUp; d = dielectric('RO4725JXR'); s.Layer1 =
d;
Layer2
— Second layer in stackup
character vector | string scalar
Second layer in the stackup definition object, specified as a character vector or string. The file should be saved as a GTL, GBL, or GBR file.
Example:
s = stackUp; s.Layer2 = 'antenna_design_file.gtl';
Note
The Gerber file must be imported to the MATLAB® workspace before setting this property.
Layer3
— Third layer in stackup
'FR4'
(default) | dielectric
object
Third layer in the stackup definition object, specified as a dielectric
object.
Example: s = stackUp; d = dielectric('RO4725JXR'); s.Layer3 =
d;
Layer4
— Fourth layer in stackup
character vector | string scalar
Fourth layer in the stackup definition object, specified as a character vector or string. The file should be saved as a GTL, GBL, or GBR file.
Example:
s = stackUp; s.Layer4 = 'antenna_design_file.gbl';
Note
The Gerber file must be imported to the MATLAB workspace before setting this property.
Layer5
— Fifth layer in stackup
'Air'
(default) |
dielectric
object
Fifth layer in the stackup definition object, specified as a dielectric
object.
Example: s = stackUp; d = dielectric('RO4725JXR'); s.Layer5 =
d;
Examples
Import Gerber Files Using Stackup Definition
Create a PCB stack up definition object using default properties.
S = stackUp;
Set the thickness of the dielectric Air in layer 1 to 0.1 mm.
S.Layer1.Thickness = 0.1e-3;
Import a top layer Gerber file to layer 2.
S.Layer2 = 'interdigital_Capacitor.gtl';
Create a PCBReader
object using the stackUp
object, S
.
p = PCBReader('StackUp',S);
To update the Gerber file, convert the PCBReader
object to a pcbComponent
object.
pcbcapacitor = pcbComponent(p); pcbcapacitor.FeedDiameter = 0.001
pcbcapacitor = pcbComponent with properties: Name: 'interdigital_Capacitor' Revision: 'v1.0' BoardShape: [1x1 antenna.Rectangle] BoardThickness: 0.0061 Layers: {[1x1 dielectric] [1x1 antenna.Polygon] [1x1 dielectric] [1x1 dielectric]} FeedLocations: [0 0 2] FeedDiameter: 1.0000e-03 ViaLocations: [] ViaDiameter: [] FeedViaModel: 'square' Conductor: [1x1 metal] Tilt: 0 TiltAxis: [0 0 1] Load: [1x1 lumpedElement]
View the PCB component in the Gerber file.
show(pcbcapacitor)
Version History
Introduced in R2021b
See Also
Ouvrir l'exemple
Vous possédez une version modifiée de cet exemple. Souhaitez-vous ouvrir cet exemple avec vos modifications ?
Commande MATLAB
Vous avez cliqué sur un lien qui correspond à cette commande MATLAB :
Pour exécuter la commande, saisissez-la dans la fenêtre de commande de MATLAB. Les navigateurs web ne supportent pas les commandes MATLAB.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)