03-12-2018 02:28 AM
Sorry, the previous message did not attach. The problem is only with the file entry when I transfer it to a different folder, different from the folder where the exe file is installed.
03-12-2018 03:47 AM
Hi AndryG,
The problem is only with the file entry when I transfer it to a different folder, different from the folder where the exe file is installed.
Which error?
Where is the file located?
Did you check and probe the file path?
Is this still related to a cRIO?
Why did you "transfer" the file to a different folder? Did you adapt your file loading routine to this changed folder?
Again: did you debug your VI?
03-12-2018 04:03 AM
It's easier for me to give you my vi, try to make an exe file out of it, write it, read it and transfer it to another computer, for example, creating a folder in which the project files will be located and you will understand everything yourself, I certainly debugged vi.
Regards)
03-12-2018 05:22 AM - edited 03-12-2018 05:23 AM
Hi AndryG,
I certainly debugged vi.
So which error do you get (in the executable)?
And which file path is your EXE trying to access?
When debugging such stuff in an EXE I usually use some additional Dialogs to show these values. Or I log them to a file …
Nevertheless AppDir should be the folder where the EXE is located in. Then you build a path of AppDir\NameDir.ini - but "Name Dir" is empty in your VI…
03-12-2018 05:37 AM
You can enter any name of the file name if it does not exist, then vi will create it, if it is, it will overwrite the values in it, the file name is also the key for the ini file. I also use dialog boxes, but they stand in the main program, then vi. The message is issued when you try to create a new configuration file:
03-12-2018 06:40 AM
Hi AndryG,
can you repeat the test with a name consisting just of English (ASCII) chars?
Just to make sure it's not a problem because of using cyrillic letters…
Please try with path "C:\users\andry\Desktop\Test\Configuration1.ini" instead of cyrillic "Test\konfiguracia"!
03-12-2018 06:44 AM
Ok.All the same)
03-12-2018 06:53 AM
03-12-2018 06:57 AM
Aldeady no!
03-12-2018 09:34 AM