LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

A CIN problem

Solved!
Go to solution

Hello everyone!I was bothered by a CIN problem today.

The .c program is very simple,only to experience how to use CIN.

The .lsp file was made successfully,however,it couldn't be loaded. After chosen the"Load Code Resouce" and confirmed the .lsp file,I ran and there was an error:

 

"This Code Interface Node has no code to execute. Right-click the node, select Load Code Resource from the shortcut menu, and select the object code file (.lsb)."

Why?please help me!!!

(Labvew 2009  ,VC++ 6.0)

0 Kudos
Message 1 of 5
(3,315 Views)
What version of LabVIEW (32 Bit or 64Bit)? What C compiler? What C code? What platform and OS? What is your VC project file?
Message Edited by rolfk on 05-16-2010 01:25 PM
Rolf Kalbermatter
My Blog
0 Kudos
Message 2 of 5
(3,301 Views)

version:Labview 2009 32bit

Microsoft Visual C++ 6.0

Windows XP SP2

C code:very simple:two Num controls a & b,a Num Ind c. c=a+b

.c file and .lsp(.dll) file were successfully compiled and built.

0 Kudos
Message 3 of 5
(3,282 Views)
Solution
Accepted by topic author 泛舟游

You keep talking about .lsp but it is in fact .lsb. Do you use a command line script (*.lvm) to do the compilation or a VC project? If the latter have you added a custom step to convert the DLL into an LSB by the lvsbutil tool?

 

Last but not least: CINs are a legacy technology. They have been replaced by the Call Library Node calling DLL funcitons directly a long time ago and there is no good reason to develop CINs in the latest LabVIEW versions anymore. But there are several disadvantages to CINs in comparison to DLLs, so don't spend time to learn CINs but go with DLLs instead.

Message Edited by rolfk on 05-16-2010 08:03 PM
Rolf Kalbermatter
My Blog
Message 4 of 5
(3,257 Views)

Thank you very much!

Maybe I sought  a far and wide for what lies close at hand.I will try to use DLL.

0 Kudos
Message 5 of 5
(3,227 Views)