Create PCBReader object with specified Gerber and drill files
PCBReader
P = gerberRead(T)
P = gerberRead([],B)
P = gerberRead(T,B)
P = gerberRead(T,B,D)
example
P = gerberRead(T) creates a PCBReader object with the top layer Gerber file specified in T.
P
T
P = gerberRead([],B) creates a PCBReader object with the bottom layer Gerber file specified in B.
B
P = gerberRead(T,B) creates a PCBReader object with the specified top and bottom layer Gerber files.
P = gerberRead(T,B,D) creates a PCBReader object with the specified top and bottom layer Gerber files and the drill file specified in D .
D
collapse all
Use the gerberRead function to import a top layer Gerber file.
gerberRead
P = gerberRead('antenna_design_file.gtl');
Extract the metal layer from the file using the shapes function.
shapes
s = shapes(P);
View the top metal layer.
show(s)
Use the gerberRead function to import top and bottom layer Gerber files.
P = gerberRead('antenna_design_file.gtl','antenna_design_file.gbl');
Display the stack.
P.StackUp
ans = stackUp with properties: NumLayers: 5 Layer1: [1x1 dielectric] Layer2: 'antenna_design_file.gtl' Layer3: [1x1 dielectric] Layer4: 'antenna_design_file.gbl' Layer5: [1x1 dielectric]
Modify the third layer in the stack, which is the dielectric layer between the top and bottom metal layers.
S = P.StackUp; S.Layer3 = dielectric('Name','FR4','EpsilonR', 4.4, 'Thickness', 0.8e-3); P.StackUp = S;
Create the antenna model by calling the pcbStack object on the PCB reader.
pcbStack
pb2 = pcbStack(P); figure show(pb2)
Top layer Gerber file, specified as a character vector or string scalar. The file should be saved as a GTL file.
Example: gerberRead('Filetop.gtl');
gerberRead('Filetop.gtl');
Bottom layer Gerber file, specified as a character vector or string scalar. The file should be saved as a GBL file.
Example: gerberRead([],'FileBottom.gbl');
gerberRead([],'FileBottom.gbl');
Drill file, specified a character vector or string scalar. You can specify either a DRL or a TXT file.
Example: gerberRead('Filetop.gtl','FileBottom.gbl','FileDrill.txt');
gerberRead('Filetop.gtl','FileBottom.gbl','FileDrill.txt');
Read Gerber and drill files, returned as a PCBReader object.
PCBConnectors | PCBReader | PCBServices | PCBWriter | shapes
PCBConnectors
PCBServices
PCBWriter
You have a modified version of this example. Do you want to open this example with your edits?