LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Command line arguemts expansion at run time

Hello all,

                I am programming PIC IC using command line and passing arguments. In that If I pass the complete syntax then it does all the process and ends with programming. Now I do have a requirement in which I need to program multiple ICs. 

 

My command line syntax is 

 

cmd /c ICD3CMD /P18F26K22 /E /M /F"D:A.hex"  -- This will do all the job from starting to end.

 

Here programming is done using argument M/F"D:A.hex"

 

When I need to program multiple ICs then I only need to pass M/F"D:A.hex" as arguments to system exec. How to achevie 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 1 of 31
(3,340 Views)

Hi Ranjeet,

 

delete the other command options to pass just "M/F"D:A.hex" as argument... 😄

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 31
(3,323 Views)

This is not valid. I tried.

--------------------------------------------------------------------------------------------------------
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 3 of 31
(3,315 Views)

Hi Ranjeet,

 

"this is not valid" doesn't correspond to any LabVIEW error message I heard of. Can you elaborate?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 4 of 31
(3,313 Views)

I also didn't heard Smiley Very Happy Smiley Very Happy Smiley Very Happy..This is not considered with valid command line syntax maybe bacause we need to pass cmd /c and all.

--------------------------------------------------------------------------------------------------------
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 5 of 31
(3,304 Views)

Hi Ranjeet,

 

M/F"D:A.hex" is no valid command line syntax.

 

So again: what do you need to achieve?

 

You can read about proper command line syntax in MS help for the cmd tool.

You can read about correct syntax of your programming tool in it's manual.

 

What's the problem here?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 31
(3,298 Views)

@GerdW wrote:

Hi Ranjeet,

 

M/F"D:A.hex" is no valid command line syntax.

 

So again: what do you need to achieve?

 

You can read about proper command line syntax in MS help for the cmd tool.

You can read about correct syntax of your programming tool in it's manual.

 

What's the problem here?


the problem here is in the manual there is no such command mentioned. spoke to them and waiting from last 5 days. I goolgled about expanding in RUN time but not found anything helpful.

 

Can you have any link? 

 

--------------------------------------------------------------------------------------------------------
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 7 of 31
(3,292 Views)

Hi Ranjeet,

 

when it is a problem of the 3rd party software you're using you should ask the supplier of that software.

I don't use (or even have installed) that software you mentioned.

 

When you have problems using LabVIEW you can ask here in this forum...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 8 of 31
(3,288 Views)

@GerdW wrote:

Hi Ranjeet,

 

when it is a problem of the 3rd party software you're using you should ask the supplier of that software.

I don't use (or even have installed) that software you mentioned.

 

When you have problems using LabVIEW you can ask here in this forum...


I am calling 3rd party software using system exec.vi. Here I need to pass some of the argument using system exec.vi. Hence this is my problem of labview. Just need to pass the argument in RUN time. 

--------------------------------------------------------------------------------------------------------
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 9 of 31
(3,284 Views)

Hi Ranjeet,

 

so you need to send new arguments to an already running executable, that was called with SystemExec?

 

I remember some kind of Pipe mechanism, maybe in the OpenG libraries, that would be useful for such tasks. Your problem is to supply new arguments over StdIn of the CMD shell...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 10 of 31
(3,281 Views)