05-28-2006 04:16 AM
05-28-2006 08:26 PM
The easiest approach is build a DLL module with your C++ codes, then utilize it through the Call Library feature of LabVIEW. This feature allows you to call almost any DLLs outside.
http://zone.ni.com/reference/en-XX/help/lv/71/glang/Call_Library_Function/
Although LabVIEW has another feature - CIN, which allows to embed C code into LabVIEW VI, I believe C++ is not supported.
http://zone.ni.com/reference/en-XX/help/lv/71/glang/Code_Interface_Node/
I recommend DLL approach.
Alternatively, if your RS232 communication is so simple as if communicating with a T&M instrument without any special trick, NI-VISA and/or NI-Serial VI functions can also be used instead of your own Borland/Turbo C++ based I/O routines.
05-29-2006 03:24 AM