LabVIEW

cancel
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.

 

 

Regards,

 

Syed Shariq Ehsan

0 Kudos
Message 1 of 11
(10,402 Views)

Hey Syed Shariq,

The list of supported ARM controllers for the Embedded Module are listed here:http://www.keil.com/dd/. If you are not using a Tier 1 Device (listed here:http://zone.ni.com/devzone/cda/tut/p/id/7066) then you will need follow the porting guide to get everything set up correctly for your ARM target:http://zone.ni.com/devzone/cda/tut/p/id/6994.  Is there something specific with the embedded module you are having issues with?

Kevin Fort
Principal Software Engineer
NI
Message 2 of 11
(10,376 Views)

Hi, 

 

I am also interested about programing an AVR microcontroller with labVIEW, actually an ST Microelectronics ATmega328, I can't find it in the http://www.keil.com/dd/ list.

 

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

 

Thanks, 

 

0 Kudos
Message 3 of 11
(9,516 Views)

Hello,

 

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

 

Regards.

0 Kudos
Message 4 of 11
(9,507 Views)

Hello,

 

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

 

Regards.

0 Kudos
Message 5 of 11
(9,507 Views)

HI,

 

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

 

Thanks

0 Kudos
Message 6 of 11
(9,485 Views)

I think you cannot generate code directly for this family of microcontrollers, however you should take a look at this http://sine.ni.com/nips/cds/view/p/lang/en/nid/209835, it's a toolkit for interfacing Arduino which is based on ATMega.

 

Regards.

0 Kudos
Message 7 of 11
(9,473 Views)

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
(9,464 Views)

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:

 

http://www.design-reuse.com/news/3047/first-commercial-version-grape-embedded-system-development-too...

 

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.

 

-DP

 

BatchTest Corp.

NI Alliance Partner

--------------------------------------------------------

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


0 Kudos
Message 9 of 11
(9,451 Views)

OK, Understood,

 

I'd better start C coding for this project then

 

Thanks,

0 Kudos
Message 10 of 11
(9,437 Views)