LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to provide a input to an application

Hi,

I am loading a application using System Exec.vi.

Is it possible to provide a input to the same while loading.

For example if the application has control 'IP address' I would like to set the IP address while locading the application.

The application is in .exe format.  

Thanks,

Bharath

0 Kudos
Message 1 of 6
(2,686 Views)

Look for a property node for the Application class that is called Command Line Arguments.

0 Kudos
Message 2 of 6
(2,679 Views)

Also watch the build specification for the executable.  There is an option somewhere in there for accepting command line arguments.  Make sure that is enabled.  Then in your code, you can use the Application->Arguments property.


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 3 of 6
(2,646 Views)

Hi,

Thanks for update.

I am trying to open RT Console View programattically using System Exec.vi

upon running I am getting the Console view window. 

I am looking to provide input for Target Machine/IP dynamically.

Thanks,

Visuman

 

Download All
0 Kudos
Message 4 of 6
(2,618 Views)

You originally asked for an input while it was loading.

 

Now you say "dynamically" and I assume that means when it has already loaded and while running.

 

There is no direct way to do that.  Are you sure there isn't another way to do what you want to do?  Rather than trying to create a hack to work with an existing executable, it is probably better to program that functionality directly in your LabVIEW application.

 

One thing you could try to do is manipulate the executable's  window through a program like AutoIT.

0 Kudos
Message 5 of 6
(2,613 Views)

Hi,

Requirement is same.

Need to provide the IP Address input while Console View is loading.

Its not dynamic.

Thanks,

Visuman

0 Kudos
Message 6 of 6
(2,591 Views)