cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Have your say in shaping JMP's future by participating in the new JMP Wish List Prioritization Survey
Choose Language Hide Translation Bar
smw1985
Level I

Retrieving limits when running chart script

Is there a way to script the retrieval of limits from a separate table each time the chart script is run? IR chart creation allows "get limits" functionality but the limits are saved into the script and will not retrieve revised limits from the same source table during subsequent chart retrieval. 

JMP 17

Existing code 

:"NAME, %"n,
Individual Measurement( Avg( 0.013 ), LCL( -0.039 ), UCL( 0.066 ) ). 

1 ACCEPTED SOLUTION

Accepted Solutions
txnelson
Super User

Re: Retrieving limits when running chart script

The below example from the Scripting Index illustrates the syntax to use to read in the limits each time the Control Chart is run.  If the limits change in the limits table between runs, the control limits when change in the new chart.

Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Quality Control/Coating.jmp" );
obj = dt << Control Chart(
	Sample Size( :Sample ),
	Chart Col( :Weight, XBar, R ),
	Get Limits( "$SAMPLE_DATA/Quality Control/CoatingLimits.jmp" )
);
Jim

View solution in original post

1 REPLY 1
txnelson
Super User

Re: Retrieving limits when running chart script

The below example from the Scripting Index illustrates the syntax to use to read in the limits each time the Control Chart is run.  If the limits change in the limits table between runs, the control limits when change in the new chart.

Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Quality Control/Coating.jmp" );
obj = dt << Control Chart(
	Sample Size( :Sample ),
	Chart Col( :Weight, XBar, R ),
	Get Limits( "$SAMPLE_DATA/Quality Control/CoatingLimits.jmp" )
);
Jim