LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using C to manipulate data aquired from the serial port.

I have written some code using C++ which I want to put into a CIN in LabView. The code is to manipulate some data read in from the serial port using the InPort.vi. I would like to know if I must include any additional C++ code in order to read in the data - i.e. because the data will be inputed via the serial port and not the keyboard (as it is with my previous experience of writing C++ code).
0 Kudos
Message 1 of 2
(2,357 Views)
If you bundle your C++ code into a CIN, you will be passing the data to it through a terminal just like any other LabVIEW VI. You will have to modify the code to read the data from the input LabVIEW data structure. Beyond that, the CIN won't care where the data came from originally.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 2
(2,357 Views)