LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Run C++ code through LabView

Hello,

I have a C++ code that I need to run through LabView.  The C++ code is a collegue's work not mine.  It is a very big code but it has been tested and it works.  I am trying to run this code through LabView.  I was wondering if there a way to run a C++ code through LabView without having to create a shared library file (.dll).  I have a text file of the C++ code but when I try to create a .dll file through visual studios I get a lot of erros.  The code is very long and going through it and fixing all the errors will take a long time.  

 

Thank you in advance.  

0 Kudos
Message 1 of 2
(4,172 Views)

No - it is not possible to run C++ code in LabVIEW.

 

You would need to create a .dll (or a wrapper dll?) and call the functions of that VI from LabVIEW using the Call Library Function node.

 

The other option would be to modify his code so you can talk to it over TCP/IP or something similar and have his code run as it's own application that you can talk to.


LabVIEW Champion, CLA, CLED, CTD
(blog)
0 Kudos
Message 2 of 2
(4,167 Views)