LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic LabVIEW dialogue called front TestStand not coming to front

I've created a bespoke dialogue box that does things such as auto size to the text etc in LabVIEW. We call this vi from LabVIEW and TestStand - from LabVIEW it's fine, but from TestStand it appears behind TestStand and I can't find a way to get it to appear on top of TestStand - there is obviously the 'Show front panel when called' option, but as we are doing some pre-processing before showing it we cannot use this option - I've also tried 'Fp is frontmost' in the dialogue properties but still no cigar.
 
Just hoping that someone knows a way to programmatically make it appear on top of all current open windows - maybe there's some sort of Windows functionality you need to use.
 
Any ideas greatly received,
 
 
 
 
David Clark
CLA | CTA
Genesee Technologies Ltd
Hampshire, England
0 Kudos
Message 1 of 5
(3,345 Views)
Are you calling the TestStand - Start Modal Dialog function at the beginning of your VI? This and the companion, TestStand - End Modal Dialog, are on the TestStand palette.
Message 2 of 5
(3,336 Views)

Someone here mentioned those vi's so I'm going to try and do a bit of investigation with them and see what I can come up with - had a brief look and it didn't seem to do that much so I assume that I was using them in the wrong way - and there is another problem, and that is that we have certain standalone LabVIEW vi's that do things such as calibrating power meters and it's going to be a bit of a bummer if I have to constantly pass in the TestStand sequence context to these vi's just to get them to appear on top of TestStand as then they won't be particularly standalone and it means changing alot of VI interfaces which is going to upset a lot of people!

I'll have a play about with them tomorrow and see what I can do with them, but Ideally I'm looking for a standalone solution whereby I can have a bit of code encapsulated within the bespoke LabVIEW dialogues that just ensures that whenever they get called be it from LabVIEW or TestStand, they are always on top.

Many thanks for your reply, and I'll get back to you when I know a bit more,

 

David Clark
CLA | CTA
Genesee Technologies Ltd
Hampshire, England
0 Kudos
Message 3 of 5
(3,326 Views)

Hi Dennis,

In the end found an even easier way of doing this - you just use the 'Bring To Front' method of the VI Server.App class and that seems to do the job.

 

David Clark
CLA | CTA
Genesee Technologies Ltd
Hampshire, England
0 Kudos
Message 5 of 5
(3,283 Views)