11-19-2010 05:52 PM
Hi all,
I am new to PIC programming. I have experience in using labView to do data aquisition and automated test.
I am wondering how to use LabView to program a PIC microcontroller and how to do data communication between PIC and LabView. Is it possible?
Thanks
11-20-2010 04:18 AM
With RS232 as the most simple alternative. You can both communicate and program a PIC18F chip with UART onboard. I think you can find code for a RS232 boot loader on the Microchip site. But this will require that the boot loader code is pre programmed into the chip. So it is a chicken and egg paradox 😉
11-20-2010 10:51 AM
You cannnot program a PIC directly from LabVIEW. You need an environment (C compiler or assembler) that can target the PIC. Even if you use the LabVIEW C Generator (expensive), you still need a C compiler and the appropriate hardware to program the PIC.
Once you do have code running on the PIC, you can use a serial connection to communicate between the PIC and LabVIEW, but the PIC code needs to be written to allow serial communication.
11-20-2010 11:12 AM
Hi, i would like to add on that, Even if you get the boot loader thing done( lots of jdm programmers available), you will need to convert labview generated C in to assembly for PIC18 and as far as i know no software like that exists. You can always write your own compiler(taken that you are capable of doing it, dont think you would want to do that). Its better to start using languages built for use with the PIC. If you have decided on C than you get numerous choices such as C18, Mikro C, Boost C etc.
*Guy who has worked with 18Fs for 1.5 years*
11-20-2010 12:57 PM
@wond3rboy wrote:
Hi, i would like to add on that, Even if you get the boot loader thing done( lots of jdm programmers available), you will need to convert labview generated C in to assembly for PIC18 and as far as i know no software like that exists. You can always write your own compiler(taken that you are capable of doing it, dont think you would want to do that). Its better to start using languages built for use with the PIC. If you have decided on C than you get numerous choices such as C18, Mikro C, Boost C etc.
*Guy who has worked with 18Fs for 1.5 years*
Yes that is correct. I was unclear. You may if put some Effort into it. Create some tools in Labview. That you can use to transfer a hex file with a program to a pic18f chip. Using the bootloader approach. But you will not be able in any way to use Labview. For creating code for your 18f chip
02-12-2011 04:53 AM
hello
Is there any specific way to write any thing to the PIc microcontroller .....like some command.....as I just want to send ' 2' to the pic but it is not getting it ...because if it would then it sureluy should do the specif job defined to it...
best regards
ali shaheen
02-12-2011 10:19 AM
duplicate post. Please don't post the same question in multiple places. It just irritating.
02-18-2012 04:47 AM
Sir,
Suppose I have two ports name PORT1 and PORT2. Now the ports status will change by the following way:-
PORT1 PORT2 COMMENT
02-21-2012 09:31 AM
Sumanta,
What kind of microcontroller are you using? Currently we support ARM processors. If you would like to learn more here is the link.
http://www.ni.com/labview/arm/
We also have a toolkit for Arduino that allows you to control the microcontroller from within LabVIEW. You do still need to load a program onto the controller that opens up the serial port but from there you can use LabVIEW to control it. This isn't actually programming the Arduino though, it basically allows you to use the Arduino in a similar fashion to our DAQ devices.
If you are using a PIC, like everyone else stated this isn't directly supported. You could do it yourself but unfortunately we don't have a method to accomplish this currently.
02-22-2012 12:36 AM
Hi,
I want to implement a logic in PIC18F2455 with LABVIEW platform. the logic is as follows -
Suppose I have two ports name PORT1 and PORT2. Now the ports status will change by the following way:-
PORT1 PORT2 COMMENT