From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

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,329 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,321 Views)