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
natalie_
Level V

Errors Using the Close Function

I get this error in the log when I try to close and save the data table:

 

 invalid argument in access or evaluation of 'Close' , Close/*###*/(dt, filePath || waferId || " Multivariate Correlations.txt")

 

My code works fine up until the last line (close function).  It is outputting the data from the matrix box into a data table, so I don't understand why this function isn't working.  Any ideas?

 

Thanks!

 

filePath = Pick Directory( "Where do you want to save?" );
nw = New Window( "",
	<<modal,
	V List Box(
		Text Box( "Enter Wafer ID:" ),
		Spacer Box( Size( 25, 25 ) ),
		wafername = Text Edit Box( "<Wafer ID>", <<Justify Text( Center ) ), 	
		
	), 	
	
	Spacer Box( Size( 25, 25 ) ),
	H List Box( Button Box( "OK", waferid = wafername << Get Text) )
);

table1 = Current Report();
tableName = table << Get Window Title;
If( tableName == "CP1 and CP2 Data - Multivariate", 
	
	datamatrix = table1["Correlations"][Matrix Box( 1 )];
	dt = datamatrix << make into data table;
	dt << Set Name( waferId || " Multivariate Correlations" );
	
	Close( dt, filePath || waferId || " Multivariate Correlations.csv" );
);

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
vince_faller
Super User (Alumni)

Re: Errors Using the Close Function

put save() around your filepath. 

Vince Faller - Predictum

View solution in original post

3 REPLIES 3
vince_faller
Super User (Alumni)

Re: Errors Using the Close Function

put save() around your filepath. 

Vince Faller - Predictum
natalie_
Level V

Re: Errors Using the Close Function

Thank you so much!  Sorry to bother you with such a simple typo 

vince_faller
Super User (Alumni)

Re: Errors Using the Close Function

No worries, happens to me all the time.
Vince Faller - Predictum

Recommended Articles