cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
The Discovery Summit 2025 Call for Content is open! Submit an abstract today to present at our premier analytics conference.
See how to use to use Text Explorer to glean valuable information from text data at April 25 webinar.
Choose Language Hide Translation Bar
View Original Published Thread

How to use Range Check () with Set Property()?

Neo
Neo
Level VI

In JSL, the following works  (in JMP 16.2)

Column( dt, myCol ) << set property("Spec Limits", {LSL( myLSL), USL(myUSL)});

However, I am trying to also use Range Check within set property following the scripting guide (for JMP 16)

Neo_0-1701361846440.png

Column( dt, myCol ) << set property("Spec Limits", {LSL( myLSL), USL( myUSL )}, "Range Check", LTLT (myLSL2, myUSL2) ));

where myLSL/myUSL & myLSL2/myUSL2 are supplied from above. This is not working (in JMP 16.2). Where am I going wrong?

 

My idea is to plot data points which are in the vicinity of the spec limits by supressing/ignoring outliers  inspired by @txnelson.

When it's too good to be true, it's neither
1 ACCEPTED SOLUTION

Accepted Solutions
mmarchandTSI
Level V


Re: How to use Range Check () with Set Property()?

Your script almost works.  You'd just need to split in into two messages, because <<Set Property only handles one property at a time.  Your syntax and @hogi's syntax for adding a Range Check are both correct.

 

Names Default to Here( 1 );
dt = Open("$SAMPLE_DATA/Big Class.jmp");
lsl1 = 13;
usl1 = 110;
lsl2 = 5;
usl2 = 117;
:weight << Set Property( "Spec Limit", {LSL( lsl1 ), USL( usl1 )} ) << Set Property( "Range Check", LTLT( lsl2, usl2 ) );

 

View solution in original post

2 REPLIES 2
hogi
Level XII


Re: How to use Range Check () with Set Property()?

The syntax for Range check is slightly different:

:height << set property("Spec Limits", {LSL( 10), USL( 20 )} ) << Range Check( LELE( 0, 100 ) );

 

The huge benefit of JSL compared to any other scripting language: there is the enhanced log
-> just use the GUI and let Jmp tell you the right syntax

 

so, no need to even Google for it ...

mmarchandTSI
Level V


Re: How to use Range Check () with Set Property()?

Your script almost works.  You'd just need to split in into two messages, because <<Set Property only handles one property at a time.  Your syntax and @hogi's syntax for adding a Range Check are both correct.

 

Names Default to Here( 1 );
dt = Open("$SAMPLE_DATA/Big Class.jmp");
lsl1 = 13;
usl1 = 110;
lsl2 = 5;
usl2 = 117;
:weight << Set Property( "Spec Limit", {LSL( lsl1 ), USL( usl1 )} ) << Set Property( "Range Check", LTLT( lsl2, usl2 ) );