05-16-2010 05:20 AM
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)
Solved! Go to Solution.
05-16-2010 06:24 AM - edited 05-16-2010 06:25 AM
05-16-2010 06:50 AM
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.
05-16-2010 01:00 PM - edited 05-16-2010 01:03 PM
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.
05-16-2010 09:14 PM
Thank you very much!
Maybe I sought a far and wide for what lies close at hand.I will try to use DLL.