LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

include statements needed in .c i.e. #include "nivivision.h"

Hi,

 

I am a new bibe to Labwindows/CVI and Ni Vision.

I am struck with the issue ,Kindly help me in resolving.

 

I have installed LabWindows/CVI demo version and Vision Acquisition Software on my system.

With the Vision Acquisition Software installation i have got files which is required for my project.

 

I have a LabWindows/CVI project (FindTabDLL.prj) which have

 

Under source files

FindTab.c

 

Under Include Files

FindTab.h

 

Under Instrumentation Files

cvixml.fp

inifile.fp

toolbox.fp

 

I have included Include path for the project by right clicking on project->Edit Project->Click on Include Path->Added include path for NIVision.h and NIImaqdx.h

 

The Actual problem comes here,

 

When i build the project i have the following error popping up,

 

"The following include statements are needed in FindTab.c  #include "nivision.h"  Do you want to add them to the top of the file     Yes NO Cancel" 

 

What might be the problem,i have included the #include headers also ,even then building the project gives me same error.

 

I am attaching the .doc which shows errors i am facing.

 

Thanks in advance,

vinayasheela

 

 

0 Kudos
Message 1 of 4
(3,954 Views)

Hi,

 

This message is letting you know that the line of code:

 

#include "nivision.h"

 

must be at the top of the Source file FindTab.c before your first code but after your commented header. Including the file in the project does not include header file in the source code. Clicking yes on the error dialog should automatically add this line of code to your source file.

- FCTesting
0 Kudos
Message 2 of 4
(3,941 Views)

Hi,

Thank you for the quick reply.

Yes,I tried that before writing to the forum.

 

FindTab.h has #include "nivision.h"

FindTab.c includes "FindTab.h" i.e. it indirectly adds # include "nivision.h"

 

even then it pops up with the error dialog.

 

Have a look at the attached errors.

 

Thanks and Regards,

vinayasheela

0 Kudos
Message 3 of 4
(3,933 Views)

Can anybody Help???

 

Does it requires nivision.dll to get compiled...As i have installed demo version of vision acquisition software i got nivisionH.dll but no where in my system i have nivision.dll.To get this do we need to have licenced version.

 

Thanks

vinayasheela

0 Kudos
Message 4 of 4
(3,880 Views)