The example attached to this article consists of an executable that consists of two Controls (X and Y), and adds these values to display on an Indicator (X+Y). The VI that remotely connects to the executable:
- Writes a new value to the X Control.
- Writes a new value to the Y Control.
- Waits a few milli-seconds, to allow the executable to update.
- Reads the new value stored in the X+Y Indicator.
To run this example:
- Ensure that you are using LabVIEW 2020 or newer.
- Open the Access EXE Control.lvproj file.
- Build the application from the Build Specification.
- Modify the application's INI file, as detailed in step 2.
- Run the built application.
- Run the Connect to EXE.vi and test the behaviour when setting new values for X and Y.
Additional Information
Creating VI server settings from the Tools>>Options>>VI Server menu only applies to VIs that are not being run from within a project. If you want to set these settings for a VI within a LabVIEW project, you will need to set these settings through VI Server Property Nodes.
This method allows you to make changes in the VI reference of the executable but not the executable itself. If you would like to modify the controls of the executable you will need to take another approach and use shared variables instead.