Make Window Modal from SubVI

I have a VI which I want to make modal to TS so I am using the Start/Stop Modal Dialog VIs. Now, I also have a set of preconditions and a bunch of code which I will include in this and several VIs more so I decided to make a subVI that includes the StartModal VI + all the repeated operations,  is there a way to do this? (using a sort of caller vi property in labvi) so far in the tests I've made LV/TestStand always make modal the VI that in which Start/Stop Modal VIs are directly placed...
Suggestions? ideas??
Attachments:
ModalVI.PNG ‏9 KB

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
// it takes almost no time to rate an answer

Similar Messages

  • Make panel modal from a CVI dll

    I'm creating a CVI dll.  It will popup a main panel.  I need this panel to be a modal, just like a dialog window, user must exist before they can return to the caller.
    The InstallPopup function doesn't work in this case.
    By the way, I have additional popup panels on top of the main panel.  They are working ok with the InstallPopup function.
    George Zou
    http://webspace.webring.com/people/og/gtoolbox

    George:
    CVI doesn't create system modal windows.  InstallPopup creates application modal windows: the window (or panel) stays on top of other windows in the same application, but other applications can go active on top of the installed popups.
    You could make the panel floating, which will have it be always on top, but not necessarily the foreground or active window.  To make a panel float, you can do it programmatically using
    SetPanelAttribute (panelHandle, ATTR_FLOATING, VAL_FLOAT_ALWAYS);
    or you can do it in the UI editor by double-clicking on a blank spot in the panel, and then click on Other Attributes, and set the Floating Style.  Having the panel float will keep it on top so it won't get lost under other windows, but other applications can still be active.
    You could also use a timer to force your window to be the foreground window using the Win32 API (or Windows SDK) SetForegroundWindow() function.  This isn't a perfect solution, and you may see some strange behaviour on background windows if you really try to get them to be active, but it helps avoid an inadvertant click forcing the user to search for the desired window.
    The attached appliaction uses a timer and SetForegroundWindow() to keep the panels on top.  It also calls InstallPopup to install a popup on top of the main panel, and sets the popup to be the foreground window.  There are some additional details in comments in the code and in text boxes on the panels.
    The Win32 API (or Windows SDK, depending on which CVI version you have) isn't installed by default.  If it's not installed, you just need to reinstall CVI, selecting the Win32 API as an option.  Note that you need to use the version that ships with CVI, not VC++ or other development tool.
    Attachments:
    modalpanels.zip ‏6 KB

  • I need help transferring Bootcamp (Windows XP) from my old Macbook Pro to the new one. How do I make bootable clone of Bootcamp?

    Hi I just got a new MacBook Pro I need help transferring Bootcamp (Windows XP) from my old Macbook Pro to my new Macbook Pro  Mac OS X 10.7.4  2.6 Ghz Intel Core 17. How do I make bootable clone of Bootcamp?

    you can't just move XP even if you took the hard drive and have Windows boot and function.
    Apparently there are Windows tools to sanitize the OS and strip all the motherboard drivers and services.
    Time to get a supported OS. Don't want to pay, then use 8 for the time until it goes on sale.
    There are no drivers for even Vista on 2011 and later Macs.

  • How to make another modal popup window in a modal popup window?

    how to make another modal popup window in a modal popup window?
    two modal windows must be made by inheritance of JDialog.

    the jdialog has constructors where you can set another jdialog as owner. (the same as frame)
    Visit our german java forum at http://www.java-forum.org/de
    An english version will be released soon at http://www.java-forum.org/en

  • Is it possible to make a modal window resizable?

    Is it possible to make a modal window resizable?
    I am not sure that I have the best way to create modal windows in the first place.
    I have a TitleWindow which is hidden, and when I want to display it I make it visible and add it to thePopUpManager.
    For example here I have an "importing" window which is visible while the application imports some stuff:
        <mx:TitleWindow id="importingWindow" title="Importing Frame"
            layout="absolute" styleName="Blue"
            creationPolicy="all" visible="false"
            width="350" height="150"
            modalTransparency="0.3" modalTransparencyBlur="1" modalTransparencyColor="0x999999"
            modalTransparencyDuration="50">
                <mx:Label tabIndex="0" text="Importing... please wait!" left="55" top="45"/>
        </mx:TitleWindow>
                private function showImportingWindow():void
                    importingWindow.visible=true;
                     PopUpManager.addPopUp( importingWindow, this, true );
                    PopUpManager.centerPopUp( importingWindow );
                private function hideImportingWindow():void
                    PopUpManager.removePopUp( importingWindow );
                    importingWindow.visible = false;
    How would it be possible for this window to be resizable?
    If not through the TitleWindow, is there any other way to have a resizable window within the application? (i know the application window can be resizable, but what about windows within the application?)

    Yes, but not as easily as you can make a normal window resizeable (AFAIK).  You would need to handle it all yourself by adding a resize area with listeners, etc.

  • Looking to make the leap from Windows XP Media Center 2005 to a new Operating system

    Looking to make the leap from Windows XP Media Center 2005 to a new Operating system that supports Microsoft Publisher 2002, Word 2003, Excel 2003, Power Point 2000 and Picture Manager 2003. Need to make the leap since some of my other software is requiring
    a system software upgrade to upload any other upgrades (Garmin for example). I ran windows 8.1 software compatibility check and know this software will not work on 8.1. Does anyone know if this software works on Windows 7, 7 Pro, or Ultra?

    Hi Paul,
    You may take a try with Windows 7 Upgrade Advisor, download and run the Windows 7 Upgrade Advisor to see if your PC is ready for Windows 7. It scans your hardware, devices, and installed programs for known compatibility issues, gives you guidance on how
    to resolve potential issues found, and recommends what to do before you upgrade.
    You could download it from here:
    Windows 7 Upgrade Advisor.
    If you want to upgrade Windows XP to Windows 7, you may follow the guide below:
    Upgrading from Windows XP to Windows 7
    Besides, I would agree with what Team Zigzag suggested, run Windows 8.1 and create a Windows XP virtual Machine, then run the applications from there.
    Best regards
    Michael Shao
    TechNet Community Support

  • Can see Windows PCs from Mac, but can't see (and access) Mac from PCs

    Yesterday, I ran into a strange problem which I'm not able to figure out.
    I share an office with some engineers, who have their computer environment (server, network), all running Windows (XP and Vista on the PCs, Windows 2003 for the server).
    Within that environment, I have 2 PCs (both XP) and an iBook G4 (Leopard 10.5.4.). I have also a printer (Epson Laser), which is connected to the office network, and an Airport Extreme Base Station.
    Until last week, I could connect from my PCs to my iBook (wirelessly), and from the iBook I could connect to my PCs, the server, and via the server print on my printer (again, all wirelessly).
    Over the weekend, I took out the Airport Extreme Base Station (to help with an issue at home - see my thread over at Printing), and yesterday I brought it back to the office and installed it again.
    And since I re-installed the Base Station, this is the problem:
    1. from PCs, I can't see the iBook (can't attach a PC drive letter - eg. I:\), and therefore can't access it
    2. from the iBook, I can't print to my printer - furthermore, when I select the Printing preference and click "Add Printer", no printers whatsoever show up (the list stays blank), whereas before the engineers' printer (some Minolta Bizhub with Bonjour) would show up as well
    3. I can, however, access the Windows server from my iBook
    Any ideas what's going on? I tried to solve this, but gave up quickly (no way I can possibly figure this out), plus I have this issue at home (can't print wirelessly to a printer attached via USB to a Time Capsule - I can, however, print to the same printer if I attach it to the previously used Airport Express!) - 2 problems and mounting headaches!
    I am thinking about re-installing the whole system (take off all data, do a complete wipe and start afresh…), but don't like to spend a whole day doing this…
    Again, thanks for any advice!
    Jan

    You only need one computer to configure the Base Station - and since you can easily do this from your PC, you really don't need to be able to do it from your Mac as well. I suggest you stop worrying about this, leave your Base Station running with the current firmware version, and use your PC if you ever need to make a configuration change.
    Note that NO Base Station software needs to be installed on the Mac, for the Mac to be able to connect wirelessly to the Base Station. If your Mac is currently unable to establish a wireless connection to the Base Station, you have a different problem - and one that won't be solved by installing the Airport Admin Utility or downgrading firmware on the Base Station. Incidentally - what type of wireless security are you using on the Base Station - WEP or WPA? A base station configured to use WPA security will only be accessible by a Mac running at least MacOS 10.3.

  • Options Startup Show my Windows & Tabs from last time,but upon exit FF doesn't ask to save tabs & windows. When restarting FF I have a home pape,but no Bookmark tabs show. Why

    Upon starting FF and going to my Home Page, I have no Bookmarks or Tabs showing. I have to Re-load the Bookmark Tabs. My options at Startup are "Show my Windows & Tabs from last time" Also using the Firefox exit,it does not ask to save tabs & windows on Exit. I'm getting tired of adding Bookmark Tabs each time I want to use FF.

    It is possible that there is a problem with the files sessionstore.js and sessionstore.bak in the Firefox Profile Folder.
    Delete the files sessionstore.js and sessionstore.bak in the Firefox Profile Folder.
    * Help > Troubleshooting Information > Profile Directory: Open Containing Folder
    * http://kb.mozillazine.org/Profile_folder_-_Firefox
    * http://kb.mozillazine.org/sessionstore.js
    If you see files sessionstore-##.js with a number in the left part of the name like sessionstore-1.js then delete those as well.<br />
    Deleting sessionstore.js will cause App Tabs and Tab Groups to get lost, so you will have to create them again (make a note).
    See:
    * http://kb.mozillazine.org/Session_Restore

  • How to install Windows 7 from a USB drive!

    This is even easier than installing Windows XP from a USB drive, and will also reduce the time taken to install Windows 7, it took me about 15 minutes!
    The advice in the guide is also applicable to installing Vista.
    You need basically:
    a USB flash drive at least 4GB in size
    a Windows 7 DVD
    To sum up:
    Format your USB drive, with the NTFS filesystem
    Open Command Prompt as an administrator, and run the Bootsect.exe program off the Windows 7 CD to make the USB drive bootable
    Copy the contents of the Windows 7 DVD to the USB drive
    Restart your PC, press F11 (or whichever key it is) to access the Boot menu, and select your USB drive to boot from
    Full guide here:
    http://www.intowindows.com/how-to-install-windows-7vista-from-usb-drive-detailed-100-working-guide/

    Quote from: bnborg on 16-February-11, 10:28:04
    I have done this and it is simple.
    I cleaned and (re)formated an 8GB flash drive under Windows7 using diskpart.  I chose quick format and a fat filesystem.  It doesn't need to be ntfs.  I had diskpart mark the partition active.  I copied the DVD contents to the flash drive.  I also made a folder on it for motherboard drivers.
    After that, I booted the drive on a new machine.  Windows7 setup came up, and didn't find any hard drives, other than the USB flash drive.  I clicked the button to load drivers, and pointed it to the folder I had copied them to on the flash.  Windows installed without problems.
    Hi bnborg..Do u mind sharing with me your motherboard driver folder? I have the MSI U135DX Netbook and each time I hit the button to install Windows 7 it asks me for some mobo driver...Think i might need it to get tru with a successful install..

  • Bootcamp Windows 7 from External Drive Hangs

    Hi All,
    I recently removed my Macbook Pro's internal optical drive and replaced it with a 128GB SSD. I am running OSX 10.8.3 off of the SSD but can not get bootcamp to install Windows 7. I walk through the first steps with bootcamp assistant and partition spase for Windows. All is well untill I have to restart the machine and boot into the external optical drive. I select the Windows CD from the boot menu but the MBP hangs on a grey screen with the Apple logo and the drive spins down.
    Any suggestions on how to get the MBP to boot from the external optical drive?

    Apple admits in one tech note to poor FW800 speeds on Mac Pro.
    Hard to get rid of GPT but if you format the drive to MBR in Disk Utility and FAT you can then convert or reformat to NTFS.
    No mention of the make of the case.
    FW400 is pretty good. But why not use eSATA PCIe and SATA. Native if possible (no FW/USB type cases, or Oxford with multi interfaces). Works for me, using FW400 or Sonnet Tempo E2P or E4P (but not both together in Windows).
    The hot fix wasn't that for XP or something?
    Motherboards like Gigabyte are coming out with a dual-use port for SATA and USB3. FW seems like proprietary, not really adopted or supported outside Apple.
    And I'd say there are problems with NTFS drivers for OS X so that is an issue.
    Also, as nice as it may seem, Boot Camp's AppleHFS.sys and HFS+ support for read-only in Windows causes other problems and side effects, like Windows 7's Backup facility to not work.
    When I get a drive, I use Windows and the vendor's (WD etc) hard drive diagnostic to do a full test, zero, etc and almost invariably drives formatted in Mac OS had trouble and worked better after such tests and formatting.

  • How to make windows 8.1 compatible with dng converter 8.1?

    I have installed the DNG Converter 8.1 so that I can view/edit RAW files on Photoshop Elements 12, but Windows 8.1 states "the source folder does not contain any supported camera raw files".  I have an Sony Alpha 6000 (version 8.4), and have moved the RAW files into a folder on my C drive.  DNG Converter won't work even if I run it on Windows 8, is there no way to make Windows 8.1 compatible with DNG Converter 8.1? 

    From that faq:
    http://helpx.adobe.com/creative-suite/kb/camera-raw-plug-supported-cameras.html
    I see that you need the DNG converter 8.4 to convert Sony Alpha 6000 raw files.
    Download that version of the DNG converter to replace your version 8.1.
    Adobe - Adobe Camera Raw and DNG Converter : For Macintosh for Mac
    Adobe - Adobe Camera Raw and DNG Converter : For Windows for Windows

  • Is there a way to reinstall windows 7 from an erased disk? HP support states there is

    Hello,
    I completley erased the hardrive on a Compaq Presario CQ57 that I plan to sell.  I don't have the recovery discs to reinstall Windows 7 Professional 32 bit. 
    I phoned HP and they they told me that although the hard drive is wiped clean, there is a partition that still houses the operating system and does not require disks.  However, they stated they would have to charge an out-of-warranty fee of  $59.99 for the information on how to do this.  Declining such, they stated someone on the forum should be able to help.
    I have searched the forum but have not found a way to restore Windows 7 on the notebook without recovery disks so far.  Was HP support mistaken about bein able to restore Windows without disks?
    Thank you.

    When requesting assistance, please provide the complete model name and/or product number of the HP computer in question. HP/Compaq makes thousands of models of computers. Without this information it may be difficult or impossible to assist you in resolving your issue.
    The above requested information can be found on the bottom of your computer or inside the battery compartment. Please do not include your serial number. Please enter the model/product information into HP's Online Consumer Support page and/or post it here for our review.
    If you only erased the Windows partiton and left the factory recovery partition intact, then yes you can possible recovery the computer with out the discs. If you ereased the entire disc, there is no way to recover the computer to a factory like state without the HP Recovery Disc set.
    Please enter you computer information HERE and select "Drivers", then the original OS to see if an HP Recovery Disc set is available from HP. You can also see if third party vendor www.computersurgeons.com has an HP Recovery Disc set available for your computer.
    Alternatively, if you can still can still read the 25-digit product key on the Microsoft COA affixed to your computer, please see "How to Install Windows 7 Without the Disc" to download Windows 7, create the Windows installation media, and install Windows.  If you prefer to install Windows 7 from a USB Flash Drive, please download the Windows 7 USB/DVD download tool to create a Windows 7 SP1 USB Flash Drive. Please note that you will have to source the needed drivers from HP or directly from the chipset manufacturer's websites. This method will result in a plain Windows installation with no HP customization.
    If you have any further questions, please don't hesitate to ask.
    Please click the white KUDOS star to show your appreciation
    Frank
    {------------ Please click the "White Kudos" Thumbs Up to say THANKS for helping.
    Please click the "Accept As Solution" on my post, if my assistance has solved your issue. ------------V
    This is a user supported forum. I am a volunteer and I don't work for HP.
    HP 15t-j100 (on loan from HP)
    HP 13 Split x2 (on loan from HP)
    HP Slate8 Pro (on loan from HP)
    HP a1632x - Windows 7, 4GB RAM, AMD Radeon HD 6450
    HP p6130y - Windows 7, 8GB RAM, AMD Radeon HD 6450
    HP p6320y - Windows 7, 8GB RAM, NVIDIA GT 240
    HP p7-1026 - Windows 7, 6GB RAM, AMD Radeon HD 6450
    HP p6787c - Windows 7, 8GB RAM, NVIDIA GT 240

  • Remove windows Installation from Old WD hard drive and Install Fresh Copy on the New One.

    Hi Community! I just bought a new WD Blue 1 TB hard drive, my old hard drive is WD Blue caviar 500 GB, running on Windows 7 ultimate 32 bit.
    There are two things I wish to do: 1. Firstly, if it's possible, I would like to copy some videos, images, music etc. from my OLD Drive to the new one.
    Please note that, I don't have an external disk to do it, I know that would've been less complicated, but that's not an option at this point. 2. Secondly, once that is done, if possible, I want to remove windows 7 installation from my old hard drive, re-partition it to make it just the storage drive, and finally install
    fresh copy of windows 7- 64 bit to the new Hard drive.
    Please note that, my old Hard drive is installed on windows 7- 32 bit and now I want to install a fresh copy of Windows 7-64bit instead of 32bit, because I am upgrading my
    configuration with better ones.
    I am adding 4 GB corsair vengeance ram to my 2 GB corsair ram, so that is 6 GB in total.
    I am adding 1 TB hard disk to my 500 GB Hard disk, so that is 1500 GB.
    Both my processor and mother board supports 64 bit.
    Intel® Pentium® Processor G2020 (3M Cache, 2.90 GHz) And this Mother board - "Biostar H61MGV3"I know that you could clone the partition and migrate the installation from one hard drive to another using the Acronis True Image WD Edition Software, but I don't want that.
    In simple words, say I have a dos computer, I installed my 1TB WD hard drive, installed a fresh copy of windows 7-64bit. So my computer is up and running. Now, I have another hard
    drive which I wish to use, that is 500GB WD, but it has Windows 7-32 bit installed in it.
    So what I want to do is, make this old hard drive a complete 500 gb storage device and remove the windows installation from it, without loosing music, videos, etc. and then lastly
    copying the music and other media to the new hard drive, and formatting it completely.
    I am perhaps making this very complicated, I know you would have better easier solution for this.
    I am frustrated, your help would be appreciated, thanks a lot. Sincerely, Abe

    Since you don't want to clone the drive (I agree with you), you can just swap drives and install Windows on the new drive. Windows won't complain that you are installing on a different drive because it only cares if you change more than one piece of hardware at a time. The problem will arise when you copy the files from the old drive because you cannot just connect it via SATA. That would confuse Windows, as both installations were run on that hardware. You need to mount it in an external dock via USB 2.0/3.0 which will isolate the details of the OS. After you copy all necessary files, you can use WDC Lifeguard to write zeros to the entire disk and then create a new partition. After that you can mount it via SATA because it will be a new drive. Do NOT be in a hurry to wipe the drive however, as you don't want to forget something.

  • Dual Boot Arch and Windows 8 from Windows Boot

    I tried doing some research before posting but haven't had too much luck. I just upgraded to Windows 8, but after having a nice experience with Arch previously on VirtualBox, I thought I would dual boot this time... and this is my first post.
    I followed the Beginners Installation Guide and the Win Arch Dual Boot and then did some reading on setting up the BCD manager in Windows following from the link in the Arch Wiki.
    My setup is as follows
    /dev/sda1 = Windows (>150 GB)
    /dev/sda2 = /boot (100 MB)
    /dev/sda3 = / (15 GB)
    /dev/sda5 = /var (8 GB)
    /dev/sda6 = /home (~65 GB)
    The linux portions are all ext4, but after reading the above article on the BCD Manager, I realized I left out the FAT32 partition so Windows can see it (note... if I get this to work, I will try and update the wiki to mention that).
    So the problem is I used up all my hard drive space and need to make room for the FAT32 section. I was wondering
    a) how to resize the /home partition to make room for the FAT32 partition
    or
    b)if I were to delete the /home entirely and just add an sda4 (FAT32) and sda6 (/home) (since I forgot to use sda4), do I need to go through the pacstrap process again, or generate an fstab again, or just edit the fstab manually?
    or
    c) there is a possibility that I missed something where I shouldn't need to have an FAT32 section.
    Thanks for the help!

    Thanks for the help!
    I was able to use GParted to add that extra partition and was able to generate the proper file for Windows to see, and then copy over to the C: drive (which is what's missing from the Wiki).
    I unfortunately had some issues that kept me starting in emergency mode, so after some time spent in the fstab section and setting the right filesystems, I was able to get it to work!

  • What's the path and file name for the program to make window xp recovery cd?

    I need to replace a hard drive, so I  have to make a set of CDs to install windows XP,  but in ACCESS IBM, I cannot find the program to make window xp recovery cd as instructed on the website. where can I find it? Thanks
    solved, thanks anyway. mine is T43, the hard disk got bad setctors now, so I got a new disk to replace it, so I need to install xp first, that's what I need, but there are no xp installation cd now and I can not find the program to make the cd. I downloaded  xp from internet to solve this problem.
    Message Edited by mary2001 on 07-04-2008 12:05 PM

    Hi mary2001
    I have a similar problem, so where did u downloaded the xp? I have a produkt key on the back of my IBM T43, but no cd.
    Please help me...

Maybe you are looking for