Firstly setting the spec limits for the file dt7 from the file dt8
dt7 = Open( path || "29C.jmp" );
dt8 = Open( path || "29C_Test_Limits.jmp" );
Current Data Table( dt8 );
For Each Row(
Try(
Eval(
Substitute(
Expr(
Column( dt7, :Test ) << set property(
"Spec Limits",
{LSL( l ), USL( u )}
)
),
Expr( l ), :Limit Min,
Expr( u ), :Limit Max
)
)
);
);
Once the specs are assigned I would like to plot the capability analysis for the columns that are continuous and have spec limits.
There are about 300 (Tests that are done and I do not want to manually select the columns)
ColName1 = dt7 << GetColumnNames( numeric, continuous );
repWin = New Window( "Capability", container = V List Box() );
N = N Items( ColName1 );
For(k = 1, k <= N, k++,
Q = dt7<<ColName1 << Get Property( "Spec limits" );
usl = Q["USL"];
lsl = Q["LSL"];
If(lsl == Empty(),k++,
content = V List Box(
dt7<<Process Capability(
Process Variables({ColName1}),
Individual Detail Reports( 1 ),
Capability Box Plots( 1 ),
Goal Plot(1),
Goal Plot( 0, Show Within Sigma Points( 1 ), Show Overall Sigma Points( 0 ) ),
{ColName1 << Process Capability Analysis(
Overall Sigma Capability( 0 ),
Nonconformance( 0 ),
Histogram( 0 ))}
)
);
container << Append( content );
)
);