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 7
(14,574 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.

0 Kudos
Message 2 of 7
(14,571 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 7
(14,569 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 7
(14,562 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 7
(14,556 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 7
(12,857 Views)

I just uploaded a picture with the code.

0 Kudos
Message 7 of 7
(12,850 Views)