03-16-2009 01:09 AM
Hi,
Is there a way to convert written text-based codes like .cpp into .vi?
Thanks.
03-16-2009 01:20 AM
03-16-2009 01:22 AM
You cannot convert a .cpp file into a VI. There are two possible ways in which you can call external code in LabVIEW.
- You could use Code Interface Nodes (CINs) to access algorithms written in another language. You will need to follow some steps to create a CIN.
Example: Refer to the Multiply using a CIN VI in the labview\examples\cins\mult
- The other common and most used method is to create DLLs in the programming environment and then call those DLLs in LabVIEW using the Call Library Function Node.
Example: Refer to the Call DLL VI in the labview\examples\dll\data passing\Call Native Code.llb
If you have any questions, be sure to search on the NI website or post back.
03-16-2009 01:24 AM
Is this related to this thread?
What exactly you want. Post in specific and also give bit more details in what trouble you are facing. That will help us in guiding you better.
Thanks,
Mathan
03-16-2009 01:34 AM
Hi Mathan,
I have written a programme in C++. I am thinking of creating a GUI for this programme using Labview. I have done previously using Visual C++. I would like to know how I can do it using Labview.
Thanks.
03-16-2009 01:41 AM