cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Don’t miss your chance to experience Discovery Summit Europe at our best available rate! Early bird registration through 31 Oct.
  • Image to Table JMP extension imports single or batch images as data tables. Useful to extract curves from pictures or convert image data to curve data to use in analyses like Functional Data Explorer. Download and install the extension.

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