crichter Posted January 29, 2011 Report Share Posted January 29, 2011 I am seeking to open a jpeg file into labview 7.0. If I do not wire a file path, a dialog box appears for me to specify a file to read from. This works just as the user manual says it should. However if I wire my path to the VI Desktop/My Documents/My Pictures/Mars1 ,this message pops up; "error 1 occurred at File/Directory Info in Check Path.vi>Read JPEG File.vi>Open a jpeg file.vi" I do have a picture of mars stored at Desktop/My Documents/My Pictures. Open a jpeg file.vi Please show me where I went wrong. Quote Link to comment
ShaunR Posted January 29, 2011 Report Share Posted January 29, 2011 I am seeking to open a jpeg file into labview 7.0. If I do not wire a file path, a dialog box appears for me to specify a file to read from. This works just as the user manual says it should. However if I wire my path to the VI Desktop/My Documents/My Pictures/Mars1 ,this message pops up; "error 1 occurred at File/Directory Info in Check Path.vi>Read JPEG File.vi>Open a jpeg file.vi" I do have a picture of mars stored at Desktop/My Documents/My Pictures. Open a jpeg file.vi Please show me where I went wrong. " Desktop/My Documents/My Pictures" isn't a real path. It's similar to a short-cut to a folder that changes with each user. To find what the real path is you can open "My Pictures" in explorer and right click on the address bar. Then choose. "Edit address". The address bar will then show you the absolute path which will be something like C:\Documents and Settings\user name\My Pictures (XP) or C:\users\user name\My Pictures (Win7/Vista). 1 Quote Link to comment
crichter Posted January 31, 2011 Author Report Share Posted January 31, 2011 " Desktop/My Documents/My Pictures" isn't a real path. It's similar to a short-cut to a folder that changes with each user. To find what the real path is you can open "My Pictures" in explorer and right click on the address bar. Then choose. "Edit address". The address bar will then show you the absolute path which will be something like C:\Documents and Settings\user name\My Pictures (XP) or C:\users\user name\My Pictures (Win7/Vista). Thank You ShaunR. I reckon that is just what I needed to know. Quote Link to comment
crichter Posted January 31, 2011 Author Report Share Posted January 31, 2011 Thank You ShaunR. I reckon that is just what I needed to know. I am still working on this one Shaun. I am using XP. Address bar shows C:\Documents and Settings\C.Richter\My Pictures before I right click on it. When I right click the address bar, I do not see an option to " edit address" but I only see 'Cut, Copy,Paste, Delete, Show unicode control, Insert unicode control. I guess I am one step closer, as I tried using "C:\Documents and Settings\C.Richter\My Pictures\MARS1 and this time got Error 7. Quote Link to comment
ShaunR Posted January 31, 2011 Report Share Posted January 31, 2011 (edited) I am still working on this one Shaun. I am using XP. Address bar shows C:\Documents and Settings\C.Richter\My Pictures before I right click on it. When I right click the address bar, I do not see an option to " edit address" but I only see 'Cut, Copy,Paste, Delete, Show unicode control, Insert unicode control. I guess I am one step closer, as I tried using "C:\Documents and Settings\C.Richter\My Pictures\MARS1 and this time got Error 7. MARS1.jpg? You can right click and use "Copy" then click inside the path constant and press "CTRL V". It will paste the path into the constant. Edited January 31, 2011 by ShaunR Quote Link to comment
jdunham Posted January 31, 2011 Report Share Posted January 31, 2011 MARS1.jpg? In their infinite wisdom, Microsoft have determined that file extensions are too hard for you, so the default is to hide them and show you an icon instead. This is one of the first things I turn off on a new machine. In Windows Explorer menu (press "Alt" if no menu is showing, another dubious UI improvement), choose Tools -> Folder Options -> View -> Advanced Settings and uncheck "Hide extensions for known file types". Since the extension is really part of the file name, I don't understand where the obsession with hiding it comes from, but things will make more sense after you turn off that option. Quote Link to comment
crichter Posted February 1, 2011 Author Report Share Posted February 1, 2011 Problem solved, thanks to you both. It's great having people on board with knowlege like you have. Quote Link to comment
hooovahh Posted February 3, 2011 Report Share Posted February 3, 2011 In their infinite wisdom, Microsoft have determined that file extensions are too hard for you, so the default is to hide them and show you an icon instead. This bugs me too. We've had some files in our version control that are things like Document.doc.doc and a few times Document.doc.pdf. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.