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

How to use "Start synchronous Call" to run a subVi and keep timeout event in Main vi still running?

$
0
0

Hi, All

 

I have a application need periodically check an instrument status and I put it in the "Timeout Event" in main vi. I also need call some subVis for configuration etc. Somehow when I called those subvi, the Timeout event in my main vi was not running. Then I use " Start Asynchronous Call" function to call the subVis. Turns out it works fine with some subvis without return value, but not as expected with "return value-needed" subvis. 

 

I attached a simple test, my main vi call two dlg subvis: AboutDlg.vi and SettingsDlg.vi. In the timeout event, I just use a counter for simulation. When you run it, you can see the counter keep counting when the AboutDlg.vi was called, but stopped when SettingsDlg.vi was called. 

 

As I remembered, someone suggested to use Queue to pass return value, but I don't know how to implement it here. 

 

Anyone has any suggestions about it? 

 

Thank you very much. 

 

 


Viewing all articles
Browse latest Browse all 69023

Trending Articles



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