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
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)
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
);
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)
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
);
Cool!