cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Instantly extract effect sizes, F-ratios, and FDR-adjusted p-values from your models with the Calculate Effects Sizes extension, available now in the JMP Marketplace!
  • New to JMP? Join us Sept. 23-24 for the Early User Edition of Discovery Summit, tailor-made for new users. Register now for free!
  • Your voice matters! Tell us how you prefer to receive JMP updates, so we can tailor our communication to your needs. Take short survey.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
Abby_Collins14
Level III

How to remove process capability output from control chart output within a script?

I am writing a script to make custom control charts for various variables in a data set. However since the columns have limits, the process capability analysis is automatically produced in the output. is there any code I can add to my script to remove the process capability analysis automatically (opposed to minimizing it manually after the report is created)? Jmp 17

3 ACCEPTED SOLUTIONS

Accepted Solutions
ih
Super User (Alumni) ih
Super User (Alumni)

Re: How to remove process capability output from control chart output within a script?

Yep, you could do this:

 

Names Default To Here( 1 );

//Add a spec limit to some sample data:
dt = Open( "$Sample_data/Quality Control/Coating.jmp" );
dt:Weight << Set Property(
	"Spec Limits",
	{LSL( 18 ), USL( 23 ), Show Limits( 0 )}
);

//Open the control chart builder - the process capability will be opened
ccb = dt << Control Chart Builder(
	Variables( Subgroup( :Sample ), Y( :Weight ) ),
	Chart( Position( 1 ) ),
	Show Control Panel( 0 )
);

//Find all process capability outline boxes and close them
(ccb << XPath("//OutlineBox[@helpKey='Capability Analysis']")) << Close(1)

View solution in original post

Re: How to remove process capability output from control chart output within a script?

You can use Show Capability (0) as part of your script to keep the capability analysis from showing up. Pseudo-example below:

ccb = Control Chart Builder(
	Variables( Y( :ColumnName ) ),
	Chart( Position( 1 ) ),
	Show Control Panel( 0 ),
	show capability( 0 ) //<--this
);

View solution in original post

ih
Super User (Alumni) ih
Super User (Alumni)

Re: How to remove process capability output from control chart output within a script?

3 REPLIES 3
ih
Super User (Alumni) ih
Super User (Alumni)

Re: How to remove process capability output from control chart output within a script?

Yep, you could do this:

 

Names Default To Here( 1 );

//Add a spec limit to some sample data:
dt = Open( "$Sample_data/Quality Control/Coating.jmp" );
dt:Weight << Set Property(
	"Spec Limits",
	{LSL( 18 ), USL( 23 ), Show Limits( 0 )}
);

//Open the control chart builder - the process capability will be opened
ccb = dt << Control Chart Builder(
	Variables( Subgroup( :Sample ), Y( :Weight ) ),
	Chart( Position( 1 ) ),
	Show Control Panel( 0 )
);

//Find all process capability outline boxes and close them
(ccb << XPath("//OutlineBox[@helpKey='Capability Analysis']")) << Close(1)

Re: How to remove process capability output from control chart output within a script?

You can use Show Capability (0) as part of your script to keep the capability analysis from showing up. Pseudo-example below:

ccb = Control Chart Builder(
	Variables( Y( :ColumnName ) ),
	Chart( Position( 1 ) ),
	Show Control Panel( 0 ),
	show capability( 0 ) //<--this
);
ih
Super User (Alumni) ih
Super User (Alumni)

Re: How to remove process capability output from control chart output within a script?

Cool!

Recommended Articles