cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Try the Materials Informatics Toolkit, which is designed to easily handle SMILES data. This and other helpful add-ins are available in the JMP® Marketplace
%3CLINGO-SUB%20id%3D%22lingo-sub-723216%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EC%C3%B3mo%20actualizar%20din%C3%A1micamente%20el%20filtrado%20de%20procesos%20u%20otros%20objetos.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-723216%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHola%20de%20nuevo%20comunidad%20JMP%2C%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3EMuchas%20gracias%20por%20tomarte%20el%20tiempo%20y%20responder%20a%20mi%20pregunta%20anterior.%20El%20c%C3%B3digo%20que%20ejecuto%20a%20continuaci%C3%B3n%20(JMP%20pro%2017.2)%20no%20parece%20funcionar%20como%20se%20esperaba.%20Mi%20objetivo%20es%20que%2C%20despu%C3%A9s%20de%20presionar%20el%20bot%C3%B3n%20%3CSTRONG%3ERehacer%3C%2FSTRONG%3E%20%2C%20el%20an%C3%A1lisis%20de%20procesos%20cambie%20de%20agrupar%20por%20%22lot_id%22%20a%20agrupar%20por%20%22wafer%22.%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CP%3ESupongo%20que%20una%20vez%20que%20declaro%20la%20variable%20PS%2C%20conserva%20todas%20las%20configuraciones%20iniciales%20y%20no%20es%20posible%20actualizarla%20din%C3%A1micamente%2C%20ya%20que%20no%20pude%20encontrar%20ning%C3%BAn%20comando%20%22%26lt%3B%26lt%3B%20%22%20que%20actualice%20la%20variable%20de%20agrupaci%C3%B3n.%20%C2%BFExiste%20una%20soluci%C3%B3n%20simple%20para%20este%20ejemplo%3F%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3ECols%20%3D%20%7B%22NPN1%22%2C%20%22PNP1%22%2C%20%22PNP2%22%2C%20%22NPN2%22%7D%3B%0AGR%20%3D%20%22lot_id%22%3B%0Adt%20%3D%20Open(%20%22%24SAMPLE_DATA%2FSemiconductor%20Capability.jmp%22%20)%3B%0A%0APLAT%20%3D%20Platform(%0A%09dt%2C%0A%09PS%20%3D%20Process%20Screening(%0A%09%09Y(%20Eval(%20Cols%20)%20)%2C%0A%09%09Grouping(%20Eval(%20GR%20)%20)%2C%0A%09%09Control%20Chart%20Type(%20%22Indiv%20and%20MR%22%20)%2C%0A%09%09Minimum%20Process%20Length(%201%20)%2C%0A%09%09Use%20Medians%20instead%20of%20Means(%201%20)%2C%0A%09%09Show%20tests(%200%20)%2C%0A%09%09Test%201(%200%20)%2C%0A%09%09Cp(%201%20)%2C%0A%09%09Spec%20Limits(%201%20)%2C%20%0A%09)%2C%20%0A)%3B%0A%0ARedo%3D%20Expr(%0A%09%09%09GR%20%3D%20%22wafer%22%3B%0A%09%09%09%0A%09%09%09NW%20%26lt%3B%26lt%3B%20Close%20Window%3B%0A%09%09%09PS%20%26lt%3B%26lt%3B%20Redo%20Analysis%3B%0A%09%09%09Make_Win()%3B%0A)%3B%0A%0AMake_Win%20%3D%20Expr(%0A%09NW%20%3D%20New%20Window(%20%22ProcessScreening%22%2C%0A%09%09Vlist_box%20%3D%20V%20List%20Box(%20%0A%09%09PLAT%2C%20%0A%09%09BB%20%3D%20Button%20Box(%20%22Redo%22%2C%20Redo%20)%2C%0A%09%09)%2C%0A%09)%2C%0A)%3B%0A%0AMake_Win()%3B%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%20%3C%2FP%3E%3CP%3EAtentamente%2C%3C%2FP%3E%3CP%3ENueva%20Jersey.%3C%2FP%3E%3CP%3E%20%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-723216%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3EAutomatizaci%C3%B3n%20y%20scripting%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EmacOS%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-723232%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20C%C3%B3mo%20actualizar%20din%C3%A1micamente%20el%20filtrado%20de%20procesos%20u%20otros%20objetos.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-723232%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EEsto%20podr%C3%ADa%20darte%20algunas%20ideas%20sobre%20lo%20que%20podr%C3%ADas%20hacer.%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3ENames%20Default%20To%20Here(1)%3B%0A%0ACols%20%3D%20%7B%22NPN1%22%2C%20%22PNP1%22%2C%20%22PNP2%22%2C%20%22NPN2%22%7D%3B%0AGR%20%3D%20%22lot_id%22%3B%0A%0Adt%20%3D%20Open(%22%24SAMPLE_DATA%2FSemiconductor%20Capability.jmp%22)%3B%0A%0Aps%20%3D%20Expr(dt%20%26lt%3B%26lt%3B%20Process%20Screening(%0A%09Y(Eval(Cols))%2C%0A%09Grouping(Eval(GR))%2C%0A%09Control%20Chart%20Type(%22Indiv%20and%20MR%22)%2C%0A%09Minimum%20Process%20Length(1)%2C%0A%09Use%20Medians%20instead%20of%20Means(1)%2C%0A%09Show%20tests(0)%2C%0A%09Test%201(0)%2C%0A%09Cp(1)%2C%0A%09Spec%20Limits(1)%0A))%3B%0A%0A%0Aredo_ps%20%3D%20Expr(%0A%09If(GR%20%3D%3D%20%22lot_id%22%2C%0A%09%09GR%20%3D%20%22wafer%22%3B%0A%09%2C%0A%09%09GR%20%3D%20%22lot_id%22%3B%0A%09)%3B%0A%09%0A%09ps_collector%20%26lt%3B%26lt%3B%20Delete%20Box()%3B%0A%09vlb%20%26lt%3B%26lt%3B%20Append(ps_collector%20%3D%20V%20List%20Box(ps))%3B%0A)%3B%0A%0Anw%20%3D%20New%20Window(%22ProcessScreening%22%2C%20%0A%09V%20List%20Box(%0A%09%09vlb%20%3D%20V%20List%20Box(%0A%09%09%09ps_collector%20%3D%20V%20List%20Box(ps)%0A%09%09)%2C%0A%09%09BB%20%3D%20Button%20Box(%22Redo%22%2C%20redo_ps)%3B%0A%09)%0A)%3B%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar

