03-21-2006 02:46 AM
04-04-2006 04:22 AM
First CINs are a legacy technology and not recommended for new work.
@alanhomer wrote:I posted a similar message to this not so long ago but I think it may have been misinterpreted.I have wrote a genetic algorithm using microsoft visual C++ 6.0. This genetic algorithm consists of a console application (i.e. to begin with a static link library of about 15 different source codes is created, then this static link library is used dependant on an evaluation function which is solved). I am trying to link this genetic algorithm to LabVIEW but i) I need to pass values into the genetic algorithm, ii) I need to read values from the static link library for further development of my code.I have begun learning how to set-up and use a dll but that has only been done using 1 source code, and I am having problems setting up CINs on my machine for some reason.Is what I am trying to do possible, or would it just be easier to set up the GA totally in LabVIEW and use individual pieces of source code from C++ in dll's so that the LabVIEW VI computes my tasks?
04-11-2006 11:15 PM
04-12-2006 12:32 AM
What you are refering to are probably external code resources. That is a special form of CIN that could be referenced by normal CINs but resided on disk as separate file so that multiple CINs could use the same external code resource. Creation of external code resources was discontinued with LabVIEW 6.0 if I'm not mistaken but you could still use old CINs that used them. Since the current LabVIEW platforms (except Windows 32bit) are more or less all from LabVIEW 6 or later origine you could consider external code resources silently faded out.
@tuba wrote:
I agree with Rolf. CINs do allow you to link some C code in directly, but it is old technology. I believe that LabVIEW 8 does not support all types of CINs that were able to be used in previous versions, in that your CINs now have to be self-contained and cannot call external libraries (or something to that effect). A DLL or a complete LabVIEW port would definately be the way to go.
-tuba