bimbone Posted October 8, 2009 Report Share Posted October 8, 2009 Hallo! I created the executable of my VI and everything works fine if installed on Windows in Italian, while on Windows in Finnish does not work. The error that returns: unable to read and write files in a folder that is on C: \ The path that I use are constant and I copied the folder in C: \ make sure there is write protected. Maybe when I run the application using the system folders of different name? Maybe I should change labview.ini? thanks, Marco Quote Link to comment
crelf Posted October 8, 2009 Report Share Posted October 8, 2009 Are you writing files directly in the root of the c:\ drive, or are they going into system folders? If it's the latter, the system folders might have different names (eg: local spellings of "Program Files" or "Documents and Settings", etc). In those cases, you're better off getting the location of those folders dynamically either using the registry (good method) or through a sysexec call to "path" (ok method). I've got some VIs around here somewhere that get some local user info from the registry - ping me if you want to take a look at them. On second thought: this assumes that the language of the registry is always the same - is that a safe assumption? Quote Link to comment
bimbone Posted October 8, 2009 Author Report Share Posted October 8, 2009 Are you writing files directly in the root of the c:\ drive, or are they going into system folders? If it's the latter, the system folders might have different names (eg: local spellings of "Program Files" or "Documents and Settings", etc). In those cases, you're better off getting the location of those folders dynamically either using the registry (good method) or through a sysexec call to "path" (ok method). I've got some VIs around here somewhere that get some local user info from the registry - ping me if you want to take a look at them. On second thought: this assumes that the language of the registry is always the same - is that a safe assumption? I write and read directly into a folder called "machines" and is in c: \ Tomorrow I send you the specific problem, as it gives labview, currently I have no windows in Finnish, I have only reported the problem. I was only reported the problem. tanks, Marco Quote Link to comment
Mellroth Posted October 8, 2009 Report Share Posted October 8, 2009 I write and read directly into a folder called "machines" and is in c: \ Tomorrow I send you the specific problem, as it gives labview, currently I have no windows in Finnish, I have only reported the problem. I was only reported the problem. tanks, Marco Just have to ask; you are not having a space between : and \ are you. In both your posts you do have a space between these characters, and I don't think Windows like a folder/file name to start or end with a space character (cannot check right now). /J Quote Link to comment
asbo Posted October 8, 2009 Report Share Posted October 8, 2009 Just have to ask; you are not having a space between : and \ are you. In both your posts you do have a space between these characters, and I don't think Windows like a folder/file name to start or end with a space character (cannot check right now). /J Good catch - I didn't notice that he was doing that. A space there is just completely incorrect syntax; the driver letter must be immediately followed by a colon and either nothing OR a backslash. That is, "c:" is correct (in some circumstances) but "c:\" is always correct. As a side note, you can have leading spaces in directory names, but trailing are trimmed. Quote Link to comment
bimbone Posted October 9, 2009 Author Report Share Posted October 9, 2009 This is the error that returns labview Error 1 occurred at scan from file (arg 18) Good observation! but I did not put spaces Crelf how can I get your examples? I send you a private message or email? Quote Link to comment
Ton Plomp Posted October 9, 2009 Report Share Posted October 9, 2009 OK so the problem is not the opening of the file, it's more the reading of contents. Have you checked localization (. vs , time formatters). It's best to post some code and an example file. Ton Quote Link to comment
bimbone Posted October 9, 2009 Author Report Share Posted October 9, 2009 you'll find my program everything here http://lavag.org/topic/11153-software-problem-or-converter-rs-485/ that has some mistakes but it worksif you want the program with the corrections I will reload it Quote Link to comment
crelf Posted October 9, 2009 Report Share Posted October 9, 2009 Crelf how can I get your examples? Hey you go. It's a little old and I don't gauruntee it works perfectly, but it should point you in the right direction. Computer.plat-registry.Get Windows Registry Settings.vi Quote Link to comment
ShaunR Posted October 9, 2009 Report Share Posted October 9, 2009 Another little snippet that you may find useful. Quote Link to comment
bimbone Posted October 10, 2009 Author Report Share Posted October 10, 2009 Sorry Crelf, I have LabVIEW 8.5 could you reload it in that version? thanks, Marco Quote Link to comment
crelf Posted October 10, 2009 Report Share Posted October 10, 2009 Sorry Crelf, I have LabVIEW 8.5 could you reload it in that version? I could. Quote Link to comment
crelf Posted October 11, 2009 Report Share Posted October 11, 2009 ...and now I will. Computer.plat-registry.Get Windows Registry Settings_8.5.vi 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.