LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

can I run c code written for an embedded application in Labview?

I have code written in c for an embedded application.  I would like to call this function in Labview.  I have .c and .h files.  I do not have .dll files.  Is there a quick and dirty way for me to call the .c files in labview so that the logic can be used to interface with NI hardware?

0 Kudos
Message 1 of 4
(2,416 Views)

You will need to create a DLL and use Call Library Function to call the DLL.

0 Kudos
Message 2 of 4
(2,408 Views)

I kinda suspected that.  does ni have anything in their bag of tricks to do that?

0 Kudos
Message 3 of 4
(2,405 Views)

Well, they have LabWindows, if you want to buy that. But you can get free compilers out there. For example, you can use the free version of Visual Studio: https://decibel.ni.com/content/docs/DOC-14564

0 Kudos
Message 4 of 4
(2,396 Views)