08-04-2023 05:30 AM - edited 08-04-2023 05:46 AM
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;))
Thanks in advance
Bjarne
08-07-2023 11:23 AM
There is an example for this:
TestStand examples => Fundamentals => Launching a Modal Dialog.
Is your VI set to Modal in its VI properties window?
08-08-2023 04:13 AM
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
08-08-2023 08:28 AM
> 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.
08-09-2023 02:14 AM
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
08-09-2023 01:18 PM
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.
08-13-2023 11:31 PM
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