01-20-2009 01:03 PM
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
Solved! Go to Solution.
01-21-2009 03:12 AM - edited 01-21-2009 03:17 AM
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
01-22-2009 01:12 PM
Thanks for your reply.
I actually found a way to create a dll on the web :
http://decibel.ni.com/content/docs/DOC-1690