cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Register for our Discovery Summit 2024 conference, Oct. 21-24, where you’ll learn, connect, and be inspired.
Choose Language Hide Translation Bar
BrianK
Level I

CuSum chart name

Hi there,

 

Can someone tell me how to change a CuSum chart name in JSL ?  in the below JSL example 

 

 

Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Quality Control/Oil1 Cusum.jmp" );
obj = dt << Control Chart(
	Sample Size( :hour ),
	H( 2 ),
	Chart Col(
		:weight,
		CUSUM( Two sided( 1 ), Target( 8.1 ), Delta( 1 ), Sigma( 0.05 ), Head Start( 0.05 ) )
	),
	Chart Type( CUSUM ),
);

 

The chart name defaults to Oil1 Cusum - Control Chart, as per screen shot below.  I would like to be able to change this in JSL, without having to do a "file, save as" and losing time writing the file to a drive. 

 

Screenshot 2024-09-19 112634.png

I've tried  obj << set name ("test") ; and obj << set control chart name ("test"); to no avail. Any ideas?

 

Thanks 

1 ACCEPTED SOLUTION

Accepted Solutions
jthi
Super User

Re: CuSum chart name

You are trying to change the name of the window, so you can use << Set Window Title

Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Quality Control/Oil1 Cusum.jmp");

obj = dt << Control Chart(
	Sample Size(:hour),
	H(2),
	Chart Col(
		:weight,
		CUSUM(Two sided(1), Target(8.1), Delta(1), Sigma(0.05), Head Start(0.05))
	),
	Chart Type(CUSUM)
);

obj << Set Window Title("TEST");
-Jarmo

View solution in original post

2 REPLIES 2
jthi
Super User

Re: CuSum chart name

You are trying to change the name of the window, so you can use << Set Window Title

Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Quality Control/Oil1 Cusum.jmp");

obj = dt << Control Chart(
	Sample Size(:hour),
	H(2),
	Chart Col(
		:weight,
		CUSUM(Two sided(1), Target(8.1), Delta(1), Sigma(0.05), Head Start(0.05))
	),
	Chart Type(CUSUM)
);

obj << Set Window Title("TEST");
-Jarmo
BrianK
Level I

Re: CuSum chart name

worked perfectly, thank you