Only opening one program at a time?

I was wondering if there is a way to restrict a program so that only
one instance can be opened at a time.  I have two pieces of motion
control software that control the same piece of equiptment (one is for
maintenance and one is for normal operation).  I would like to
make sure that only one of the programs can be opened at a time. 
I thought of putting them into a single program with a tab structure,
but that suggests that you can switch between the tab, and I don't want
to allow that.  I also thought of having a pop-up when the program
first launches that askes which program you want to run, that way you
can only choose one or the other.   But you could still open
two instances of that application, one of each. 
The only thing I can think to do would be to use a global variable as a
flag and only allow the program to launch if the flag is off. 
However if the program crashed and didn't exit properly the global flag
would be left on and the program wouldn't start. 
Does anyone know if there is a good way to do this in LabView?
Thanks,
Kasey

You're welcome. I first used tabs in LV 6.1, before subpanels were available. I didn't want to run subVIs as popups, as a rule. The filetab was a good solution. The selected page obscures front-panel objects on the other pages, so each page is like a separate screen. I labeled the pages according to function, and the user could switch pages accordingly. Switching tab pages is easier than clicking a button on the main VI's front panel to pop up a VI enabling one function; then clicking "End" to disable; selecting another button on main VI's FP for another popup VI; etc.
But there were certain things I wanted to do without interruption (hardware interactions), so I disabled all pages but the active page as long as the critical task was ongoing. Also, I would disable certain controls even on the active page ("Start" button was disabled until the test was over, etc.). I don't think that strategy violates the spirit of the filetab.
The only trouble was that most of the pages had complicated functionality, so many of them had clusters full of option buttons. User would click one, I'd have to hide the option menu, show a bunch of other controls, etc. Straightforward but tedious. Subpanels make that kind of thing easier, because the VI running in the subpanel is responsible for its own front-panel display. And different people can develop different subpanel VIs at the same time, without too many problems merging.
Anyway, I'm glad your problem is solved. I just tried to run two instances of an LV 7 application under Windows 2000 and I couldn't. So that's good to know.
::Marty

