LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to import code written in c++ into labview by dll

Presently i have been working on a project the pda12a board. The code is written in c++ and i am suppose to convert it into dll and import it into labview. So how do i go about doing it.
0 Kudos
Message 1 of 3
(3,055 Views)
LabVIEW has the ability, by using the Call Library Function, to call DLLs. There are examples that come with LabVIEW that show how the function is used. There are some gotchas, however. For one, LabVIEW does not support all data types. As a starting point, I would refer you to the "Using External Code in LabVIEW" manual. With LabVIEW 6, it comes as a .pdf file. I think it's also available on NI's web site.
0 Kudos
Message 2 of 3
(3,055 Views)
i have been reading on the manual that come with labview 6 but i have yet to grasp the entire concept.There are several thing that i am very confused,
1. Take the case of my project, the pda12a board is written in c++.I am supposed to build it into a dll so that i can import into labview.Is there anything i need to add on the existing c++ code ?
2. Also once i managed to build into dll, i need to know the type of input variable and output variable that will be pass into the call library funtion/cin.
0 Kudos
Message 3 of 3
(3,055 Views)