Choose Language Hide Translation Bar
Highlighted
Ilan
Level I

If statement in variability chart

Hi all 

 

Want to use if statement in variblity chart scirpt.

If paramer is define as leakage want to have variblity chart with log scale and graph min\max as well. 

This is the code i am using. 

 

 

variability Chart(
	Y( :VALUE ),
	X( :DATE_LOT, :WAFER ),
	Max Iter( 100 ),
	Conv Limit( 0.00000001 ),
	Number Integration Abscissas( 128 ),
	Number Function Evals( 65536 ),
	Analysis Type( Name( "Choose best analysis (EMS REML Bayesian)" ) ),
	Process Variation( 0 ),
	Std Dev Chart( 0 ),
	Points Jittered( 1 ),
	Automatic Recalc( 1 ), 

	By( :BIN_NAME, :SPEC_LOW, :SPEC_HIGH ), 

	Dispatch(
		{"Variability Chart for VALUE"},
		"2",
		ScaleBox,
		{If( :LKG != "LKG",
			Scale( "Linear" ),
			Scale( "Log" )
		), If(
			:LKG != "LKG";
			Min( :SPEC_LOW - 0.05 * (:SPEC_HIGH - :SPEC_LOW) );
			Min( 1e-12 );
		), Max( :SPEC_HIGH + 0.05 * (:SPEC_HIGH - :SPEC_LOW) ), Add Ref Line( :SPEC_LOW, Solid, "Dark Fuchsia", "LSL" ),
		Add Ref Line( :SPEC_HIGH, Solid, "Dark Fuchsia", "USL" )}
	)
)

 

1 REPLY 1
Highlighted
David_Burnham
Super User

Re: If statement in variability chart

You should think about re-writing the code so that you create the chart, then conditionally add the reference line (i.e. you have the jsl conditional logical outside of the call to the variability chart platform.  For an example of rhow to re-write the code see the response from @markbailey here:

https://community.jmp.com/t5/Discussions/how-to-update-value-of-line-in-bivariate/m-p/218115/highlig...

-Dave
Article Labels

    There are no labels assigned to this post.