ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

CIN(Code Interface Node)

NI engineers:
I am one of your users (labVIEW 6.1).
Now, I have some questions to ask you. Please give me some help.
I try to use the CIN(Code Interface Node) function, but I can not pass compile.I do not know why?
The c file is very simple, and the Compiling result is as following.
Please help me to solve the problem.
Thank you !
Chenyong
2002/7/7



/*
* CIN source file
*/

#include "extcode.h"

CIN MgErr CINRun(int a,int b,int c);

CIN MgErr CINRun(int a,int b,int c) {

/* ENTER YOUR CODE HERE */
int a;int b;int c;
a=1;b=2;
c=a+b;
return noErr;
}







--------------------Configuration: try - Win32 Debug--------
------------
Compiling...
629.c
c:\labview\labview 6.1\z_beginner\629.c(17) : fatal error C1010: unexpected end of file while looking for precompiled header directive
Error executing cl.exe.
0 Kudos
Message 1 of 3
(3,199 Views)
Hi Chenyong;

Do not declare your variables again in the code, as they are already declared in the function prototype. Remove the line:

int a;int b;int c;

Regards;
Enrique
www.vartortech.com
0 Kudos
Message 2 of 3
(3,199 Views)
Hallo
re-declaring the parameters as local variables will prevent the function to do what you expect.
But your error is more probably a problem the compiler configuration. Make sure the path to the include file extcode.h (and all it's own includes) is known to your compiler.

Gabi
7.1 -- 2013
CLA
0 Kudos
Message 3 of 3
(3,199 Views)