LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

python wrapper

Hi I have embeeded a python interpreter into my cvi program.
However, I now want to wrap the cvi functions defined in cvi.dll and have used  python ctypes to load this dll.

However, every function I call results in WindowsError: exception: access violation reading 0x0000000C

Is there any initialisation that is performed before functions in cvi.dll can be called.

I thought about calling InitCVIRTE but is not defined in cvi.dll.

Any advice would be great.

Regards Glenn
0 Kudos
Message 1 of 4
(4,088 Views)
I am trying to call into cvirte.dll in the system32 directory now.

I am also try to call InitCVIRTDll(0)

However, I get the same error

 WindowsError: exception: access violation reading 0x00000002


Regards

Glenn
0 Kudos
Message 2 of 4
(4,077 Views)
Another odd thing is if I create a dll in cvi that simply calls some functions like LoadPanel and DisplayPanel and then wrap that.
Everything works.

Don't know why I can't wrap cvirte.dll directory.

Thanks
0 Kudos
Message 3 of 4
(4,061 Views)
Not sure what I did but have it going now.
0 Kudos
Message 4 of 4
(4,052 Views)