02-01-2013 09:51 AM
Trying to get control values from a running exe
Modified an existing NI example to use new method.
Code runs without error. Control names are returned. But data is always zero.
LabVIEW Help indicates that data should be returned. But elsewhere I read that this may no longer be possible: http://digital.ni.com/public.nsf/websearch/7DA6B2904E33E59386256ADF006512BA?OpenDocument
Is this a bug with this method? Should it be providing control data? Is there just a setting in VI Server I change to get control data?
Solved! Go to Solution.
02-04-2013 12:39 PM
Hi Patrick,
You're correct that this functionality does not exist in the latest LabVIEW edition so doing this with an .EXE will not work. However, I believe that you are getting the names, zeros, and no errors because your VI reference is actually calling the wrong VI. I believe it is calling the VI that you did not turn into an executable because the file path ends in “.VI” instead of “.EXE”. This means the program “call_exe” is calling a your exe_vi.vi not the executable and since the exe_vi.vi is not running, then you will receive the names and their default values.
Hope this helps,
Eric