LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Make so that when I'm using System Exc labview doesnt open another cmd

So Im actually creating a Program that would create a folder with a command prompt and then give you as feedback (as Standart output with echo) that the folder have been created (this is a test program I wrote to learn how to use cmd with Labview).

So my problem is System Exc open another cmd instead of sending the message / prompt to the cmd that is already open that I used to send the original prompt.

The prompt that that opens the program and create the folder is --/On.

Any idea how to do this?

0 Kudos
Message 1 of 5
(2,386 Views)

Hi max,

 

So my problem is System Exc open another cmd instead of sending the message / prompt to the cmd that is already open

Because you asked LabVIEW to start another cmd shell…

 

LabVIEW is not a command line tool, but it uses the full graphical interface of Windows. So it is very hard to send messages back to the CMD shell where you started your LabVIEW tool.

There have been discussions on this topic just some weeks ago, so you might try the search feature of this board!

 

Btw. why do you attach images of your code instead of the code? (Why not attach snippets instead?)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 5
(2,383 Views)

Here is the vi.

I have been searching for that topic but sadly I didn't find one. but hey now at least I know there is one. I'll continue looking for it. if you suddenly remember please tell ne 🙂 

0 Kudos
Message 3 of 5
(2,369 Views)

It may be possible to do this by accessing the CMD prompt thru .NET.  I've suggested this several times on this board but have never used it.  So you'll need to try it out for yourself.  I've attached a link to how this is done in C#, should be similar to this in LabVIEW. 

https://stackoverflow.com/questions/691716/running-cmd-commands-via-net

aputman
0 Kudos
Message 4 of 5
(2,366 Views)

Try this:

 

BTW:  I haven't tried it because I don't understand what it's supposed to do

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 5 of 5
(2,342 Views)