Showing results for 
Search instead for 
Did you mean: 

Can I use LabVIEW to program AVR microcontroller

Dear Sir!


I am Trying to convert my LabVIEW program into C using C code generator to burn it in AVR microcontroller but it looks that LabVIEW Does not support AVR microcontroller.


I am trying to do it with evaluation version (Embedded ARM Module) to check its efficiency and it appears to be useless. Please guide me if I am not doing it right.





Syed Shariq Ehsan

0 Kudos
Message 1 of 11

Hey Syed Shariq,

The list of supported ARM controllers for the Embedded Module are listed here: If you are not using a Tier 1 Device (listed here: then you will need follow the porting guide to get everything set up correctly for your ARM target:  Is there something specific with the embedded module you are having issues with?

Kevin Fort
Principal Software Engineer
Message 2 of 11



I am also interested about programing an AVR microcontroller with labVIEW, actually an ST Microelectronics ATmega328, I can't find it in the list.


This Microcontroller, from my understanding, not an ARM, is this task possible?




0 Kudos
Message 3 of 11



I think some of you are confusing AVR (Atmel 8-bit architecture) and ARM (32-bit architecture).



0 Kudos
Message 4 of 11



I think some of you are confusing AVR (Atmel 8-bit architecture) and ARM (32-bit architecture).



0 Kudos
Message 5 of 11



Yes I understand that they are different my question is, could AVR be programmed trough labview?



0 Kudos
Message 6 of 11

I think you cannot generate code directly for this family of microcontrollers, however you should take a look at this, it's a toolkit for interfacing Arduino which is based on ATMega.



0 Kudos
Message 7 of 11

No this is not really possible. The generated code makes a lot of assumptions about the target CPU, one of them is that it is a fully 32 bit capable CPU. There are several other possible pitfalls.


You could of course try to generate the C code and then modify it to work on your system anyways, but that is an unmaintainable solution. Besides that the generated C code is quite resource hungry (which likely will not even be possible to create an executable object module for your 8 Bit CPU), you do not want to modify intermediate code at all, as that will make it almost impossible to make modifications later on to the VI source, and get it compiled again into a C code module.

Rolf Kalbermatter
My Blog
0 Kudos
Message 8 of 11

To give you an idea,due to significant LabVIEW overhead, even supported ARM based boards run very inefficiently with LabVIEW Embedded when compared with traditional C/C++ VxWorks code on the same hardware. The only advantage LabVIEW had was speed of programming.


Trying to get any 8/16 bit controllers is not possible with current LabVIEW, I also don't see that happening any time soon.


Back in early 2000's some Isreali company had made a tool similar to LabVIEW for graphical programming of 8 bit microcontrollers called "GRAPE", here a link on that:


However, I don't believe they were successful at launching the product - I had a demo version from them back then but I couldn't tell if it actually worked.  In any case, LabVIEW just won't work on 8bit micros.




BatchTest Corp.

NI Alliance Partner


New Controls & Indicators made using vector graphics & animations? Click below for Pebbles UI

0 Kudos
Message 9 of 11

OK, Understood,


I'd better start C coding for this project then



0 Kudos
Message 10 of 11