Similar Messages

  • Since the os7 update on my iPad, my safari is not right, it only opens one page at a time, crashes when trying to open more, it has no back button. Help

    Since the os7 update on my iPad, my safari is not right, it only opens one page at a time, crashes when trying to open more, it has no back button. Help

    Well, I rebuilt the entire workbook... that was a few months ago and so far, the problem hasn't resurfaced. It really wasn't fun to do, but whatever glitch there was in the file, I eliminated it.
    I think I should mention that I am using Office v.X, NOT Office 2004. I got a new Intel iMac this week and yesterday when I opened up my files, it opened up the test drive (a JOKE of a program if you ask me) Anyway, some of the very minor issues I had with Office v.X were solved in the 2004 version. (When opening up large multi worksheet files without Excel being already opened, the tabs have white text) Anyway, I am still going to wait for the universal version to come out, but it seems that the newer versions may have fewer glitches (as is to be expected)
    At any rate, best of luck to you!

  • Mail: I can only open one email at a time

    Using Mail, I have a very strange phanomenon: I can only open one email at a time. E.g. when writing a new email, I cannot open another email for reference. I need to close and save the new email as a draft before being able to open another one.
    It would be great if somebody could help me with this, thanks!

    Hi Cocolores,
    If you choose File > New Viewer Window from the menu bar in Mail, you can have as many email messages open as you like.
    I hope this information helps ....
    Have a great day!
    - Judy

  • ITunes tells me "Could not be used because the original file could not be found. Would you like to locate it?"  I can locate it and all my other music, but can only open one song at a time.  How do I set it to open all my music whenever I want it?

    iTunes tells me my song selection: "Could not be used because the original file could not be found. Would you like to locate it?"  I can locate it and all my other music, but can only open one song at a time.  How do I set it to open all my music whenever I want?
    Message was edited by: Woildbill

    I just spent several hours dealing with this when switching to a new PC. It was extremely frustrating as I knew my files were on my external HD but no matter how many times I copied my old iTunes folder over the files were still missing...because dummy me had forgotten to "unhide folders" on my new PC and my old files were actually stored in a hidden folder created long long ago.
    This is how I did it on Windows 7 with iTunes 10
    1. Look in iTunes Advanced Preferences to see where iTunes is saving files. (Edit, Preferences, Advanced)
         Example: C:/Users/Woildbill/My Music/iTunes/Music
    2. Ensure you are able to see hidden files - Control Panel, Folder Option, View, Show Hidden Files
    3. Use Your Computer's Search Function to Locate the Missing File (Start, Search, type name of song - I started my search in "My Music" folder but be sure to expand to entire Computer if not found right away)
    4. In Search Results, right-click found folder and select properties. This will tell you where the file is actually stored.
    5. Use Windows Explorer (right-click start) to navigate to the location of the file. It is likley your other missing files are in the same location.
    6. In Windows Explorer, copy the newly located files to the iTumes location from Step 1 and everything should work again.
    Hope this helps!

  • Screen/Desktop Only showing one program at a time...

    My mom called me in to look at her iMac earlier today. She said she was moving her illustrator window off to the side when all of the sudden it was "sucked" away to the left side of the screen. Now when she tries to bring up more than one window for different programs, it will only show windows from one program at a time. I have no clue what she has done and can't seem to find a way to fix this... Does anyone know what she has turned on and how can I turn it off?
    Thanks!

    sounds strange. I would try resetting dock and spaces preferences. delete the file homedirectory/library/preferences/com.apple.dock.plist and log out/in. your dock, spaces and exposé will be reset to the defaults.

  • I lost my only navigation tool bar, so I can only open one window at a time, and can't use google. Help.

    I'm not sure what I did, but I right clicked on my google tool bar (which I use since I can't find the Firefox navigation toolbar) and I somehow disabled it. Now I can only use one window at a time, and if I go to a website, I can't go to another without closing my current one so I can go to my homepage, which is google.

    If the Menu Bar is hidden then press F10 or press and hold the Alt key down to bring up the "Menu Bar" temporarily.
    Go to "View > Toolbars" or right-click the "Menu Bar" or press Alt+V T to select which toolbars to show or hide (click on an entry to toggle the state).
    See also [[Menu bar is missing]] and http://kb.mozillazine.org/Toolbar_customization

  • Only showing one program at a time?

    I used to be able to have firefox open behind the word program I was working on, then click to the firefox to do a quick search (would go on top of word document, but word doc could still be seen) then I could click right back to the word document & vice versa. All of a sudden when I click word only the word will open & hides firefox. When I open firefox it makes the word document disappear! How to fix this!?!?!

    Hi k,
    You can stretch one window horizontally and one vertically so it's a little bigger than the other one, then click on the window behind the window to make it active. You can also just click on the icon of the desired app in the dock.

  • Can only open one link at a time; any page in new tab will seem to load but appears blank. I have to open a new browser to go to a new page. Why?

    This just began to happen yesterday. I have a MacBook Pro 10.7.5.
    I can always get to the first page that I open in a new browser, but any page after that that I try to open in a new tab will seem to load but the page is blank.
    This does not just happen with one website I have tried myriad of different sites.. only the first tab loads in a new browser. I am having to open a new browser if i want to go to another link - very frustrating..

    Hi - This is Eddie from NTK.
    We just released an updated version handling the new Firefox Beta - please grab it from https://addons.mozilla.org/en-us/firefox/addon/new-tab-king/versions/
    Apologies for the bad experience. We're working hard to chase the never-ending Mozilla release train...
    --eddie

  • I just installed CS4 and can only open one document at a time. Has anyone else had this problem?

    $

    Are you sure? Do you see different document names at the top of the window, like tabs in a browser?
    PS: ALWAYS tell us the version number (you did, good) and OS (you didn't, bad).

  • I can only view one email at a time

    I can only view one email at a time when i open my email app

    Reopened this question in another forum, since I am not talking about an iPhone but a MacBook Pro:
    Using Mail, I have a very strange phanomenon: I can only open one email at a time. E.g. when writing a new email, I cannot open another email for reference. I need to close and save the new email as a draft before being able to open another one. Obviously, I am not reading two emails at a time, but I might be writing one and needing infos/text from another. It sounds stupid, but that's the way it is. :-/

  • Since installing an icon-editing add-on, I can't open tabs any more / I can only use one tab at a time.

    Ever since I installed the add-on Favicon Picker 2 that lets you change the bookmark icons, I can't open tabs any more. The second tab will open, but if you try to go to a site, the FIRST tab redirects to that site. Basically, I can only use one tab at a time. Is there any way I can keep this add-on and use tabs?

    Oh, wow - look at that, you're right :) I didn't want to uninstall the add-on as I like the feature, but simply by disabling it you can keep the new icons AND use tabs. Thanks dude!
    (The add-on is Favicon Picker 2 0.6.2.15 by the way - some of the user reviews report the same problem.)

  • Database 'TEST' is already open and can only have one user at a time.

    Hi all,
    Could some help on this issue as per urgency!
    Database 'TEST' is already open and can only have one user at a time.
    I also tried this command but having the same error, please let me know how to troubleshoot this issue
    Use Master
    GO
    Select * from master.sys.sysprocesses
    Where spid > 50
                And dbid=DB_ID (‘StuckDB’))  -- replace with your database name
    Thanks

    Hi Tony,
    sorry got the same error again, it can't allow me sp_who2 as well
    I tried above command got the following error
    Changes
    to the state or options of database ‘TEST’ cannot be made at this time. The database is in single-user mode, and a user is currently connected to it.Msg 5069, Level 16, State 1, 

  • Can only print one item at a time

    Hey everyone,
    Bit of a Photoshop novice here, use it for DVD covers and labels. I have been using CS3 previously but upgraded to CS5.5 last year. The thing is on CS5.5 I can only print one page at a time even when I input say 20 copies to be printed, only one will print. That goes for the regular printer for printing covers and the disc printer.
    I can open CS3 up and right away it will print however many I ask it to.
    Is there something I am missing? Something so painfully obvious that it is staring me in the face but I am just not seeing it?
    Thanks in advance!

    It isn't a printer setting. I have 3 different printers connected to my system and all of them worked with CS3 fine. And when I delete the preferences folder for CS5.1 it works as it should but only once, then afterwards it only prints one copy, no matter how many I ask it to print!
    So if it works when the preferences have been removed, then fails to work afterwards, how can that be a printer setting?
    I have read elsewhere that others have had similar issues with CS5 and Windows 7.

  • I can only open one Firefox browser window. When I click the firefox icon from desktop or taskbar to open up another browser window it does not open. I am ablt to open up new tabs within the one window.

    I can only open one Firefox browser window. When I click the firefox icon from desktop or taskbar to open up another browser window it does not open. I am ablt to open up new tabs within the one window.

    Have you tried: click Firefox button > New Tab > New Window '''''OR''''' CTRL+N '''''OR''''' File > New Window (if using the Menu Bar)
    Once open, Firefox locks the Profile that is in use and you can not open another window with that Firefox version and Profile combination using the Windows Desktop icon or the Windows Programs list.

  • I am trying to print all the PDF pages in a range of 5 pages but can only print one page at a time . . . It will print the current page, but not all or pages 1-5.  Can this be overcome?

    I am trying to print all the PDF pages in a range of 5 pages but can only print one page at a time . . . It will print the current page only, but not all or pages 1-5.  I need to go to the next subsequent page and command to print current page; continuing with this procedure until all pages are printed one at a time. Can this be overcome?

    You can use printPages(1, 5), however I need to know how you print current page.

