LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Displaying command line window in a tab

I have to display a graphics screen of a simulator that is run through a batch file, in a tab. Is it possible? If yes how might I do so?

 

Thanks for you time!

 

 

0 Kudos
Message 1 of 11
(3,711 Views)

Can you provide more details on:

"graphics screen of a simulator that is run through a batch file"

 

Also...

 

Is the simulator an application?  Running on which OS?  Which version of LabVIEW are you using?  How is it called from the batch file & why?  If an application, what "hooks" (API) are available..  Does it need to be called from a batch file?

 

R

Message 2 of 11
(3,694 Views)

Thanks for the reply.

Yes simulator is an executable. It is running on WindowsXP. I am using LabVIEW 8.6. It is called from the batch file because it requires some command line arguments like screen size, files to read data from etc. I am not sure, but I think api hooks might not be available. It was coded using some .Net language (most probably C#) using VASP controls (its a flight simulator). And yes it must be called from whitin a batch file because it is expecting some command line arguments (if they can be passed to it using some other mechanism then I suppose it would (at least theorotically) work.

0 Kudos
Message 3 of 11
(3,681 Views)
Have you tried the System Exec VI? That works just like the command line window. How is that different than what you are trying to do?
Vince M
Applications Engineer
0 Kudos
Message 4 of 11
(3,643 Views)
System Exec is fine. I can use it to replace batch file. But how do I show the screen that results in a LabVIEW VI's tab? That, my dear friend, is my predicament.
0 Kudos
Message 5 of 11
(3,640 Views)
By "screen that results" I assume that you mean the cmd.exe window. If this is what you mean than this is not going to be possible. LabVIEW is not able to contain executables. If you want the window to stay open you can set the wait until completion input to F so the window stays open. The System Exec VI is not equivalent to the cmd.exe but is more like the run window that comes up in windows.
Vince M
Applications Engineer
0 Kudos
Message 6 of 11
(3,621 Views)

You might be able to capture the command line window data through Windows API or ActiveX and display the image on your front panel.   

 

Attached is what it would look like, though it is just a mock-up.

 

 

>

"There is a God shaped vacuum in the heart of every man which cannot be filled by any created thing, but only by God, the Creator, made known through Jesus." - Blaise Pascal
Message 7 of 11
(3,613 Views)

Thanks vt92! Your suggestion might work for me. How did you do it? Can you, kindly, attach the VI, so that I may get the hang of the code that you used for the graphic you have attached with your reply.

Thanks in advance.

Take care and have a very pleasant day!

0 Kudos
Message 8 of 11
(3,598 Views)
Thanks seVEMes! for clarifying the issues.
0 Kudos
Message 9 of 11
(3,597 Views)

Is your problem solved yet? If not take a look at this page http://www.labnol.org/software/tutorials/copy-dos-command-line-output-clipboard-clip-exe/2506/

It might help you

By using a property node you can copy content from clipboard



Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
Message 10 of 11
(3,580 Views)