cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Don’t miss your chance to experience Discovery Summit Europe at our best available rate! Early bird registration through 31 Oct.
  • Image to Table JMP extension imports single or batch images as data tables. Useful to extract curves from pictures or convert image data to curve data to use in analyses like Functional Data Explorer. Download and install the extension.

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