10-08-2010 09:36 AM
hello,
I was wondering if there is a way to detect if a pop-up has occured in a VI, from another VI by using an OpenVI reference.... and maybe some property node. I can't find a way. I can reference controls on a VI, and detect if their values change, but I can't figure out how to detect if a pop-up has occured.
much thanks!
10-08-2010 09:51 AM
A similar question was just recently asked: http://forums.ni.com/t5/LabVIEW/Open-front-panel-of-sub-vi-when-called-how/td-p/1271866
So, you could just use the same property to see if the front panel window is open.
10-08-2010 10:15 AM
Hi Buddy,
How long a time frame are we talking about here. Do we need to know if the pop-up has ever occoured, or if the pop-up is currently on the FP???
regards
Rich
10-08-2010 11:18 AM
It has been years since I did that but...
I wrote a loop to repeatedly do a "All VIs in memory" and look for stuff coming and going.
At teh time I was able to catch the BridgeVIEW tag config screen and was able to punch buttons. never did anything with it...
Ben
10-08-2010 02:02 PM
Hi, thanks for the replys
- I would like to know asap when a pop-up occurs, as close to real time as I can get. For example, using a VI reference, and an indicator reference, you can monitor an indicator from some arbitrary VI, and you can see it change as it changes on the VI where it exists. I'd like that same functionality with popups, if a user dialog popup occurs, I'd like to be able to through another VI which has an open reference to the VI that has the popup
- I tried the All VIs in Memory, I couldn't get it to notice a dialog popup
thanks for the input!
10-08-2010 02:57 PM
@Fibo wrote:
Hi, thanks for the replys
- I would like to know asap when a pop-up occurs, as close to real time as I can get. For example, using a VI reference, and an indicator reference,
If you already have a VI reference, then why can't you just use the Front Panel:Open property?
10-08-2010 03:47 PM
How would you use the Front Panel Open property to detect when a popup pops up in a referenced vi? by popup I mean any labview popup window, be it an error message or a user dialog box or something from a subvi
10-13-2010 05:06 AM
Hi,
I've created a little Project that contains a couple of VI's and a global Variable. One Vi detects a dialog pop-up occurring within the other VI as you asked. Hopefully you can tailor this to your needs.
Hope this helps, and any more problems, or if the solution needs any more tweeks, give us a shout
Regards
Richard.
10-19-2010 04:19 PM
Thanks for posting that Richard, is there any chance I could get you, or anyone reading this, to re-post it as LabVIEW 2009 (or earlier) I'm running 2009 over here.
much thanks!
10-20-2010 10:21 AM
Here you go buddy.
Hope this help and that can can extend this to solve your problem.
Richard