Maybe you are looking for

  • PDFMaker in Outlook 2003 Stopped Working After Upgrade to 8.1.4

    I am running Outlook 2003 and Acrobat Standard version 8.  I recently accepted an automatic update to Acrobat Standard 8.1.4.  Now, whenever I run PDFMaker in Outlook 2003, none of the email messages I desire to archive are converted.  In my logfile

  • Any overhead with sub partitioning within a time based column?

    We have a table that's partitioned based on a weekly partition and it has records of Type A and records of Type B and there are processes that are only interested in records of Type B. Right now the table is partitioned as interval on the timestamp c

  • Problem Method CHECK_ADD_ON_ACTIVE in MKO2 tcode

    hello experts, In 4.6 environment i add button in transaction MK02 with method CHECK_ADD_ON_ACTIVE. Like this: CALL METHOD G_ADDITIONAL_DATA->CHECK_ADD_ON_ACTIVE     EXPORTING       I_SCREEN_GROUP  = IP_SCREEN_GROUP     CHANGING       E_ADD_ON_ACTIVE

  • Low sound/volume output

    After applying the updates (iTunes(6.02) & OS X (10.4.4)) the volume on my iMac seems to be a lot lower than it was before. I now have to turn the volume up more than half way to get the same output I used to get when the volume was only turned up a

  • Setup Hotline Analog Phone with SCCP

    Anyone out there can help me out how to setup a hotline in CUCM 8.6? I've followed this procedure below, but I'm still getting an error message when I lift the handset such as "your dial cannot be completed...". http://www.cisco.com/en/US/products/sw