LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

microcontroller programming using LabVIEW

Solved!
Go to solution
Is it possible to write a code for microcontroller, like 8051, in LabVIEW? if yes, HOW?

Message Edited by pritam on 10-29-2007 02:08 AM

0 Kudos
Message 1 of 12
(7,942 Views)

Hi Pritam,

LV is a Graphical Prog Lang, in which you can "wire" anything Smiley Happy, but NOT "write". Smiley Sad

So, maybe you re looking for something else, or am I missing something ? Smiley Wink

- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 2 of 12
(7,920 Views)

The anwser is No.You have to write code for 8051 by ASM or C51 up to now.

It's true that NI has a embedded moule for Micor processer,but 8051 is not surpported.

陈树学
QQ:276509891 .
EMAIL:CSXCS_366@126.COM
qq群:78561268 80754347 37591940
http://labview.weebly.com/
新书《LabVIEW实用工具详解》已经发售,敬请关注。
0 Kudos
Message 3 of 12
(7,911 Views)

what do you want to do exactly

 

write a program that can download your mahine code into controller

or

Write a LabVIEW program that itself will determine how your controller should function (i.e. use labview instead of assembly or C)

Tushar Jambhekar
tushar@jambhekar.com

Jambhekar Automation Solutions
LabVIEW Consultancy, LabVIEW Training
Rent a LabVIEW Developer, My Blog

0 Kudos
Message 4 of 12
(7,910 Views)

hey... i mean... is there any cross-compiler which can convert .vi cde into .asm so that it can be burned in microcontroller... or any other stuff like that.... (jst like how we do FPGA programming in labview.... compiler converts the labview code into VHDL)

 

 

 

0 Kudos
Message 5 of 12
(7,865 Views)

Pritam,

Maybe the below links should kindle your interest. Smiley Happy

http://zone.ni.com/devzone/cda/tut/p/id/6207

https://lumen.ni.com/nicif/us/demolvportembd/content.xhtml

- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 6 of 12
(7,854 Views)
Hi!
   csxcs_366  is right, and, more in general, with LabView you can someway cross-compile for 32-bit processors, while for 8 bit it's a little bit more difficult (even if possible, generating C code).  8051 is not targetable at all, for what I know. 

   But the question is: why are you willing to target 8051? I think LabView philosophy is opposite than 8051 philosophy, I'd use LabView for more complex architectures....

   Have a nice day!

graziano
Message 7 of 12
(7,854 Views)

Sorry, I forgot you were asking about 8-bit uC. Smiley Sad

- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 8 of 12
(7,849 Views)
well... the thing is i jst hate text based programming.... n is jst trying to find out d way to program a microcontroller by graphical prog. lang.... being specific by labview......
0 Kudos
Message 9 of 12
(7,803 Views)
Pritam,

I do not know of any cross-compiler for the 8051, but it is certainly possible to write one. Back in the LV 3 or LV 4 days I started to write a 6502 cross-assembler in LV. The project was cancelled before I completed it, but I had done enough to know that it could be made to work. It requires a lot of effort and you must know the details of the target processor assembly language and machine code. I was taking a text file with the assembly language program and parsing it. It was not an attempt to convert LV code to assembler to binary.

Lynn
0 Kudos
Message 10 of 12
(7,776 Views)