LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

*.lsb in MSVC++6

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;
}
C:\Program Files\National Instruments\LabVIEW 6\cintools\


in the Additional include directories


for code generation selected multithreaded DLL and 1 byte


and on custom build typed the following for commands


"C:\Program Files\National Instruments\LabVIEW 6\cintools\lvsbutil" "$(TargetName)" -d "$(WkspDir)\$(outDir)" (all in one line)

and in the output typed
$(OutDir)$(TargetName).lsb


I also made sure that I have settings as All configuration


when i build the dll
the status is
mult.dll error(s)0 ,warnings 0

but there is no mult.lsb file created.
i have followed the steps given in the manual using External Code.july edition .

i am using MSVC++ version6 and my Labview version is 6i.

pls help,
regards
sithara
0 Kudos
Message 1 of 2
(2,534 Views)
sithara,

I also follwed the directions on page 3-14 of the Using External Code in LabVIEW manual except not including the Win32 directory instructions since this directory has been removed in LabVIEW 6.0.0 and above. I used the same set of instructions that you did as well. Are you building for the right configuration? Did you set the settings for debug, but are building under release? Also, make sure to include the four files (cin.obj, labview.lib, lvsb.lib, and lvsbmain.def). Without these files, the .lsb file will be created, but it will not work. My guess is that you are building in the wrong configuration because you should see a message that the custom build went successfully and you do not show that message in your post.

Randy Hoskin
Applications Engine
er
national Instruments
http://www.ni.com/ask
0 Kudos
Message 2 of 2
(2,534 Views)