LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

system exe.vi

Hi

  I made a labview "hello.vi", using system exe.vi module. When I run , no result come out from standard out, Please help me to find out what I am wrong?In this program, I am using comand line to call python to execute "hello.py". it should print out "Hello World". Thanks

Download All
0 Kudos
Message 1 of 9
(3,350 Views)

Make sure your Working Directory is set to the folder where your python script is.  You might also want to look at the Standard Error output as I have seen functions only output there.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 9
(3,300 Views)

I have another VI  name Sys_exe.vi, this one call another .exe file ( this exe file is created from sumofn.vi). When I run  Sys_exe.vi it executed  sunofn.vi but the standard output from Sys.exe is nothing. Please help me

Download All
0 Kudos
Message 3 of 9
(3,145 Views)

I have a labview "hello1.vi", in this block diagram I am calling another vi by using command line. When I run this vi, standard output is nothing (it should come out"hello world". please help

Download All
0 Kudos
Message 4 of 9
(3,139 Views)

Why do you think having a VI that puts text in a string indicator would cause that same string to be output to a command prompt when you call it using system exec?

0 Kudos
Message 5 of 9
(3,132 Views)

I don't know if this solves it, but it do send a message to StdOut.

Message to StdOut.png

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 6 of 9
(3,096 Views)

Do you know how to fix this VI? I have a project call Vi get the result from this VI call

0 Kudos
Message 7 of 9
(3,086 Views)

LabVIEW is a graphical application which displays data in its window, it is not like an old school DOS program which outputs to the command prompt.  That said, there seem to be some ways that appear to be a hack that can put data to a standard output DOS prompt.  But you'll have to google for that.  When I did, I had some hits, but I don't have the time or desire to test them out.

 

Before you do down this road too far, it is time to ask what are you REALLY trying to do?  Funneling data out of a DOS prompt is so archaic, I'm sure there are much more modern methods to accomplish what your actual goal is.

0 Kudos
Message 8 of 9
(3,083 Views)

If the point of the thread is to call a python script, there's a Call Python node. 🙂

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 9 of 9
(3,067 Views)