NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Modal problem in TestStand

I'm using the "TestStand - Start modal Dialog.VI" for setting the LV FP modal, but it's not getting modal until I have selected TestStand window and then selecting the VI FP. Then it's modal to TestStand.

 

Snip of code (and yes the code is selecting the right case;))

 

Briton_0-1691144945398.png

 

 

Briton_0-1691145961578.gif

 

Thanks in advance
Bjarne

 

0 Kudos
Message 1 of 7
(1,034 Views)

There is an example for this:

TestStand examples => Fundamentals => Launching a Modal Dialog.

 

Is your VI set to Modal in its VI properties window?

 

George Zou
0 Kudos
Message 2 of 7
(991 Views)

Hi Zou

It looks like someone has changed that example so I can't be sure if it works the same way as before ;(

 

No, it's not set to modal, but should TestStand not do that when I use the "TestStand - Start modal Dialog.VI"?

Regards Bjarne

0 Kudos
Message 3 of 7
(974 Views)

No, it's not set to modal, but should TestStand not do that when I use the "TestStand - Start modal Dialog.VI"?

 

That's the problem.

TestStand doesn't change the VI properties.  It's up to you to set the VI to modal.

 

George Zou
0 Kudos
Message 4 of 7
(967 Views)

Hi Zou

 

How do you explain why the VI get modal after the VI FP has been behind the TestStand editor window and the when it's in front again, is getting modal?

 

Bjarne

0 Kudos
Message 5 of 7
(954 Views)

You can use VI property node to read the VI modal status at runtime.

 

All TestStand does is change the owner of the VI front panel from LabVIEW to TestStand.

A window is always on top of its owner even if it's not modal.

 

George Zou
0 Kudos
Message 6 of 7
(943 Views)

But I still don't understand that the VI is getting modal after it has been behind the TestStand window and then back in front again?

 

/Bjarne

0 Kudos
Message 7 of 7
(904 Views)