LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Calling and Controlling an application exe

I have an application (exe) used to configure and calibrate an instrument. The application purpose is basic operation to load an config file and send to the instrument. (it has few controls-buttons and indicator) . We do not have any API or interfaces to the pass or control the exe. I want to call this .exe from LabVIEW and automate the process of (configure and calibrate number of instruments) I do know "Call System exe" function exists. But can we work with such and exe with no APIs? All suggestions welcome or any work around possible.please share.

0 Kudos
Message 1 of 4
(3,146 Views)

Hi vish,

 

But can we work with such and exe with no APIs?

Several options:

- Well, you can start that EXE - and the user has to use it "manually" as before.

- You could try tools like AutoIt to automate that EXE…

- When you have a user/programming manual for that "instrument" you could try to create the same tasks directly in LabVIEW…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 4
(3,138 Views)

Sounds pretty opaque to me.  The absence of a Manual, the identity of the Instrument, and an example of a Configuration File would lead me, anyway, to say "I wouldn't attempt to do this".

 

Bob Schor

0 Kudos
Message 3 of 4
(3,105 Views)

If you are using MS Windows, you can control other exe using Windows API.  You can copy/paste, simulate click, etc...

Take a look this NIWeek 2018 presentation:

UI: Leveraging the Windows API to Extend LabVIEW GUI Capabilities

 

George Zou
Message 4 of 4
(3,087 Views)