LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can LabView operate C code?

I would like to know if its possible to operate the C code from a program in a LabView VI.  I have a program written in C but I don't program in C and I want LabView to be able to read the code and operate as if it was written in LabView.  The C program has no .dll's and I wouldn't know how to make them. Currently I have LabView 7.1 and will upgrade to LV8.5 Developer Suite once it gets here.  Is there any chance for me?
 
 
Ted
0 Kudos
Message 1 of 4
(2,687 Views)
You might want to look at this.
0 Kudos
Message 2 of 4
(2,683 Views)

Hmm, I could be way off base here since I am not a C programmer.

But I've always wondered what I could do in a similar situation. I thought that maybe since you have Developers Suite which has LabWindows/CVI could one just open up the code in that and create a dll which could be called with LabView?

Could someone weigh in on this idea?

Now Using LabVIEW 2019SP1 and TestStand 2019
0 Kudos
Message 3 of 4
(2,672 Views)
It all depends on what you've got and what you're trying to accomplish. My own personal preference is to steer away from interpreters because they're inherently slow. Thus, I would compile the code into a DLL. Depending on what the code does, it may be easier to compile it into an executable and simply call it using System Exec. Even if you don't have the Developer Suite there are a number of free C compilers out there. Even from Microsoft.
0 Kudos
Message 4 of 4
(2,668 Views)