ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

incorporating Microcontroller debugger in Labview

Hi,
 
Is it possible for LabVIEW to handle a debugger or programmer of a microcontroller using USB?
I would like the Labview to program the microcontroller using programmer automatically. The programmer can be controlled by USB.
I would also like to know whether LabVIEW can handle softwares used for writing program codes for the microcontroller.
 
Thanks,
Sail
0 Kudos
Message 1 of 20
(5,814 Views)


Sail wrote:
Is it possible for LabVIEW to handle a debugger or programmer of a microcontroller using USB?

It is possible, although could be a little difficult. You can use the dll files, to do that.
Another option: Some programmers have exe files, you can call.


Sail wrote:
I would also like to know whether LabVIEW can handle softwares used for writing program codes for the microcontroller.

No, Labview is a programming language. It can not compile a microcontroler program directly. (if you mean that)
Message 2 of 20
(5,797 Views)

Thanks.

If I can use the case 1. trying to use .exe files of programmer. Will I be able to program the microcontroller after incorporating the programmer into LabVIEW?

0 Kudos
Message 3 of 20
(5,784 Views)
Yes.
Which MCU do you use?
0 Kudos
Message 4 of 20
(5,769 Views)
I am planning to use PIC microcontroller
0 Kudos
Message 5 of 20
(5,750 Views)

Good luck.. I don't know if this, is possible with PIC.

I use Atmel AVR...

 

0 Kudos
Message 6 of 20
(5,740 Views)
Thanks for your help on this and will try out on how to interface PIC's programmer into LabVIEW
0 Kudos
Message 7 of 20
(5,730 Views)

Hiya Snail, could I direct you to the following forum post. Hopefully this will give you some further pointers.

http://forums.ni.com/ni/board/message?board.id=170&thread.id=280862&view=by_date_ascending&page=2

Rich Roberts
Senior Marketing Engineer, National Instruments
Connect on LinkedIn: https://www.linkedin.com/in/richard-roberts-4176a27b/
Message 8 of 20
(5,715 Views)
I was able to use the Microchip PM3 to program a MCU using LabVIEW 7.1. The Microchip IDE included a separate programmer utility called PM3Cmd. I was able to call this program using SystemExec. We had a test system that had to load test firmware into the product for test and then load production firmware afterwards. You just need to have a compatible hex file stored on the hard drive. I know that this application is picky (requires the full memory map, including empty areas). It will show a command window as well, which MUST be the top-most window. If another program has the focus, it takes forever to program the device via USB. It is a quirky program to work with, but it gets the job done.
Message 9 of 20
(5,708 Views)

Dear OlderJohn,

 

Could you please post that vi. This will help me now and also somebody else later. Thanks a lot in advance.

 

Mathan

0 Kudos
Message 10 of 20
(5,397 Views)