LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Prompt out window position

Solved!
Go to solution

Hi,

 

I am using labview system exec.vi to execute a exe file, thus there will be a program window prompt out later on.

 

The .exe file is not created by vi.

 

My question is, how can i define the window position for the prompt out program?

 

Thanks.

0 Kudos
Message 1 of 5
(3,256 Views)

Hi there TanTan,

 

Let me ask you a few questions first to get us going in solving your problem.

My first question would be how do you call out the .exe file from LabVIEW? What particular LV function are you using?

Another one is, if it was not written in LV, what language was used for it? VIs have a property that defines where it would be called at runtime. I would think that your development environment for your .exe file also has this option that you can define even before compiling/building the source code into an executable file. Unfortunately, if the implementation is not done using NI software then there is little I could do to help you out. Thank you.

Best Regards,
Gerrald Mateo
Applications Engineer
National Instruments
0 Kudos
Message 2 of 5
(3,213 Views)

Hi Gmateo,

 

I use LV System Exec.vi to call out the .exe file. The .exe file is not written by LV. Due to this .exe file is created by 3rd party, i do not have the source code to define the prompt out window position.

 

Thus I would like to know if LV able to solve the problem.

 

Thanks.

0 Kudos
Message 3 of 5
(3,192 Views)
Solution
Accepted by topic author TanTan

Hi TanTan,

 

I believe the APIs here can help you with your problem: https://decibel.ni.com/content/docs/DOC-2030

If the exe file you want to manipulate is a windows application then the functions in the link above can help you set the window position after calling the exe file. However, unlike what you want, this would be set after running the application and not at runtime.

Best Regards,
Gerrald Mateo
Applications Engineer
National Instruments
0 Kudos
Message 4 of 5
(3,180 Views)

Hi gmateo,

 

Yes this link has solved my problem.

 

Thanks for your help and have a nice day~Smiley Tongue

0 Kudos
Message 5 of 5
(3,147 Views)