LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

error 1059

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

Abhilash S Nair

Research Assistant @ Photonic Devices and Systems lab

[ LabView professional Development System - Version 11.0 - 32-bit ]

LabView Gear:
1. NI PXI-7951R & NI 5761
2. The Imaging Source USB 3.0 monochrome camera with trigger : DMK 23UM021

OPERATING SYSTEM - [ MS windows 7 Home Premium 64-bit SP-1 ]
CPU - [Intel Core i7-2600 CPU @ 3.40Ghz ]
MEMORY - [ 16.0 GB RAM ]
GPU - [ NVIDIA GeForce GT 530 ]
0 Kudos
Message 1 of 8
(15,310 Views)

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.

Message 2 of 8
(15,307 Views)

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

Abhilash S Nair

Research Assistant @ Photonic Devices and Systems lab

[ LabView professional Development System - Version 11.0 - 32-bit ]

LabView Gear:
1. NI PXI-7951R & NI 5761
2. The Imaging Source USB 3.0 monochrome camera with trigger : DMK 23UM021

OPERATING SYSTEM - [ MS windows 7 Home Premium 64-bit SP-1 ]
CPU - [Intel Core i7-2600 CPU @ 3.40Ghz ]
MEMORY - [ 16.0 GB RAM ]
GPU - [ NVIDIA GeForce GT 530 ]
0 Kudos
Message 3 of 8
(15,305 Views)

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

0 Kudos
Message 4 of 8
(15,298 Views)

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.

0 Kudos
Message 5 of 8
(15,292 Views)

you h to connect the path to a build path and in the build path write your filename.txt

0 Kudos
Message 6 of 8
(13,593 Views)

I just uploaded a picture with the code.

0 Kudos
Message 7 of 8
(13,586 Views)

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.

~ Self-professed LabVIEW wizard ~
Helping pave the path to long-term living and thriving in space.
0 Kudos
Message 8 of 8
(406 Views)