LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

jpeg file not found

I am using the read JPEG file.vi to read a picture, but, the error: file not found, keeps popping up. I made sure the file path was correct and that the picture was in the right directory, but nothing works. Can someone help me with this?
0 Kudos
Message 1 of 5
(2,800 Views)
Obviously, something is wrong with your path constant.

Does it work if you disconnect the path input, then manually browse for the file at the dialog.

Try this: If the path is a diagram constant, right-click and "browse for path" instead of manually typing it. If this is a control, show the browse button and navigate to the file.

What is your OS?
Message 2 of 5
(2,800 Views)
If I do not have a path, therefore the VI pops up a browser to manually browse for the picture, then it works. But, shouldn't it still work whether the path is constant or if I'm required to type it in on the front panel? As far as the path goes, I look up the properties of the picture and copy and paste its path location, in order to not miss-print the path. I am using Windows XP.
0 Kudos
Message 3 of 5
(2,800 Views)
If you copy the location from the explorer properties, you won't get the file name, just the location. Don't forget to add the file name at the end.

Suggestion: Why don't you remove the path input again, but temporarily create an indicator at the path out. Run it again and browse to the path to make sure it works. Now right-click on the temporary indicator terminal and select "change to constant". Now wire this to the path input and it definitely should work.

Compare it charater by character with your own path constant to see where the problem is.
0 Kudos
Message 4 of 5
(2,800 Views)
Thanks, it worked perfectly, I found that I kept forgetting the .jpg extension. I'll be more carefull next time. Thanks for you help.
0 Kudos
Message 5 of 5
(2,800 Views)