04-30-2018 12:37 PM
Hi,
Currently I am migrating from CVI 2008 to 2015 and my biggest challenge is too solve error on IniText, I have searched thru the documents or discussion forum, for this error, if I am missing can anyone attach the thread. Any help would be great. Thanks.
Riddhi
04-30-2018 02:06 PM
Hi Riddhi,
I haven't used iniText before, but just to make sure, you included the "inifile.h" in your path? Maybe it changed when moving from CVI 2008 to 2015.
The reference that I found the most useful was in
https://forums.ni.com/t5/LabWindows-CVI/Type-define-of-IniText/td-p/211350
Let me know your results!
Regards,
Vincent
04-30-2018 02:47 PM
Hi Vincent,
Thanks for reply. I have included inifile.h in my path, also referred to the thread shared. Yet not successful, I am sharing image of error, if that helps to resolve.
Regards,
Riddhi
04-30-2018 06:15 PM
Hi Riddhi,
Overall I am unsure on how to approach it and I am not sure if this piece of information is helpful, but it is mostly to throw it out: when I exclude "inifile.h" from my code completely, I don't see a message regarding a Type Name issue like yours but simply get syntax errors where they think I am missing a semicolon instead. I don't know if that is related somehow.
As a question to put out there, are you able to share a bit of the code where you first use IniText that causes the code to croak?
Anyway, hopefully someone on the forums has seen this before. I am curious about this solution!
Regards,
Vincent
05-01-2018 01:17 PM
You also need to include the instrument driver file inifile.fp in your project. It is located in the same folder in your CVI installation as inifile.h.
05-01-2018 02:06 PM
I did include inifile.fp instrument file driver in my project, but I still do receive error as use of undeclared identifier 'IniText".
Thanks.
05-01-2018 11:44 PM
Mightbe a problem with #include order.
The problems seems to happen with the file FSA_tools.h
Does this file have a #include <inifile.h> at its top ?
If not, you probably need to #include <inifile.h> before the #include <FSA_tools.h> in alarm.c.
05-02-2018 02:07 AM
I would start from scratch with a few questions.
1. Does your original project actually make use of the IniFile instrument? This is a NI-supplied piece of software that permits to read/write files in .INI format.
2. I suppose the project was building fine in CVI 8.5 (?) release. (The question mark comes out from the fact that year-based labelling of CVI started with CVI2009, so I suppose you were using 8.5, right?) If so, were you including the IniFile as an instrument (i.e. in Instrument menu) or as a library (with Library >> Customize function)?
3. Was FSA_tools.h already included in the original project? Did you make some modifications in that file by yourself or was it updated from the original producer?