Edwin wrote:
> When I try to create a DLL to be used as a CIN with CVI, I get linker errors
> that point to the
> cin.obj file.
> _CINRun is undefined.
>
> I have gone through the steps outlined in cvilvsb.h and followed them exactly.
> the
> only other issue I am unsure of is the #pragma pack which is enveloped around
>
> struct definitions which I have not defined any structures.
>
> If anyone could give me a quick step by step on what i may be missing, it
> would be
> appreciated.
It appears to me that you are trying to do two very different things here.
It has be a long time since I did CINs though, so I could be mistaken.
A DLL is something you can call directly from LabVIEW using the "Call Library
Function"
This is usually a large collection of functions
and must be compiled specifically
as a DLL
A CIN on the other hand is a small piece (usually) of C code that is compiled as
an object
file (by an external compiler) and then incorporated into LabVIEW using the "Code
Interface Node"
If you start with a new VI , drop a CIN on the diagram, right click on the
CIN and select "Create .c file"
you will see that it creates a skeleton piece of C code. The main function will
be CINRun
This MUST be in a CIN for it to work properly.
I suggest you look at the Code Interface Reference Manual. While it may be
possible to call
a DLL from inside a CIN I do not believe that you can make a DLL and and use the
Code Interface Node to call it.
Kevin Kent