LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Compile external code with Microsoft Visual C++ 2008 Express Edition

Solved!
Go to solution

Hi,

 

I'm trying to compile a c code to work with Labview (either CIN or dll). In the past I did that with no problem using visual studio. I'm having a really difficult time compiling the code with 

Microsoft Visual C++ 2008 Express Edition. I'm trying to compile one of the examples that come with Labview (Multiply 2 numbers for example) .

I'm not sure how to set the c project  with Microsoft Visual C++ 2008 Express Edition. I read on the web something about making a lvm file with Labview makefile. Is that really necessary? If so, how do I create this file?

 

Thank you,

Eyal

0 Kudos
Message 1 of 3
(3,808 Views)

Eyal S. wrote:

Hi,

 

I'm trying to compile a c code to work with Labview (either CIN or dll). In the past I did that with no problem using visual studio. I'm having a really difficult time compiling the code with 

Microsoft Visual C++ 2008 Express Edition. I'm trying to compile one of the examples that come with Labview (Multiply 2 numbers for example) .

I'm not sure how to set the c project  with Microsoft Visual C++ 2008 Express Edition. I read on the web something about making a lvm file with Labview makefile. Is that really necessary? If so, how do I create this file?

 

Thank you,

Eyal


lvm is the abbreviation for LabVIEW makefile and is only used for CIN's. The idea behind lvms was to make a single and simple make file that will then be used to thrive the nmake tool that comes with Visual C. It could be that either Visual C 2008 or maybe just the Express edition does not come with that command line tool anymore.

 

Creating CINs in Visual C is a bit of a hassle because of the custom step necessary to invoke the lvsbutil tool. Visual C manages to change the actual syntax necessary to add such custom steps to a project with every new version. So whenever someone has written a good guide about how to creat CINs with Visual Studio xyz it will again break with Visual Studio xyz + 1.

 

That said you might be interested to read through the three articles at http://expressionflow.com/author/rolfk to see why using CINs is a dead end since several versions of LabVIEW already and that you should really go with DLLs.

 

Rolf Kalbermatter

Message Edited by rolfk on 01-21-2009 10:17 AM
Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
Message 2 of 3
(3,784 Views)
Solution
Accepted by topic author Eyal_S.

Thanks for your reply.

 

I actually found a way to create a dll on the web :

http://decibel.ni.com/content/docs/DOC-1690

 

0 Kudos
Message 3 of 3
(3,740 Views)