Subscribe Bookmark RSS Feed

Variable Process Column in Control Chart

satish

Community Trekker

Joined:

May 29, 2012

Hello all, I am trying to plot Control charts for each of my columns in data table using JSL. So since my process name is variable I am trying to pass each column name using a loop but all my approaches failed. Please advise how I can do this. Appreciate your help. Thanks, Satish

In the below code my idea is to put the column name in the paramid and pass it on to Chart Col in a loop for each column...I didn't include the For loop here.

____

dtcc = Data Table( "myDATA" );

paramid = ":" || "Final ph";

Show( paramid );

cc = dtcc << Control Chart(

  Sample Label( :Batch ),

  Group Size( 1 ),

  KSigma( 3 ),

  Chart Col( paramid, Individual Measurement, Moving Range )

);

1 ACCEPTED SOLUTION

Accepted Solutions
Solution

OK. Figured this one...for anyone else looking below solves the above question.

dtcc = Data Table( "myDATA" );

paramid = "Final ph";

Show( paramid );

cc = dtcc << Control Chart(

  Sample Label( :Batch ),

  Group Size( 1 ),

  KSigma( 3 ),

  Chart Col( column(paramid), Individual Measurement, Moving Range )

);

1 REPLY
Solution

OK. Figured this one...for anyone else looking below solves the above question.

dtcc = Data Table( "myDATA" );

paramid = "Final ph";

Show( paramid );

cc = dtcc << Control Chart(

  Sample Label( :Batch ),

  Group Size( 1 ),

  KSigma( 3 ),

  Chart Col( column(paramid), Individual Measurement, Moving Range )

);