10-24-2024 08:14 AM
Hi,
I'm an absolute beginner with LabView. I have to write a program that is going to run standalone on the cRIO and I want to read from some .ini file in the program.
Open Config Data VI trow this error
which means that it does not find the path. Which make sense because I look for I file in my computer, but the cRIO as something to do with Linux, right?
So I found this page: Working with File Paths on NI Real-Time Targets - NI, which should solve my problem but it doesn't.
What am I doing wrong?
Aris Monaco
Solved! Go to Solution.
10-24-2024 06:18 PM
So what file path did you wire to the input? Please attach your code so that we can see what did you do wrong.
10-25-2024 02:10 AM
This is the .ini file
This is the path where I put the .ini: /C/Users/aris.monaco/OneDrive - *****/PRJ_WicklungsVerbackAnlage_WVA/03_Implementation/02_Software/03_LabView/Konstanten_v1.ini
And this is a test to try and read the code, but I get that error: Open/Create/Replace File in NI_LVConfig.lvlib:Load.vi->NI_LVConfig.lvlib:Open Config Data.vi->Main.vi<APPEND>
/C/Users/aris.monaco/OneDrive - *****/PRJ_WicklungsVerbackAnlage_WVA/03_Implementation/02_Software/03_LabView/Konstanten_v1.ini
10-25-2024 04:54 AM
I solved it. I needed to upload the .ini file on to the cRIO and use the path to there. For example /home/lvuser/text.ini.