LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Running Python Scripts through Labwindows/CVI

Hello,

 

I'm trying to execute Python scripts through Labwindows/CVI.  I believe I have the correct library for the code to access in my project. I'm getting errors as it can't find "io.h", "stat.h", or "wchar.h" files.  There is another post on this, where a modified pyconfig.h file was provided, however that file does not work for me.  I'm not sure how to obtain the correct files for what I need here.  Is there any dependable method to do this?

 

I'm on Windows 7, I'm running CVI version 9.1.1 and Python 2.6.6 (32-bit).  The library file I'm using was proveded as part of the python install, called "Python26.lib".  I zipped and attached the project, but to get it working you have to download Python (http://www.python.org/download/releases/2.6.6/), and point CVI to the "Python.h" header file (in the "include" directory under the "Python26" directory.

0 Kudos
Message 1 of 5
(4,892 Views)

Where are these .h files located? If you know where these files are located go to Options>>Environment...>>Include Paths... you can add directories that the workspace will look for include files that are not explicitly included in your project.

Ian M.
National Instruments
0 Kudos
Message 2 of 5
(4,871 Views)

I'm familiar with how to include files.  I'm including "Python.h", which itself includes a long list of other files (the files which are the source of my error are in that subset, mentioned in my first post).  I guess the problem is that I either need the files and don't have them (where to find them?) or I just plain don't need them (and need to figure out a work-around).

0 Kudos
Message 3 of 5
(4,863 Views)

When I tried to search for these files I found them in my include directory for Visual Studios which isn't necessarily of help to you in this case.

Ian M.
National Instruments
0 Kudos
Message 4 of 5
(4,846 Views)

hello 

 

did you find solution at your problem ? 

i hhave the same issue and i try to solve it 

 

best regards 

 

0 Kudos
Message 5 of 5
(1,754 Views)