02-21-2017 02:21 AM
Hello everyone, I was reading/writing certain parameters into an INI file smoothly for the last 10 days. But, yesterday this error came out suddenly and I couldn't find a solution in the forums. Any LabVIEW users here faced with this issue before?
P.s.: I am writing/reading almost 80 different parameters. When I run it with only few controls/indicators it works fine. I don't want to read the values from excel because when I do that program hangs and shuts down sometimes. So far this is the best method I saw for efficient memory management.
02-21-2017 03:48 AM
1) Note that this is NOT an INI file. INI is a format. You are saving as flattened binary.
2) Your sample program is Error 1 because controls of the specified name do not exist. Perhaps this is a problem of your real code too. You have removed or renamed something?
02-21-2017 04:08 AM
1- Ini is format of the file in which my flattened binary is written. (That is what I was talking about by saying "writing to an ini file")
2-No. Nothing is removed or renamed. Error just suddenly appeared while I was running the vi as everyday I do.
BTW thanks for reply.
02-21-2017 04:33 AM - edited 02-21-2017 04:35 AM
Just setting a file extension to INI doesn't make it a 'real ini file'. The file you attached is a Datalog File and therefore i recommend you to use the datalog file functions instead of the normal file read.
How do you generate that file?
If i had to guess, you export the CAPTION of the control name, not the LABEL. So maybe you (or someone else working on the code) modified the control labels leaving the caption the same.
You should use probes to identify which label string creates the error 1.
EDIT: I've just seen from your error screenshot that obviously an empty string is passed as control name. This is invalid. Clarify why an empty string occurs.
02-21-2017 08:47 AM
Problem is just suddenly gone it self. Anyways, thanks for the replies. Still, if anyone has an idea about what might be the reason, I will be happy to hear.
02-21-2017 09:47 AM
Problems that go away by themselves come back by themselves.