03-03-2017 04:40 PM
Hello all. I am having trouble with my vi. I am using the Read from Spreadsheet VI, and when i use the file box on the front panel to select the file I wish to read, I get a return of error 7, file not found. This is confusing because the file does exist, and is saved on my desktop. how can I fix this issue? I am saving the file as a tab deliminated text file.
Here are some images of the VI.
03-03-2017 04:50 PM
Could you check the file permissions? It's probably a Windows issue, not Labview.
03-03-2017 04:56 PM
This is what I have in the permissions properties.
03-03-2017 05:18 PM
How did you enter the filename in the control? Did you type it in? Are you sure you didn't mistype it, perhaps an extra space or something somewhere? Try using the browse button.
Are you sure you don't have the file open somewhere else?
03-03-2017 06:09 PM
I used the browse button to open the file. And it is not open.
Still getting same error.
03-03-2017 07:03 PM
Pictures of Error Messages are nowhere near as helpful (to us, trying to help you) as the LabVIEW code (no pictures, please, only files ending in ".vi"). With the code, we can examine it, test it, maybe even fix it ...
Bob Schor
03-03-2017 07:12 PM
Throttle.txt is the input
Data.txt is the write file
03-03-2017 07:30 PM
Where are you running this VI?
You say you have the files on your desktop.
But those two path controls point to ni-rt:\ ....... and files of different names than what you attached.
Those paths are NOT your desktop.
03-03-2017 07:33 PM
Yes. The attached VI does not have the files i want in the boxes. The files in the boxes no longer exist and were left over from a previous working group on the project.
The files I want are attached, are saved on my desktop, and i select them with the brows button in the front panel.
03-03-2017 07:48 PM - edited 03-03-2017 07:49 PM
When I clear out your VI because I don't have all of your FPGA file, and clear out your loops and queues, I'm left with just the file paths and Spreadsheet file functions. I put your files on my desktop and pointed the file path controls to them. It runs just fine for me.
One thing that concerns me is that you have what looks like a state machine in the one loop, but you are relying on some local variables to determine what the next state is. Something just doesn't seem right about that.
But the file paths and the read/write functions work just fine for me when I strip out all the code that gets in the way of me running it.
I suggest you do the same. Strip away almost all code just leaving you with the basics that are causing the problem. See if that works for you and troubleshoot that if it doesn't.