03-15-2007 11:32 AM
03-15-2007 12:06 PM
Hi,
You might try this example, http://zone.ni.com/devzone/fn/p/sn/n23:4.33/sb/navsRel?q=make+VI+modal&x=11&y=11
Have a look at the edit subVI.
Regards
Ray Farmer
03-15-2007 12:12 PM
That's exactly what I was looking for...
Thanks a lot!!!
05-28-2015 09:32 AM
This is exactly what I was looking for and I'm still looking for it because of the broken link!!!
NI - Can you post a link to the new location???
05-29-2015 07:44 AM
I think the link has died - and I can't find where it's been moved to - it was a few years ago!!
Just to check - you have a VI in LV that you want to make modal to the TestStand window (UI or sequence editor), but it's not the launched VI from TestStand and it's not the VI that contains the "Start Modal"
In other words, TS calls LV VI which decides if it should call another VI based on decisions and it's that other VI that needs to be modal.
In TestStand 2014, the Start Modal vi has an extra input compared to previous versions where you can wire in a reference to the VI you want made modal (don't wire it and it assumes the current VI).
Does that help?
If you're in an older version, then I believe the Engine methods for RegisterModalWindow, UnregisterModalWindow, NotifyStartOfModalDialog and NotifyEnd Of ModalDialog should exist.
E.g. http://zone.ni.com/reference/en-XX/help/370052K-01/tsapiref/reftopics/engine_registermodalwindow_m/
You obviously need to get the HWND for the VI you've launched but this should be fairly easy :
http://digital.ni.com/public.nsf/allkb/136F6B1F34CBB76E852563FC007AEFC7
The example pointed to here used FindWindow or FindWindowEx to get the HWND based on the titlebar name from User32.dll
http://digital.ni.com/public.nsf/allkb/1B733F0C719BF70386257372002F847D
Thanks
Sacha
05-29-2015 08:18 AM
Thanks Sacha,
Just the reply I was hoping to get! I was using TS 2013, but have 2014 installed. I verified that 2014 does have this functionality, which is exactly what I needed. So I will try this out today. If for some reason this project needs to stay in 2013, I will try out the other methods. I really appreciate you covering both of the cases. Thanks again!
Scott