how to plot variablity chart of particular layer defined by the user?<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />Hello all,
I want to set a particular window for the user defined input layer by using following code:
New Window( "Set a Value",
<
Text Box("Set the layer"),
layer = Combo Box({"AA","RAA","CS"}),
Button Box( "OK"),
Button Box( "Cancel")
);
But i don't know how to add variability chart after pressing "OK" .
Please guide me.
The variability script as follows:
Variabilty chart{
Y(:Name("CD-Value")),
X(:Name("CD-PIC"),:Axis),
Analysis Type(Name("choose best analysis(EMS REML Bayesian)")),
Process Variation(0),
where(:Mask == eval(layer))
}
Re: how to plot variablity chart of particular layer defined by the user?Thank you very much
Re: how to plot variablity chart of particular layer defined by the user?You can set a variable to 1 or 0 with the OK and Cancel button:
New Window( "Set a Value", << Modal,
Panel Box( "Set the layer",
cb = Combo Box( {"AA", "RAA", "CS"} ), ),
Panel Box( "Actions",
H List Box(
Button Box( "OK",
runit = 1;
layer = cb << get selected;
),
Button Box( "Cancel", runit = 0 )
),
)
);
If ( runit,
Variability chart(
Y( :Name( "CD-Value" ) ),
X( :Name( "CD-PIC" ), :Axis ),
Analysis Type( Name( "choose best analysis(EMS REML Bayesian)" ) ),
Process Variation( 0 ),
where( :Mask == layer )
)
);
Re: how to plot variablity chart of particular layer defined by the user?Hello MS,
Thanks for the explanation.
But how to connect variability chart with this New Window, means I want variability chart after pressing "OK".
Re: how to plot variablity chart of particular layer defined by the user?It's easy enough to do what (I think . . . ) you want. But have you considered using a local data filter to let users select the layer on the fly?
NamesDefaultToHere(1);
dt = NewTable("Variability Data",
AddRows(1000),
NewColumn("Layer", Numeric, Nominal, Formula(RandomInteger(1,3))),
NewColumn("Site", Numeric, Continuous, Formula(RandomInteger(1,3))),
NewColumn("Wafer", Numeric, Continuous, Formula(RandomInteger(1,3))),
NewColumn("CD", Numeric, Continuous, Formula(RandomNormal(5,1))),
);
dt << Variability Chart(
Y( :CD ),
X( :Site, :Wafer ),
Analysis Type( "Choose best analysis (EMS REML Bayesian)" ),
Std Dev Chart( 0 ),
Automatic Recalc( 1 ),
Local Data Filter( Mode, Add Filter( columns( :Layer ) ) )
);
Re: how to plot variablity chart of particular layer defined by the user?In your code "layer" refers to the Combo Box() itself, but what you need is a variable to hold the user-selected value. Use << get selected to get the value as a string.
For example:
New Window("Set a Value",
<<Modal,
Text Box("Set the layer"),
cb = Combo Box({"AA", "RAA", "CS"}),
Button Box("OK", layer = cb << get selected),
Button Box("Cancel")
);
Variability chart(
Y(:Name("CD-Value")),
X(:Name("CD-PIC"), :Axis),
Analysis Type(Name("choose best analysis(EMS REML Bayesian)")),
Process Variation(0),
where(:Mask == layer)
);