LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how can I generate C code from vi

I have a complicated VI with several subVIs and I've to create a c code to increase the program speed and transfer rate of data.

This VI is working with a can card to transfer data.

In future I've to implement this code on a micro. 

0 Kudos
Message 1 of 7
(3,768 Views)
The reason for performance trouble is often not Labview but the programmer. I suggest you post your code. Then we may take a look at at it and give you some advice 
Message Edited by Coq Rouge on 05-03-2010 09:48 AM


Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
Message 2 of 7
(3,751 Views)

Unfortunately, it’s too huge to be mailed!

But the attachment is a part of the main VI.

As I noticed before I have to convert it into a C code for implementation on a micro

0 Kudos
Message 3 of 7
(3,721 Views)

poori wrote: 

As I noticed before I have to convert it into a C code for implementation ona micro


 

 
 What is a micro???
 
Are you looking for LabVIEW embedded? 
0 Kudos
Message 4 of 7
(3,710 Views)

Looking into your code reveals some places where you can improve performance. For instance, you can easily remove all variables (ALL! Really!) which will improve performance for sure.

On the other hand, i see the only reason to get C code from this in order to execute the whole application on a uController.

Depending on the uC, you can use the LV Embedded Module.

 

hope this helps,

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 5 of 7
(3,709 Views)

I mean microprocessor!

 

I don't know any about labview embeded, does it convert the vi into a code?

0 Kudos
Message 6 of 7
(3,700 Views)
The code looks relatively good, with the exception of using all those unnecessary Local Variables.  You can wire directly to the indicators.  Plus, why not use the Error Out indicator (cluster) that already exists?
0 Kudos
Message 7 of 7
(3,681 Views)