LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Implementing C code in Labview and NT

Does anyone know how or what I'm doing wrong. When I create a C file
for a code interface node and compile its giving me an error in the
header file extcode.h which has to be included? It is giving me an
error at line 224 #error. Does anyone know how to fix this, if so
please let me know.
Thanks
Kevin Shaffer
kps9@cdc.gov


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
0 Kudos
Message 1 of 4
(3,212 Views)
In article <7j5tjp$ehr$1@nnrp1.deja.com>,
kcshaffer@my-deja.com wrote:
> Does anyone know how or what I'm doing wrong. When I create a C file
> for a code interface node and compile its giving me an error in the
> header file extcode.h which has to be included? It is giving me an
> error at line 224 #error. Does anyone know how to fix this, if so
> please let me know.
> Thanks
> Kevin Shaffer
> kps9@cdc.gov

Have you read the Code Interface Reference Manual? Which compiler do you
use ? If you use MS Visual C/C++ IDE 5.0, on page 1-30 of the
CIN-manual you'll find information on the compiler options to be set.

Good luck.
Bernhard


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
0 Kudos
Message 2 of 4
(3,214 Views)
Hi
I'm using MS Visual C/C++ IDE 6.0, Labview 7.1,i follow all the steps given in CIN-manual, but i'm not clear in step

Make a custom build command to run

lvsbutil. Select Project»Settings… and change Settings for: to All configurations. Select the Custom Build tab and  change the Build commands field to < your path to cintools>\win32\lvsbutil $(TargetName) -d $(WkspDir)\$(OutDir) and the Output file fields to $(OutDir)$(TargetName).lsb.

i'm not getting final lsb file but no error comes while i building dll file.

Regards


0 Kudos
Message 3 of 4
(3,089 Views)


@Anu rvk wrote:
Hi
I'm using MS Visual C/C++ IDE 6.0, Labview 7.1,i follow all the steps given in CIN-manual, but i'm not clear in step

Make a custom build command to run lvsbutil. Select Project»Settings… and change Settings for: to All configurations. Select the Custom Build tab and  change the Build commands field to < your path to cintools>\win32\lvsbutil $(TargetName) -d $(WkspDir)\$(OutDir) and the Output file fields to $(OutDir)$(TargetName).lsb.

i'm not getting final lsb file but no error comes while i building dll file.

Regards




Have you tried double quoting the path to lvsbutil? A default LabVIEW installation under recent Windows versions results in a path with spaces to that utility and the Windows command line (which is used to execute such custom build tools) is not good at guessing what spaces are embedded in a possible path or are parameter separators.

Rolf Kalbermatter

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 4 of 4
(3,063 Views)