LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
0 Kudos
ATE_Dude_22

Is there a way to have LabVIEW produce "C" code that could be used in an embedded application

One of the many attractive things about LabVIEW, is the fact that if you can think logically, most likely, you could write LabVIEW code. However, there are lots of coding opportunities in the world, that require code that is developed in C or C++, especially products that use embedded SW.

 

Since "G" is based upon "C", I was wondering if it would be feasible to create a development tool that would allow the user to develop in LabVIEW, but also convert or create equivalent "C" or "C++" code that could could literally be inserted into a program. I've used the .dll creation utility for C developers to use in various "test" type applications, but have yet to find a way to use that method constructively for embedded projects.

8 Comments
altenbach
Knight of NI

.

There is the LabVIEW C generator. Is that what you are looking for?

 

> Since "G" is based upon "C", I was wondering ...

 

The LabVIEW compiler compiles the diagram directly, it does not generate C code (See e.g. this article). So G is not really based on C, I don't even know what that means.

 

Some related discussions:

generating C code from Labview

Conversion of LabVIEW code into C code

how can I generate C code from vi

MaryH
Member
Status changed to: Already Implemented
 
vitoi
Active Participant

We have to invent a new term for a product that exists, but is outside the price range of mere mortals. Let's call it opulenceware.

FabiolaDelaCueva
Active Participant

Wish the already implemented solution would actually work. I couldn't even get the shipping example to work, see here:

 

http://forums.ni.com/t5/LabVIEW-Embedded/Can-not-get-example-to-work-after-following-instructions-gi...

For an opportunity to learn from experienced developers / entrepeneurs (Steve, Joerg, and Brian amongst them):
Check out DSH Pragmatic Software Development Workshop!

DQMH Lead Architect * DQMH Trusted Advisor * Certified LabVIEW Architect * Certified LabVIEW Embedded Developer * Certified Professional Instructor * LabVIEW Champion * Code Janitor

Have you been nice to future you?
vitoi
Active Participant

The LabVIEW C Generator is not implemented and does not exist.

 

If anyone thinks otherwise, can you please supply the product number and price (US price will do).

 

By my reckoning, if a product does not have a part number and a price, it does not exist.

RavensFan
Knight of NI

NI LabVIEW C Generator

 

It says to contact NI for pricing.

Darin.K
Trusted Enthusiast

> It says to contact NI for pricing.

 

Non-google translation:  If you have to ask, you probably can not afford it.

vitoi
Active Participant

Mmmm ... this product is advertised as:

  • Generate ANSI C code from LabVIEW VIs
  • Compatible with 8-, 16-, and 32-bit microprocessors
  • Use with any embedded OS or barebone

Let's face it, if you have the skills to integrate the LabVIEW generated C code into a microcontroller embedded OS or barebone, you have good C skills. What's more, you will need to write some C code to write or call device drivers and put together the framework. So the only way to use the LabVIEW C Generator for its advertised application is to also write C code and have good C skills. Why program in LabVIEW and C when you can program all in one language (C) in one development environment and get more efficient code. And without having to buy something I "probably can't afford". I must be missing something here.

 

Is there anyone, anywhere, that is using the NI LabVIEW C Generator?