LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

System Exec not showing text

Solved!
Go to solution

I'm writing an application perform some programming and testing of a PCBA.

 

To perform the programming i run a windows batch file - calling it with the system exec vi.

 

When i run this in command line i can see what is happening (see attached image)

 

When I call it in labview with System Exec - I just get a White underscore that flashes while the batch file

runs (see attached image), but i do know it runs successfully.

 

I get the same issue when I call a test script to run later in the program.

 

Does anyone know around this?

I'd really like to be able to see what is happening when the program is running.

Download All
0 Kudos
Message 1 of 5
(1,955 Views)

You probably want it like this:

 

LLindenbauer_1-1663834337542.png

 

Add a space after /c

Check https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/cmd for a reference on the cmd switches.

Message 2 of 5
(1,943 Views)

Hi.

 

Thanks for your response.

 

I did try your suggestions but still get the same flashing underscore and nothing else.

 

Many Thanks, 

0 Kudos
Message 3 of 5
(1,934 Views)
Solution
Accepted by topic author Ben911

Then try to slowly work up to it:

 

Try

LLindenbauer_0-1663840916892.png

 

 

Then, create a file test.bat in that folder

 

echo this is a test
timeout /t 5

 and call it:

LLindenbauer_1-1663841089152.png

 

The output should then come up in standard output.

 

If you want to actually see the output in the window, you can try setting the boolean to false:

LLindenbauer_2-1663841237581.png

 

 

Message 4 of 5
(1,921 Views)

That's worked - thank you.

0 Kudos
Message 5 of 5
(1,852 Views)