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: 

How create CIN with visual C++

I am trying to generate a CIN for the following example C code (mult.c)
/*
* CIN source file
*/

#include "extcode.h"


CIN MgErr CINRun(float32 *A, float32 *B, float32 *AB);


CIN MgErr CINRun(float32 *A, float32 *B, float32 *AB) {


*AB = *A * *B;


return noErr;
}


My makefile is

name=mult
type=CIN
cintoolsdir=C:\Program Files\National Instruments\LabVIEW 6.1\cintools
!include <$(cintoolsdir)\ntlvsb.mak>


I'm following the istructions in the LabVIEW Code
Interface Reference Manual to compile a CIN using visual c++, but when I open the makefile
whith visual C++ don't showme the messages mentioned in the manual and I can't add the mult.c file.
I'm using Labview 6.1 and MVC 6.0

Can anyone help?
0 Kudos
Message 1 of 2
(2,663 Views)
I am not sure what the problem could be. I have followed the steps in "Using External Code in LabVIEW" manual with LV6.1 and VC++6 with success in the past. You can find the manual by opening LabVIEW >> help >> search the LabVIEW bookshelf. This launches a pdf with hyperlinks to all the LabVIEW shipping documents. The manual will be listed there.

The manual has been updated for 7 so you may want to look for it online for the latest information.
0 Kudos
Message 2 of 2
(2,658 Views)