 abikutn
		
			abikutn
		
		
		
		
		
		
		
		
	
			04-10-2012 06:04 PM
Hello ,
What does the following error mean:
Error 1059 occurred at Open/Create/Replace File in Write Spreadsheet String.vi->Write To Spreadsheet File (DBL).vi->MAIN 4-9-12 dev 7.vi
Possible reason(s):
LabVIEW:  Unexpected file type.
C:\Users\Raman\Desktop\DAQ TEST DATA
The VI is attached below
Thank you
Abhi
 RavensFan
		
			RavensFan
		
		
		 
		
		
		
		
		
	
			04-10-2012 06:53 PM
It looks like you specified a path to a subdirectory called DAQ TEST DATA rather than to a file. The unexpected file type is that it is a folder rather than a file.
Add another backslash and a file name to your path constant.
04-10-2012 06:59 PM
Thanks for the reply ...
oh does that mean it will only write to a file that was already created ?
What If I want to create a new file everytime i run the program so that it asks me to save it in the folder with a new file name ( save as ) option like how it is in windows ?
Thank you 
 Hornless.Rhino
		
			Hornless.Rhino
		
		
		
		
		
		
		
		
	
			04-10-2012 09:40 PM
abikutn wrote:
Thanks for the reply ...
What If I want to create a new file everytime i run the program so that it asks me to save it in the folder with a new file name ( save as ) option like how it is in windows ?
Have a look at the "File Dialog" function.
File I/O -> Advanced File Functions -> File Dialog
 RavensFan
		
			RavensFan
		
		
		 
		
		
		
		
		
	
			04-10-2012 11:08 PM
You can pick any filename you want, it doesn't have to exist. But there does have to be a filename and not just a path to a folder.
 Nando88
		
			Nando88
		
		
		
		
		
		
		
		
	
			03-02-2015 01:08 PM
you h to connect the path to a build path and in the build path write your filename.txt
 Nando88
		
			Nando88
		
		
		
		
		
		
		
		
	
			03-02-2015 01:14 PM
I just uploaded a picture with the code.
 IlluminatedG
		
			IlluminatedG
		
		
		 
		
		
		
		
		
	
			08-16-2024 10:07 AM
Since this is the first result on google I'll throw my situation in here:
Was getting error 1059 during a source distribution build on a method VI of a class which was perfectly fine. However the class was in the same hierarchy as another class that had a different VI that was set to the wrong reentrancy as other dynamic dispatch VIs. Fixed the reentracy in the other class and the source distribution completed successfully.