LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Error: Unknown Type name 'IniText'

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

 

0 Kudos
Message 1 of 8
(3,538 Views)

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

0 Kudos
Message 2 of 8
(3,525 Views)

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

0 Kudos
Message 3 of 8
(3,518 Views)

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

0 Kudos
Message 4 of 8
(3,508 Views)

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.

 

0 Kudos
Message 5 of 8
(3,481 Views)

I did include inifile.fp instrument file driver in my project, but I still do receive error as use of undeclared identifier 'IniText".

 

Thanks.

0 Kudos
Message 6 of 8
(3,474 Views)

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.

0 Kudos
Message 7 of 8
(3,463 Views)

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?



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 8 of 8
(3,458 Views)