LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible work (compile and link wi

thout errors) very well one program written and compiled on Linux with gcc command for C program into Labview ? I know Labview support C codes, but I don't know if support some program done on another operating system, like Linux with other compiler (gcc).Is it possible work (compile and link without errors) very well one program written and compiled on Linux with gcc command for C program into Labview ? I know Labview support C codes, but I don't know if support some program done on another operating system, like Linux with other compiler (gcc). Because in Linux we have different device drivers (/dev/*) to access peripherals, like serial port RS-232. However, can I copy source code from Linux to "Call library Functional Node"
tool ? And work it very well like in Linux before ?
0 Kudos
Message 1 of 3
(2,158 Views)
thout errors) very well one program written and compiled on Linux with gcc command for C program into Labview ? I know Labview support C codes, but I don't know if support some program done on another operating system, like Linux with other compiler (gcc).Hopefully, the differences in the implementations of the language itself would be fairly well documented. Therefore I would suspect that the biggest problem you'll have in this port is when the code starts trying to connect to the outside world--like the serial ports you mentioned.

Personally, if I had documented C code (or at least a reasonable description of what the code is supposed to do) I would say to heck with CINs and just port the application to LV. You probibly won't spend any more time doing a complete port and the result will be more extensible and maintainable that the C ever was (or could ever be). But that's just me and my aversion to doing things the hard way...

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 3
(2,158 Views)
thout errors) very well one program written and compiled on Linux with gcc command for C program into Labview ? I know Labview support C codes, but I don't know if support some program done on another operating system, like Linux with other compiler (gcc).Murilo,

Most of the code can be transferred over with no problems at all. However, any operating system specific code (i.e. /dev/* calls) cannot be copied directly over as they are operating system dependent.
I agree with Mike's assesment that if everything can be done in LabVIEW, it should be as a very high percentage of LabVIEW is cross platform compatible (exceptions are ActiveX, Pipes, Apple Events, etc.).
You may also be interested in LabVIEW for Linux as then you could use your C code without having to cross platforms.

Randy Hoskin
Applications Engineer
National INstruments
http://www.ni.com/ask
Message 3 of 3
(2,158 Views)