LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

object code not loaded error with Visual Studio 2008 and LabView 2009

I know this question has been asked many times, but the answers are mostly for VS 6 and reference files/functions that no longer exist.  I have tried several of them and gotten nowhere.

 

After slogging through a dozen out of date/conflicting setup documents I finally managed to compile the simple CIN example mult.lsb (*C = *A * *B), and after loading the .lsb file and trying to run the vi, it tells me the .lsb file was not loaded.  This is clearly a common problem, but does not have a common solution.  I would greatly appreciate it if someone who has gotten this to work with vs08 (I assume this is a settings issue) could shed some light.

 

Thank You in advance.

0 Kudos
Message 1 of 5
(3,175 Views)
Let me ask a different question: Is there a particular you're trying to use a CIN? CINs are obsolete technology. The preferred (and recommended) method for calling external code is with shared libraries. On Windows this would be DLLs.
0 Kudos
Message 2 of 5
(3,171 Views)

Because I did not know that.  A particular piece of equpiment I wish to interface with requires its commands be crc checked, and the manual provides the code in c.  While I could potentially translate it to math script or something I felt the easiest way to do that would be to tie into c.  The LabView help files say the way to do that is CIN, and so I was simply trying to use it.  CIN being depreciated explains why all the information pertaining to it is so out of date.  Could you perhaps link me to the instructions for doing it the new way?

 

 

0 Kudos
Message 3 of 5
(3,164 Views)
Look for information about the Call Library Node. Has been in LabVIEW since version 3.1 or 4 and really fully useful since about 5. How to write and create a DLL will depend on your compiler and you best look for examples that came with your particular compiler.
Rolf Kalbermatter
My Blog
0 Kudos
Message 4 of 5
(3,151 Views)

Here's a place to start for looking into using shared libraries: 

An Overview of Accessing DLLs or Shared Libraries from LabVIEW

I hope this helps!

 

Kristen H.

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