LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Command line arguemts expansion at run time

Hi 

--------------------------------------------------------------------------------------------------------
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 21 of 31
(1,327 Views)

When I use command

 

C:\Program Files\Microchip\MPLAB IDE\Programmer Utilities\ICD3\ICD3CMD -b -p18f26k22 -v5 -e -m -f"D:\hex_file.hex"

 

from command prompt then it is working reliabely. But when I am passing through system exec then there is no error but no message also comes out.

 

--------------------------------------------------------------------------------------------------------
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 22 of 31
(1,318 Views)

Hi GerdW,

                     I am able to program but now I am facing some problem

 

1. When I set wait until true then output will be available only after completion or when user stops the application

2. If I set wait until complete false then output comes parallly in command prompt but not availbe in labview standard output.

 

This is as mentioned by help page but I need to display the message in labview standard output parallely.

 

How to acheive 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 23 of 31
(1,302 Views)

Hi Ranjeet,

  maybe this thread can help you.

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 24 of 31
(1,298 Views)

This is what I was looking for but how to do 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 25 of 31
(1,295 Views)

It's written in the thread's solution. Did you read it?

I guess you are able to read a text file by code.

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 26 of 31
(1,291 Views)

I read it. but my doubt was if I want to create the installer for this application then I need to enter IP address for all the PCs. 

 

Will ping<IP ADD> A.txt will read all the data of file A.txt. What will be path of text file and from where I need to call this PING?

 

Do you have any example for that?

--------------------------------------------------------------------------------------------------------
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 27 of 31
(1,286 Views)

Your interpretation is too literal. PING was only an example of a command line application generating text to the standard output.

Replace PING with your ICD3CMD utility with the proper command line. Try redirecting its output to a file manually from the command prompt.

If it works this way, you will be able to implement standard output catching by code.

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 28 of 31
(1,282 Views)

I though you already tried this..Will try 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 29 of 31
(1,275 Views)

I tried but unfortunately this is not working

 

C:\Program Files\Microchip\MPLAB IDE\Programmer Utilities\ICD3\ICD3CMD -b -p18f45k22 -v5 -e -m -f"D:2003.hex" > D:\path1.txt

 

I googled about redirecting and they say > is the command but not succedded.

--------------------------------------------------------------------------------------------------------
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 30 of 31
(1,264 Views)