From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I control PIC programmer with LabVIEW

Thank you all.

I have posted questions to microchip forum but have not got any reply. however, i think i will use AutoHotKey method to access MPLAB IDE for the calibration setting. Thanks a lot!

 

0 Kudos
Message 31 of 48
(4,722 Views)
Hi,
 
copy the HEX files into your PM3CMD EXE location and just mention FXXXX.hex -M.
 
It works.
 
Also, you may need to check whether you've installed the USB driver as mentioned by Microchip.
 
 
Krishna
0 Kudos
Message 32 of 48
(4,608 Views)

please, does anyone have a complete USB->MPLAB labview solution to show

 

including screen shots of how the drivers/usb ports are all set up ( even in

USBRAW mode)

 

i have read all these replys, followed and implemented the solutions but i am

 

going around in circles. 

 

I am stuck with the USB connection. The command line vi gives a port error

 

and the USBRAW solution does complie with the mplab code...the

 

answer has to to be a mix of the 2...thanking you all from "desperate" 🙂

0 Kudos
Message 33 of 48
(3,954 Views)

Unfortunately, I do not have the MPLAB CD to show you the process, but if you have CD (or from Microchip's website) then try installing the software (MP Lab IDE etc) from it. This automatically installs required drivers.

 

as soon as you connect the PM3 Progremmer to the PC, you'll be prompted to select the USB drivers for the first time. there you can select, automatic search option for the default location.

 

this entire procedure is same as any other USB based device driver installation.

 

For the reported port error - USB port no is 5 according to MP lab IDE. you can check this from the MPLab IDE Communication Port settings. Check whether you correctly mentioned the port no. in the command line code.

 

P.S: you can download the latest MPLab IDE version from Microchip. This ensures any fixes for the previously reported bugs. For e.g. earlier to version 8.X, I faced issue for some command line execution and reported the bugs. It was solved with the next version.

 

i hope you try this and share us your success story Smiley Happy

-Krishna

0 Kudos
Message 34 of 48
(3,948 Views)

Thanks for your prompt reply....a summary

unintsall mplab (  just to go back to base 1)

load mplab ( i have v8.46), connect usb cable, allow drivers to load.

ignore labview/USBRAW/INSTR/BULK etc.

load command line vi ( example above but can simplify)

port id 5...so to read a file ( a sanity check for communication and connection)....

.....exe -5 -PdsPIC33FJ128MC506A -GFc:sample.hex

 

please criticise...thanks

0 Kudos
Message 35 of 48
(3,937 Views)

thank you again finally working .... i am using MPLAB ICD3 which has a couple

of changes to the command line parameters from MPLAB PM3. There is no "1-5" for the communication port,

also i dropped the dsPIC from the product type and that worked  ( not clear and found this in anger). Regards.

0 Kudos
Message 36 of 48
(3,922 Views)

Hi, could you please post the vi for programming PIC through ICD3 using labview?...thanks

0 Kudos
Message 37 of 48
(3,353 Views)
Dear all,

I used the same solution for icd3 via icd2cmd via systemexec. This is working fine on my win xp and win 7 32 bit systems. However on 64 bit systems this isnt working anymore. The script keeps hanging on target connected and is not responding after that message. Anyone experience t
He same issues and have a possible solution for 64 bit systems??

Thanks in advance

Bart bakels
Labview Architect
0 Kudos
Message 38 of 48
(3,185 Views)

I need PIC programming with PICKIT3 or PICKIT2 using labview, let me know how to do it

0 Kudos
Message 39 of 48
(2,209 Views)

Has anyone developed a complete solution to controlling an ICD/PIC with LABVIEW?

 

Thanks

0 Kudos
Message 40 of 48
(1,991 Views)