cancel
Showing results for 
Search instead for 
Did you mean: 

Modal problem in TestStand

Briton
Member

Modal problem in TestStand

Message contains an image

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 caseSmiley Wink)

 

Briton_0-1691144945398.png

 

 

Briton_0-1691145961578.gif

 

Thanks in advance
Bjarne

 

6 REPLIES 6
zou
Trusted Enthusiast
Trusted Enthusiast

Re: Modal problem in TestStand

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
Briton
Member

Re: Modal problem in TestStand

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

zou
Trusted Enthusiast
Trusted Enthusiast

Re: Modal problem in TestStand

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
Briton
Member

Re: Modal problem in TestStand

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

zou
Trusted Enthusiast
Trusted Enthusiast

Re: Modal problem in TestStand

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
Briton
Member

Re: Modal problem in TestStand

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