LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Visual C++ and CINs - Help Translating Manual

Hi All,

I've been programming Labview for over two years now. I've come to a
point where I need to make use of the CIN functions. I'm using Labview
6i and MS Visual C++ IDE.

Referencing NIs manual "Using External Code in Labview" pg 3-14, it
shows one how to create a CIN.

My question is, on line item 6, what should "$(TargetName)" be? If I
was trying to use example "Fileread.vi" would the target name be
"fileread.c"? Further, what do "$(WkspDir)\$(OutDir)" refer to? Should
I type them in the way they are? I'm not sure, since the very bottom
of 3-14 states that "Change Output file fields to
$(OutDir)$(TargetName).lsb."

A posting would be nice, but you can always e-mail me (spam
prevention)

Kind Regards,

-Dorian

dorianj
ps@hotmail._nospam_com

please remove _nospam_ when e-mailing
0 Kudos
Message 1 of 2
(2,544 Views)
The "(TargetName)" is a Microsoft Visual C++ tag that the IDE will recognize, as are the (WkspDir) and (OutDir) tags. Type these the way they appear. Just remember to change the "" to the actual path for the cintools directory. Also, make sure you do it in 8.3 format, meaning that no directory name is more than 8 characters. (ex. c:\progra~1\nation~1\labvie~1\cintools).

An alternative to this method would be to use a makefile. This link will direct you to a VI that can be used to create makefiles. Just open up VC++ and open up the make file (*.mak) in it. VC++ will tell you that the file was not created in VC and ask you if you want to create a new workspace. Click yes, and select Win32 app. Then add your C files to the new
project and compile.

http://zone.ni.com/devzone/explprog.nsf/webmain/7A0E23122E292576862567D7006C5AE0?opendocument&node=DZ52045_US
0 Kudos
Message 2 of 2
(2,544 Views)