LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can I use C code in labview?

Hello, I've got a fairly complicated program I've written in C that requires two doubles to be passed to it and it spits out two integers as a result of a very detailed calculation. Is there a way to have labview call this C function? I've tried searching the NI.com website but all I could find were examples where labview was being compared to C in an attempt to show how they are equal. Any advice/links to relevant information or tutorials would be greatly appreciated.
0 Kudos
Message 1 of 2
(2,717 Views)
You have two possibilities:
 
  1. Compile your C code into a DLL and call it with "Call Library Function Node".
  2. Use the "Code Interface Node".

The LabVIEW Bookshelf (under help) contains a PDF document name "Using external code in LabVIEW". It will probably answer all your questions. Good luck 🙂

0 Kudos
Message 2 of 2
(2,709 Views)