03-18-2005 01:33 PM
03-18-2005 05:41 PM
03-22-2005 04:12 PM
03-22-2005 05:19 PM
09-03-2019 03:24 AM
Hi there,
I'm faced with a similar problem. I want to implement python scripts in CVI 2017 and try to start a minimal project as 64bit application:
#include <utility.h> #include "python.h" int main (int argc, char *argv[]) { if (InitCVIRTE (0, argv, 0) == 0) return -1; /* out of memory */
if(!Py_IsInitialized()) Py_Initialize(); Py_Finalize(); }
At the Py_Initialize(); I get an unknown fault:
FATAL RUN-TIME ERROR: "minimal_test_main.c", line 12, col 5, thread id 7360: The program has caused a 'Unknown' fault at 0x00007FF91DBF36AE.
I'm using CVI 2017 on Windows 10 PRO
with
Python 3.7.1 (default, Dec 10 2018, 22:54:23) [MSC v.1915 64 bit (AMD64)] :: Anaconda custom (64-bit) on win32
In my project I have included
python37.lib from c:\ProgramData\Anaconda3\libs
using the modified pyconfig.h from Alex D found here and I add the
define SIZEOF_WCHAR_T 2
to that file
Also I try to create my own pyconfig based on the pyconfig from Alex and the original pyconfig that comes with Anaconda distribution.
Another thing I tried is the use of python3.lib/dll instead of python37.lib/dll without luck.
Could someone help me to get python 3.7 runnning with CVI2017 64bit?
Best regards,
Thomas
02-14-2022 07:14 AM
Hey , i have the same kind of question. I have a python code that contains functions that i want to use ib cvi. It ends in .py and i want to get access to those functions through the cvi. How can i do that?
ty
10-12-2022 08:35 AM
hello
Did you find the solution ? i have the same issue 😪
10-12-2022 08:46 AM
Hi,
Unfortunately not. I started to migrate my CVI project completly to python .
Best regards
10-12-2022 10:07 AM
Thanks for your answer !
best regards