LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Converting CVI project for Visual Studio 2005

I have a LabWindows/CVI application that I need to convert to a Visual Studio DLL for a colleague.  According to Document 1VA1U8M, this should be relatively simple using Measurement Studio in Visual Studio 2005.  The CVI Project Import Wizard referenced in the document is nowhere to be found in the Visual Studio menus.  The only NI tools under the Measurement Studio menu are MAX and NI Spy.   What do I need to do to build this DLL?  Thanks.
0 Kudos
Message 1 of 5
(3,829 Views)
The VS 2005 project wizards were added in version 8.0.1 of CVI, so you won't find them unless you have that version or higher.  If you do have the wizards, they will be accessible from the new project menu item.  You should see a LabWindows/CVI project grouping that has the conversion wizard you are looking for.

If you have CVI 8.0.1 and you still don't see these items, you may not have them installed.  By default, the wizards are installed if you installed CVI after VS 2005.  If you installed them in the other order, the VS 2005 wizards feature is turned off by default in the installer.  If this is the case, you would need to go to Add/Remove Programs and choose to modify your installation of CVI. This allows you to select the VS 2005 wizards for installation.

Hope this helps.

Mert A.
National Instruments
0 Kudos
Message 2 of 5
(3,824 Views)
After updating my CVI installation, I was able to convert the CVI project into a Visual Studio project.  When I build the project in Visual Studio, however, I get a LNK1120 error, complaining that _ListCreate@4 is an unresolved external symbol.  The same code compiles and links with no issues in CVI. 
0 Kudos
Message 3 of 5
(3,815 Views)
ListCreate is defined along with all the other List functions in toolbox.c.  The toolbox c and h files should have been automatically added to your VS project when it was created.  Can you confirm that toolbox.c is in the VS project?  I am a bit confused why you would only be getting a link error for ListCreate, however; you are presumably calling other List functions and these are linking properly?

If you have toolbox.c in your project, and you're still getting the link error, let me know.  It would help if you could post "before-and-after" CVI and VS projects that have this problem.  Every project I have converted (samples\toolbox\list.prj, etc) links just fine.

Mert A.
National Instruments
0 Kudos
Message 4 of 5
(3,811 Views)
I discovered that toolbox.fp was used as a library module for this project (I wasn't the original developer), but had not been added to the project file list.  Once I added this file to the project file list in CVI and converted the new project to Visual Studio, toolbox.c and toolbox.h were added to the VS files list and I was able to successfully build the project.
0 Kudos
Message 5 of 5
(3,800 Views)