You should create a DLL out of your CVI code. You can then use a "call library" function node to integrate this dll into LabVIEW. Double-click the node to select your dll and setup the params.
You can also search www.ni.com for:
Using external code with LabVIEW
DLL
Call Library Function Node
Hope that helps,
Brett