LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Live update of command prompt

Solved!
Go to solution

HI,

 

I'm creating an executable whose purpose and to make the creation of a winPE bootable USB key easier.

 

In order to create the key, i need to run several commands with the systemexec.vi. Many of these command take ages to finish so i need to know if the command is still running or not.

 

What would be great is to have a live update of the command prompt. I guess there should be a way to insert the command prompt in a subpanel or another container?

 

Winpe creation.png

 

Best regards

0 Kudos
Message 1 of 5
(3,306 Views)

Hi

 

yes you can : function -> Connectivite -> librairy -> Cmd system

 

I think this is what you are looking for. Tell me if it's ok.

 

EDIT : I'm bad... it's not live. I keep searching

Giuliano Franchetto
Student at the l'Ecole Nationale Supérieure des Mines de Saint-Etienne, cycle ISMIN (FRANCE)
0 Kudos
Message 2 of 5
(3,304 Views)

Hi,

 

thanks for asnwering.

 

Yes, what you explain is how to run a command with labview.

 

This works great but all i can see is a black screen while i want to have what the command returns in live. For the moment, i can just have the standard output of the command once it has finished and not in live.

0 Kudos
Message 3 of 5
(3,301 Views)
Solution
Accepted by peper2001

Try redirecting the standard output to a file, like in this example:

ping 192.168.0.46 > out.txt

If your utility supports redirection, you can read the file content from time to time.

Beware to choose a working directory where your user has write permissions.

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
Message 4 of 5
(3,277 Views)

So neat !

 

I works, thanks pincpanter!

0 Kudos
Message 5 of 5
(3,267 Views)