ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

C-Code based on a VI

Hi,
I"m new in LabView and I have a general Question.
Can I design a VI and generate C-Code based on this VI?
My aim is to generate C-Code and implement it on a MicroControler.
Which NI Tools do I have to use?
LabView / LabWindows / LabView Embedded Module?
 
Thanks a lot,
Thomas
 
0 Kudos
Message 1 of 7
(3,157 Views)
Sure you can generate C code based on a VI....

Just not automatically...Smiley Happy

LabVIEW code is compiled code. You can't translate it into C automatically. You will need to rewrite the code yourself in C.

Of course, the question to ask is: why do you need to generate C code from the LabVIEW code? If it works in LabVIEW, what's to gain?
0 Kudos
Message 2 of 7
(3,147 Views)
We already have a big LabView Testsystem for testing electronic control units. So we have a lot of testcases (VIs) which can run automaticaly. What I have to find out is, if we can implement these existing testcases (maybe with some small changes) in an microcontroler to get a mobile testsystem...
0 Kudos
Message 3 of 7
(3,143 Views)

Sounds like you need LabVIEW Embedded.

Message 4 of 7
(3,133 Views)
I agree. Forget the conversion to C unless it's for other reasons, like a business mandate or something.
0 Kudos
Message 5 of 7
(3,114 Views)
Actually, it's my understanding that the embedded module does convert the LabVIEW program to C. Not all of the regular LabVIEW functions are supported though.
0 Kudos
Message 6 of 7
(3,106 Views)
Hey, you're right. How about that! For what Thomas is doing, as it's specific to a microcontoller it will probably work, though you wouldn't be able to use it to perform general LabVIEW --> C conversion.
0 Kudos
Message 7 of 7
(3,094 Views)