Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 66755

Get VI ref for LV executable set to allow multiple instances

$
0
0

I have inherited some LabVIEW code, which I'm not inclined to change, that will run as an executable with multiple instances set to true on a standard Windows PC. There could be up to four of these executables running in parallel on one machine. I need to interact with these four executables programmatically, and I was hoping to use VI Server to get and put values into the FP controls. However, the visible title of these instances is not necessarily known as they change their names depending on their state, which includes a floating point numeric (for example "My Software n=1.234")

 

Question: From within LabVIEW (my own executable), how do you get a reference to another LabVIEW executable on the same target when there could be n instances of that executable?

 

Is it possible to get a list of those VIs that are running as an executable? I tried "Application:All VIs In Memory" property but it returns only the VI that the call is inside, and doesn't see the running executable (I'm not surprised).

 

I thought about using Windows calls to retrieve all window titles and parse them for this executable, but that might not work as the numeric in the title changes rapidly, so no sooner than I've worked out the title it'll already have changed and will no longer be valid for Open VI Reference. 

 

I'll continue to try a few other ideas, but would appreciate any input from you smart folk out there :smileyhappy:


Viewing all articles
Browse latest Browse all 66755

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>