Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

C1083: Cannot open include file: 'nivision.h'

I am using Microsoft Visual Studion 2008, and want to try NI Vision example "Threshold And Label", located in  

"c:\program files\national instruments\vision\examples\msvc\threshold and label".

 

I open "Threshold And Label.dsw", try to Build. But  

c:\program files\national instruments\vision\examples\msvc\threshold and label\stdafx.h(26) : fatal error C1083: Cannot open include file: 'nivision.h': No such file or directory

is fallen.

 

0 Kudos
Message 1 of 4
(4,048 Views)

Hi kirill,

 

Hopefully this KnowledgeBase will be of some help.

0 Kudos
Message 2 of 4
(4,025 Views)

Except it appears to be out of date... 

 

Newer versions of NI drivers all place their C header/lib files under the following location:

C:\Program Files\National Instruments\Shared\ExternalCompilerSupport\C      (add \include or \Lib32 or \Lib64)

 

Follow the instructions in the KB but use this modified path instead.

 

Eric 

0 Kudos
Message 3 of 4
(4,022 Views)
Thank you. I've added include and lib paths, and now it works!
0 Kudos
Message 4 of 4
(4,009 Views)