LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Generate CIN

Hi,

Can I using LabWindows/CVI to compile a CIN code ? If LabVIEW could support such a code block ?


David
0 Kudos
Message 1 of 5
(3,316 Views)
I'm not sure about a CIN, but you can certainly use it to create a DLL that LabVIEW can call with the Call Library Function Node. I think DLLs are easier to use anyway.
0 Kudos
Message 2 of 5
(3,310 Views)
Hi Dennis,

But if the generated dll include a panel created by CVI, I'd like to know can it display in LW enviroument?


David
0 Kudos
Message 3 of 5
(3,301 Views)


@DavidLee wrote:
Hi,

Can I using LabWindows/CVI to compile a CIN code ? If LabVIEW could support such a code block ?


David


Not sure about the latest CVI versions but in LabWindows/CVI 6 it was definitely possible. You did need to include the cvilvsb.h header file provided with the LabVIEW cintools to tell the CVI compiler a few things he needed to know, but that was it. cvilvsb.h also contains some explanations as to how to go about doing this althoughI have no idea if that explanation is still fully correct as I haven't worked with CVI since version 6.

Rolf Kalbermatter
Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 4 of 5
(3,295 Views)


@DavidLee wrote:
Hi Dennis,

But if the generated dll include a panel created by CVI, I'd like to know can it display in LW enviroument?


David


There is no difference between a CIN and a DLL in that respect. A CIN is technically just a special form of a DLL anyhow. Also the panel is not contained in the DLL itself (at least it wasn't in earlier CVI versions) but in the UIR file. So you would need to distribute your UIR file as well together with the DLL/CIN. Using a CIN might pose problems to determine the path at which the UIR file needs to be loaded since a CIN is really a DLL that gets copied at load time into the temproary directory and loaded from there while your UIR file would stay at whatever place you have copied it.

Last but not least there might be some issues with displaying CVI front panels from within LabVIEW but I have no idea if, and when in what ways.

Rolf Kalbermatter
Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 5 of 5
(3,294 Views)