LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error 7 occurred at Open File+.vi:Open File

I have labview vi files (main vi and several subvi) with Labview 7.0 runs ok in my previous computer, I use it to get the data from data logger. But when I copy all of these files to my another computer, and click 'run', it always shows this error message:
"Error7 occurred at Open File+.vi: Open file
LabVIEW: File not found etc...
Labview error.JPG

I search in our forum, and find someone had similar problem before, http://forums.ni.com/ni/board/message?board.id=170&thread.id=95366. looks like the problem is that I need to change the path or something else if I just copy files from one computer to another

but I am such a rookie that cannot understand the problem and how to solve it.


I look forward t o hear back from you very soon as I need this running to get data.

Hanfei Tuo

Block diagram.JPG

0 Kudos
Message 1 of 11
(17,894 Views)

According to your screenshots the "File Path" on the front panel is empty. Specify the file you want to write to before running the VI.

 

Message Edited by dan_u on 03-12-2010 11:20 PM
0 Kudos
Message 2 of 11
(17,892 Views)

Thanks,

 but I have already specified the file to write to, error still shows.

0 Kudos
Message 3 of 11
(17,882 Views)

But I still think that you wire an invalid path to the file open VI. At the file open where the error occurs, check the file path and see if it is valid on your system.

There's different options for the file open VI. If it is set to explicitely open a file (but not create) then the file must exist or it will return error 7.

 

0 Kudos
Message 4 of 11
(17,875 Views)

 

it uses 'write lvm vi' to write the data files, and I have specified the path and file names to write.  I look through these vi files, it doesnot use file open vi.

I am not sure I undertand what you said correctly. I really appreciate for your help.

 

Hanfei

 

 

 

 

write lvm.JPG

0 Kudos
Message 5 of 11
(17,870 Views)
I have never touched that Express VI but I'll wager that if you wire a control to the File Path it ignores what you put in the configuration box.  dan_u was correct earlier.
Message Edited by Darin.K on 03-12-2010 04:04 PM
0 Kudos
Message 6 of 11
(17,863 Views)

Thanks Darin,

 

This Express VI uses the functionality of the 'open file vi', I do nothing change on these vi files, just copy their folder from previous lab pc to new one.

 

I find an old post which showed similar problem, the poster solved the problem finally, he said

 

"the data file I was reading from a dialogue box was no ported with the execuctable. That is why, when I test run it on a different PC, the OpenFile+ issued and error because it could not open the file defined in the path, since it did not exist.

The message error was built form a cluster of boolen, error# and string. The message component is form a string constant which said "OpenFile+.vi: File Dialog" and error # set to 7. It followed that an error message, interpreted from the Error code #7 always mention OpenFile+."

 

due to language and tech issues, I cannot understand, maybe it means sth in your mind. THanks

0 Kudos
Message 7 of 11
(17,852 Views)

Is the path you show in the configuration box valid on your new computer or is it the same value you used on the old one?  Is the drive letter different?

 

Is that Express VI the one that is flashed when the error occurs?

 

Does removing the file path control help?

0 Kudos
Message 8 of 11
(17,841 Views)

Can I offer some tips on the VI's that are displayed?

 

Do a diagram cleanup.  Wires are running every which way and backwards.

Why the Array to cluster to unbundle cluster?  Just use index array.

In another image, index array is used.  Great.  But no need to wire all the constants from 0 to 12 as indices.  Delete them all and the index array will work the same.

Replace the stacked sequence with a flat sequence.

0 Kudos
Message 9 of 11
(17,833 Views)

thanks for your advise, I will do it later when I learn more, since I am a beginner on labview and this file was made by  former student in our group.  Now I need to use it run experiment and get the data as soon as possible.  

 

Could you have a look at my another problem in a new thread?  error 1073807246 just after I connect datalogger with computer.

 

Thanks very much

0 Kudos
Message 10 of 11
(17,813 Views)