LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Control Value:Get All Method returning control names but not values

Solved!
Go to solution

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?  

 

 

---------------------
Patrick Allen: FunctionalityUnlimited.ca
0 Kudos
Message 1 of 2
(2,501 Views)
Solution
Accepted by topic author pallen

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

Message 2 of 2
(2,471 Views)