LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Interfacing Microchip ICD3 With Labview.

Then it will connect again and do all the procedure. I just want after initializing.

 

Can you modify the VI I attached

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 31 of 50
(2,112 Views)

Due to the way ICD3CMD works it will always run the connection/initialization towards the ICD3.

You can't have it initialize then wait for additional commands like the IDE does.

 

This shouldn't be an issue tho, even if you program say 100 chips in a row.

0 Kudos
Message 32 of 50
(2,107 Views)

If I want to program 100 chips then each time it initializes and then writes. If you see in theie application first comes

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

Connecting... 

MPLAB ICD 3 detected
Connecting to MPLAB ICD 3...
Firmware Suite Version...... 01.26.56
Firmware type......................PIC18F
MPLAB ICD 3 Connected.
ICD3Err0045:
You must connect to a target device to use

MPLAB ICD 3.

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

 

then after selection of voltage there is no message

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

After import it programm option will be enable

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

After you press program message will comes

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

Programming/ Verify

Successfully

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

 

But in my case all message comes each time I run my program.. How to avoid this?

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 33 of 50
(2,105 Views)

It only works that way in the MPlab IDE, you can't do it that way with labview.

 

Just let it initialize each time, it really doesn't matter and it won't hurt the overall time spent programing 100 chips.

 

see attachment for vi with programming options.

0 Kudos
Message 34 of 50
(2,092 Views)

I just dont want this message appear again and again.
---------------------------

Connecting... 

MPLAB ICD 3 detected 
Connecting to MPLAB ICD 3... 
Firmware Suite Version...... 01.26.56 
Firmware type......................PIC18F 
MPLAB ICD 3 Connected. 
ICD3Err0045: 
You must connect to a target device to use

MPLAB ICD 3.

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

 This is only my concern

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 35 of 50
(2,069 Views)

Let me tell you what is my requirement

 

1. As soon as ICD connected it should display all these message

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

Connecting...
MPLAB ICD 3 detected
Connecting to MPLAB ICD 3...
Firmware Suite Version...... 01.26.56
Firmware type......................PIC18F
MPLAB ICD 3 Connected.
Device ID Revision = 00000004

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

 

2. In all my PIC ICs there is one serial number involved and hence when user will do bar code scanning for that PIC IC only message it should display is 

 

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

Erasing ...
Erase device complete

 

Programming Device ...
Programming/Verify complete

 

 

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

This should come when user will click on both this options otherwise defualt case only programming.

 

 

This is the way MPLAB works but only difference is in that place programming triggeres only when program button is pressed from front panel. In my case that should be triggered only when barcode scanning is done. I know how to scan and trigger the operation. Here after initialization I need to wait untill user scans just like MPLAB application. So my question is when user scans then what parameter I need to pass and how to user system exec.

 

Hope this is clear with you. So my requirement is after initialization it need to wait for user input

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 36 of 50
(2,068 Views)

as i've been trying to say, that's impossible with the ICD3CMD, as there is no way to keep it idle and waiting for more commands.

 

If you don't want it to show the

 

Spoiler

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

Connecting... 
MPLAB ICD 3 detected 
Connecting to MPLAB ICD 3... 
Firmware Suite Version...... 01.26.56 
Firmware type......................PIC18F 
MPLAB ICD 3 Connected. 
Device ID Revision = 00000004

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

each time your only option would be to filter it from the return string.

0 Kudos
Message 37 of 50
(2,020 Views)

Dear Ralok,

                     I aggee with you but tell me when user presses next time then next time do I need to pass same command? If it is so then let me try that

 

 

Will let you and thanks for concern

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 38 of 50
(2,014 Views)

Yes, you have to pass it the same arguments each time.

0 Kudos
Message 39 of 50
(2,007 Views)

I haven't tried yet but one question I got is whether will it not take same time?

 

But let me try it first Smiley WinkSmiley WinkSmiley Wink

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 40 of 50
(2,004 Views)