cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
The Discovery Summit 2025 Call for Content is open! Submit an abstract today to present at our premier analytics conference.
%3CLINGO-SUB%20id%3D%22lingo-sub-636890%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%20How%20to%20remove%20process%20capability%20output%20from%20control%20chart%20output%20within%20a%20script%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-636890%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EYep%2C%20you%20could%20do%20this%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3ENames%20Default%20To%20Here(%201%20)%3B%0A%0A%2F%2FAdd%20a%20spec%20limit%20to%20some%20sample%20data%3A%0Adt%20%3D%20Open(%20%22%24Sample_data%2FQuality%20Control%2FCoating.jmp%22%20)%3B%0Adt%3AWeight%20%26lt%3B%26lt%3B%20Set%20Property(%0A%20%22Spec%20Limits%22%2C%0A%20%7BLSL(%2018%20)%2C%20USL(%2023%20)%2C%20Show%20Limits(%200%20)%7D%0A)%3B%0A%0A%2F%2FOpen%20the%20control%20chart%20builder%20-%20the%20process%20capability%20will%20be%20opened%0Accb%20%3D%20dt%20%26lt%3B%26lt%3B%20Control%20Chart%20Builder(%0A%20Variables(%20Subgroup(%20%3ASample%20)%2C%20Y(%20%3AWeight%20)%20)%2C%0A%20Chart(%20Position(%201%20)%20)%2C%0A%20Show%20Control%20Panel(%200%20)%0A)%3B%0A%0A%2F%2FFind%20all%20process%20capability%20outline%20boxes%20and%20close%20them%0A(ccb%20%26lt%3B%26lt%3B%20XPath(%22%2F%2FOutlineBox%5B%40helpKey%3D'Capability%20Analysis'%5D%22))%20%26lt%3B%26lt%3B%20Close(1)%0A%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-636891%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%20How%20to%20remove%20process%20capability%20output%20from%20control%20chart%20output%20within%20a%20script%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-636891%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EYou%20can%20use%20Show%20Capability%20(0)%20as%20part%20of%20your%20script%20to%20keep%20the%20capability%20analysis%20from%20showing%20up.%20Pseudo-example%20below%3A%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3Eccb%20%3D%20Control%20Chart%20Builder(%0A%20Variables(%20Y(%20%3AColumnName%20)%20)%2C%0A%20Chart(%20Position(%201%20)%20)%2C%0A%20Show%20Control%20Panel(%200%20)%2C%0A%20show%20capability(%200%20)%20%2F%2F%26lt%3B--this%0A)%3B%0A%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-636896%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%20How%20to%20remove%20process%20capability%20output%20from%20control%20chart%20output%20within%20a%20script%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-636896%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3ECool!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-636837%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EHow%20to%20remove%20process%20capability%20output%20from%20control%20chart%20output%20within%20a%20script%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-636837%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EI%20am%20writing%20a%20script%20to%20make%20custom%20control%20charts%20for%20various%20variables%20in%20a%20data%20set.%20However%20since%20the%20columns%20have%20limits%2C%20the%20process%20capability%20analysis%20is%20automatically%20produced%20in%20the%20output.%20is%20there%20any%20code%20I%20can%20add%20to%20my%20script%20to%20remove%20the%20process%20capability%20analysis%20automatically%20(opposed%20to%20minimizing%20it%20manually%20after%20the%20report%20is%20created)%3F%20Jmp%2017%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-636837%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CLINGO-LABEL%3EAutomation%20and%20Scripting%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EQuality%20and%20Process%20Engineering%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
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