LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Sub VI only works if nothing in call chain is a dialog.

Open Main.vi and run it.  It works OK.

Open its VI Properties and change its window appearance to "Dialog".

Now it won't work.

"If you weren't supposed to push it, it wouldn't be a button."
Download All
0 Kudos
Message 1 of 6
(1,170 Views)

Being modal causes the problem.

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 2 of 6
(1,164 Views)

Could it be the "Interactive" node on your "Open LV Document" script call in "Get all errors" sub-VI?  The Help says if this is True, "LabVIEW may display dialog boxes ..."

 

Bob Schor

0 Kudos
Message 3 of 6
(1,149 Views)

It's actually the 2nd invoke node: "GetActiveVIRef".  I want to get a reference to the VI just opened, but if something is modal or floating, the Active VI ref isn't to the VI just opened.

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 4 of 6
(1,107 Views)

I'm guessing a modal window is always active, so either use some other tag than active, or temporarily unset the modal flag.

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 5 of 6
(1,075 Views)

I ended up having to cheat by snatching the contents of "Error Ring.xnode:Get All Errors In Family.vi" (if course what I had been trying to do was also cheating).

"If you weren't supposed to push it, it wouldn't be a button."
Message 6 of 6
(1,058 Views)