Subscribe Bookmark RSS Feed

how to plot variablity chart of particular layer defined by the user?

kaushik_pushpen

Community Trekker

Joined:

Feb 22, 2015

Hello all,

I want to set a particular window for the user defined input layer by using following code:

New Window( "Set a Value",

<<Modal,

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))

}

5 REPLIES
ms

Super User

Joined:

Jun 23, 2011

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)

);

ian_jmp

Staff

Joined:

Jun 23, 2011

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 ) ) )

  );



kaushik_pushpen

Community Trekker

Joined:

Feb 22, 2015

Hello MS,

Thanks for the explanation.

But how to connect variability chart with this New Window, means  I want variability chart after pressing "OK".

pmroz

Super User

Joined:

Jun 23, 2011

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 )

    )

);

kaushik_pushpen

Community Trekker

Joined:

Feb 22, 2015

Thank you very much