cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • New to JMP? Join us Sept. 23-24 for the Early User Edition of Discovery Summit, tailor-made for new users. Register now for free!
  • Use World Cup data to build models, explore spatial relationships, and create informative visualizations in JMP. Register. July 17, 2 pm US Eastern Time.
  • Your voice matters! Tell us how you prefer to receive JMP updates, so we can tailor our communication to your needs. Take short survey.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar

Using JSL Script to Get Spec Limits from Column

I am using JMP 18.1.0. I am trying to find if there is a way I can get the "Spec Limit" property of a column, and then be able to manipulate the LSL or USL as a number. Below is some example code and the resulting Log messages. The LSL and USL outputs from Get Property don't seem to be in a usable state. The commented out line is what I would like to do, math functions or comparison with the LSL/USL to any other number.

 

 

//Example Code
dt = Current Data Table();
y = :"Test Column"n << Get Property("Spec Limits");
Show(:"Test Column"n[1]);
Show(y);
Show(y[2]);
//Show(:"Test Column"n[1] - y[2])

Log Output Messages:

 

  • :Test Column[1] = 0.5;
  • y = {LSL(0), USL(1), Show Limits(1)};
  • y[2] = USL(1);

Is there any way to get the LSL and USL from the Spec Limits property as a number?

1 ACCEPTED SOLUTION

Accepted Solutions
txnelson
Super User

Re: Using JSL Script to Get Spec Limits from Column

Here is a simple example of extracting the LSL from a column property and assigning it to a memory variable

Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/semiconductor capability.jmp" );

specs = dt:npn1 << get property( "spec Limits" );

LSL = specs["LSL"];
Jim

View solution in original post

1 REPLY 1
txnelson
Super User

Re: Using JSL Script to Get Spec Limits from Column

Here is a simple example of extracting the LSL from a column property and assigning it to a memory variable

Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/semiconductor capability.jmp" );

specs = dt:npn1 << get property( "spec Limits" );

LSL = specs["LSL"];
Jim

Recommended Articles