03-12-2010 04:08 PM
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...
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
03-12-2010 04:18 PM - edited 03-12-2010 04:20 PM
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.
03-12-2010 05:05 PM
Thanks,
but I have already specified the file to write to, error still shows.
03-12-2010 05:27 PM
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.
03-12-2010 05:58 PM
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
03-12-2010 06:03 PM - edited 03-12-2010 06:04 PM
03-12-2010 06:19 PM
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
03-12-2010 06:48 PM
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?
03-12-2010 08:46 PM
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.
03-13-2010 01:49 AM
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