How to dynamically update process screening or other objects.

Hello again JMP community,

 

Thanks a lot for taking your time and answer my previous question. The code that I run below (JMP pro 17.2) doesn't seem to work as intended. My goal is after I press the Redo button, the Process Screening changes from grouping by "lot_id" to grouping by "wafer".

 

I guess that once I declare the PS variable it keeps all the initial settings and it is not possible to dynammically update it as I could not find any "<< " command that would update the Grouping variable. Is there a simple solution for this example:

 

Cols = {"NPN1", "PNP1", "PNP2", "NPN2"};
GR = "lot_id";
dt = Open( "$SAMPLE_DATA/Semiconductor Capability.jmp" );

PLAT = Platform(
	dt,
	PS = Process Screening(
		Y( Eval( Cols ) ),
		Grouping( Eval( GR ) ),
		Control Chart Type( "Indiv and MR" ),
		Minimum Process Length( 1 ),
		Use Medians instead of Means( 1 ),
		Show tests( 0 ),
		Test 1( 0 ),
		Cp( 1 ),
		Spec Limits( 1 ), 
	), 
);

Redo= Expr(
			GR = "wafer";
			
			NW << Close Window;
			PS << Redo Analysis;
			Make_Win();
);

Make_Win = Expr(
	NW = New Window( "ProcessScreening",
		Vlist_box = V List Box( 
		PLAT, 
		BB = Button Box( "Redo", Redo ),
		),
	),
);

Make_Win();

 

Best regards,

NJS.

 

1 ACCEPTED SOLUTION

Accepted Solutions
jthi
Super User

Re: How to dynamically update process screening or other objects.

This might give some ideas what you could do

Names Default To Here(1);

Cols = {"NPN1", "PNP1", "PNP2", "NPN2"};
GR = "lot_id";

dt = Open("$SAMPLE_DATA/Semiconductor Capability.jmp");

ps = Expr(dt << Process Screening(
	Y(Eval(Cols)),
	Grouping(Eval(GR)),
	Control Chart Type("Indiv and MR"),
	Minimum Process Length(1),
	Use Medians instead of Means(1),
	Show tests(0),
	Test 1(0),
	Cp(1),
	Spec Limits(1)
));


redo_ps = Expr(
	If(GR == "lot_id",
		GR = "wafer";
	,
		GR = "lot_id";
	);
	
	ps_collector << Delete Box();
	vlb << Append(ps_collector = V List Box(ps));
);

nw = New Window("ProcessScreening", 
	V List Box(
		vlb = V List Box(
			ps_collector = V List Box(ps)
		),
		BB = Button Box("Redo", redo_ps);
	)
);
-Jarmo

View solution in original post

1 REPLY 1
jthi
Super User

Re: How to dynamically update process screening or other objects.

This might give some ideas what you could do

Names Default To Here(1);

Cols = {"NPN1", "PNP1", "PNP2", "NPN2"};
GR = "lot_id";

dt = Open("$SAMPLE_DATA/Semiconductor Capability.jmp");

ps = Expr(dt << Process Screening(
	Y(Eval(Cols)),
	Grouping(Eval(GR)),
	Control Chart Type("Indiv and MR"),
	Minimum Process Length(1),
	Use Medians instead of Means(1),
	Show tests(0),
	Test 1(0),
	Cp(1),
	Spec Limits(1)
));


redo_ps = Expr(
	If(GR == "lot_id",
		GR = "wafer";
	,
		GR = "lot_id";
	);
	
	ps_collector << Delete Box();
	vlb << Append(ps_collector = V List Box(ps));
);

nw = New Window("ProcessScreening", 
	V List Box(
		vlb = V List Box(
			ps_collector = V List Box(ps)
		),
		BB = Button Box("Redo", redo_ps);
	)
);
-Jarmo