02-27-2014 10:48 AM
Hi all,
I'd like to know that if I have a C code with some input and output, how can I embed my C code into LabVIEW?
I did some research and find out there's a CIN (code interface node), however it's no longer supported at least from LabVIEW 2010?
I'm using LabVIEW 2012 on Windows 7, so anyone has ideas on this?
Thanks for pointing me to the right directions!
02-27-2014 10:50 AM
Is it compiled into a DLL? There is a "Call Library Function Node" that you can use to input and output to a DLL.
See this KB article http://digital.ni.com/public.nsf/allkb/DCB90714981A1F148625731E00797C33
02-27-2014 10:54 AM
I know how to play with .dll with the call library node, however I'm interested to know how a C file can be used in Labview
02-27-2014 11:00 AM
02-27-2014 11:05 AM
Thanks for pointing that out. So how can I use a C file in LabVIEW?
02-27-2014 11:24 AM - edited 02-27-2014 11:24 AM
@Z.Wei wrote:
Thanks for pointing that out. So how can I use a C file in LabVIEW?
You can't. You can call a .dll. The "formula node" has some "C like" syntax for calculations and logic, but those are your options.
02-27-2014 11:51 AM
03-03-2014 01:39 PM
@Z.Wei wrote:
@BowenM wrote:
@Z.Wei wrote:
Thanks for pointing that out. So how can I use a C file in LabVIEW?
You can't. You can call a .dll. The "formula node" has some "C like" syntax for calculations and logic, but those are your options.
Thanks. Probably I need to compile it to a dll before using it. 🙂
Not just probably! It's the most straigtforth and simple possibility.