01-10-2012 02:27 PM
I have LabWindows/CVI 2010 Full Development System (Debug Only) installed on a stand alone PC with Windows 7 (64bit). Also I have Matlab (R2011a) (also 64bit) installed on this PC. I tried to use "Create ActiveX Controller" under ""Tools". I can locate the "Matlab Application (version 7.12) Type Library" in the ActiveX Controller Wizard. After click "next", I got a message "The Type Library is not intended for use on Win32". My questions are:
1) Is my LabWindows/CVI 32bit or 64bit?
2) How to create my Matlab ActiveX Control?
01-11-2012 06:25 PM
1) LabWindows/CVI is a 32 bit application and as such it is running on the 32 bit emulation layer. I believe that is why you are getting that error message.
2) To create your Matlab Activex control you will need to find the 32 bit version of your library.
I hope that this helps.
01-19-2012 12:50 AM
I am using CVI 2010 that can build releases for Windows x64.
Does your answer mean that we cannot build ActiveX interfaces for 64-bit applications ?
01-19-2012 05:39 PM - edited 01-19-2012 05:47 PM
It means that you cannot use 64 bit libraries in CVI ti create Activex controls since CVI is a 32 bit application. You can however create 64 bit dlls, executables and static libraries. Here is a link to some information:
01-20-2012 02:04 PM - edited 01-20-2012 02:05 PM
To clarify, CVI is a 32-bit environment. In later versions of CVI you can build both 32-bit and 64-bit applications. However, the ActiveX Controller Wizard is part of the CVI environment and is thus a 32-bit process. If the type library you are trying to load is contained in a 64-bit binary, then the wizard will not be able to load it. You can however load stand alone type libraries for 64-bit binaries. Typically, most application will provide both a 32-bit and 64-bit version, as is the case with MatLab.