Subscribe Bookmark RSS Feed

Is there a way to hide the table produced by "<< Save Spectral Density"?

dburford

Community Trekker

Joined:

Jun 30, 2015

Is there a way to hide (e.g. make invisible and/or private) the periodogram data table that is created by the following example jsl script command?

dt << Time Series( X( :Name( "Time (s)" ) ), Y( :Name( "Response" ) ), "Save Spectral Density" , "Invisible" );

The "Invisible" option in the above command apparently does not apply to the "Save Spectral Density" option.

I’d like to create the table and use it just long enough to get some data from it for creating a summary, but I would like to not have it show while it is being accessed by the next step in the script.  (Since this is part of a loop operation, after debugging the script, I would actually like to run the script with the table in the “private” mode to minimize computing and graphics overhead.)

If there is not a direct way, is there a workaround path that could be used instead of a direct assignment?

Thanks,

DAB

1 ACCEPTED SOLUTION

Accepted Solutions
Solution

dt << Time Series( X( :Name( "Time (s)" ) ), Y( :Name( "Response" ) ), "Save Spectral Density" , "Invisible" );


In your example above the "Invisible" is associated with the Time Series platform, not the data table that results from your "Save Spectral Density".

Unfortunately, there's no option on "Save Spectral Density" to create it invisibly. Instead you'll have to hide it immediately after it's created.

Here's an example for JMP 12:


dt = Open( "$SAMPLE_DATA/Time Series/Steel Shipments.jmp" );


ts = Time Series( Y( :steel shipments ) );



dtSpec=ts << Save Spectral Density();


dtSpec << Show Window( 0 );


The Save Spectral Density message in JMP 12 will return a reference to the data table that's created. Earlier versions of JMP don't do that so you'll have get that reference yourself.

So, here's an example that works in JMP 11:


dt = Open( "$SAMPLE_DATA/Time Series/Steel Shipments.jmp" );


ts = Time Series( Y( :steel shipments ) );



ts << Save Spectral Density();


dtSpec = Data Table( 1 );


Wait( 0 );


dtSpec << Show Window( 0 );


h/t to WK for the examples.

-Jeff
7 REPLIES
vs90

Community Trekker

Joined:

Jun 16, 2015

Have you tried this??

It worked for me but not exactly for "Save Spectral Density" .

dt << Time Series( X( :Name( "Time (s)" ) ), Y( :Name( "Response" ) ), "Save Spectral Density"  )<< Show Window(0);

dburford

Community Trekker

Joined:

Jun 30, 2015

Just tried it, but the data tables are still visible. Thanks.

vs90

Community Trekker

Joined:

Jun 16, 2015

Sorry for filling your post as  I should have written this earlier as well... can try this as well

dt << Time Series( X( :Name( "Time (s)" ) ), Y( :Name( "Response" ) ), "Save Spectral Density" , Invisible(1) );

dburford

Community Trekker

Joined:

Jun 30, 2015

Still no joy. Will send what I just received from tech support a few minutes ago. Thanks for the help.

DAD

vs90

Community Trekker

Joined:

Jun 16, 2015

Sure, No problem at all. Do remember not to quote "invisible" keyword except opening a new data table which has been already created.

Solution

dt << Time Series( X( :Name( "Time (s)" ) ), Y( :Name( "Response" ) ), "Save Spectral Density" , "Invisible" );


In your example above the "Invisible" is associated with the Time Series platform, not the data table that results from your "Save Spectral Density".

Unfortunately, there's no option on "Save Spectral Density" to create it invisibly. Instead you'll have to hide it immediately after it's created.

Here's an example for JMP 12:


dt = Open( "$SAMPLE_DATA/Time Series/Steel Shipments.jmp" );


ts = Time Series( Y( :steel shipments ) );



dtSpec=ts << Save Spectral Density();


dtSpec << Show Window( 0 );


The Save Spectral Density message in JMP 12 will return a reference to the data table that's created. Earlier versions of JMP don't do that so you'll have get that reference yourself.

So, here's an example that works in JMP 11:


dt = Open( "$SAMPLE_DATA/Time Series/Steel Shipments.jmp" );


ts = Time Series( Y( :steel shipments ) );



ts << Save Spectral Density();


dtSpec = Data Table( 1 );


Wait( 0 );


dtSpec << Show Window( 0 );


h/t to WK for the examples.

-Jeff
dburford

Community Trekker

Joined:

Jun 30, 2015

Thank you, Jeff.  Wendy in your tech staff also forwarded me this solution and its working well.

DAB