Disabling tabs while certain items are running

Hello,
In the following VI I am trying to get the "CAM" tab to be disabled and greyed out while the "ACQ Start" boolean is True and then become enabled again once the "ACQ Start" boolean becomes false.  I also want the "ACQ"  tab to do the same while the "Test" boolean is used.  Both boolean buttons will be controlling functions that are using the same camera interface, only not at the same time, but I want to make sure I don't go from the active "ACQ" tab which is in the process of acquiring images to the "CAM" tab to test my camera settings while the camera interface is already being used by the "ACQ" tab functions.  The VI I attached is a scaled down version of the main VI I'm developing, but hopefuly it has enough to give someone an idea of what I'm trying to accomplish.  I've searched around and came up with the event structure that's in the VI.  What I have disables the "CAM" tab when I press the "ACQ Start" button, but it doesn't become enabled once again after I stop the acquisition.
Any ideas?
Thanks!
Solved!
Go to Solution.
Attachments:
Tab Disabling.vi ‏150 KB

It will become enabled again if you set the front panel controls for the "Page index" and the "Page Enabled State" correctly before you press those buttons. Why do these two controls even exist in the first place? Your code should handle accessing the correct tab and then setting the enabled/disabled state based on the value of the Boolean.
Other comments:
Your architecture is dubious. Is the loop in case 0 supposed to be running until some condition? Right now it only runs once. 
You do not need to perform all those gymnastics in getting the tab that's active. Just wire the tab terminal directly to the case structure selector. The datatype of the tab is essentially an enum, so the case items are automatically updated.
What is the purpose of OR'ing a Boolean control with a False constant? Is that False constant a placeholder for something else? Otherwise, it's pointless. 
The Wait function in the outer loop doesn't do you any good. The event structure will prevent the outer loop from going to the next iteration until an event is generated that the event structure is set up to handle.
You may want to consider looking at a more robust programming architecture such as the Producer-Consumer architecture.

Similar Messages

  • Disabling while certain apps are running

    Apologies if this has been asked before and answered, but I can't find it anywhere.
    Is there any way (other than manually turning time machine off in the sys prefs) to get time machine not to do backups when a certain application is running? There are obviously some applications (direct-to-disk audio, games etc) which don't appreciate having time-machine suddenly grinding into action while they are running, and I'm wondering whether there is a script or something to persuade time-machine to do a check of running applications before starting its business.
    Actually, now that I think about it, the same sort of functionality could be handy for Spotlight and .Mac Sync too....

    TM is designed as a low priority task and should stand aside when user-level resources are being demanded. If you are sure TM is not acting this way you should report this to Apple Feedback and give as much supporting evidence as possible.

  • While no applications are running, something is writing to the HD, using all available space

    Very strange issue - This a White Mac Book, probably 6 years old, running 10.8.4 with 4g ram, 160G HD.
    There's some process writing to the hard drive while no applications are running, using all the available disk space. I can watch the available space become less and less. At the same time, everytime I try to move anything to the trash, I get a prompt to authenticate. Once a password is entered, the files don't get put into the trash, but become deleted right away.
    Things I've done to attempt to correct:
    Flash P-Ram - no effect
    fsck -fy from single user - disk structure is ok, no errors.
    Run verify and repair permissions from the recovery partition. Had no effect.
    There is no AV app installed, but there's no space to install to check for viruses. Whatever is writing to the disk uses any available space which won't allow anything to be installed.
    Can't create a new user as there's no disk space.
    Only option I see is reinstalling the OS which I'm trying to avoid if I can.
    Any thoughts/Suggestions? Thanks.

    If you haven't done so, try a Safe Mode boot ..
    Startup your Mac in Safe Mode
    A Safe Mode boot takes a longer than a normal boot so be patient.
    Once you are in Safe Mode, click Restart from the Apple () menu.
    If that doesn't help, try locating a diagnostics log file.
    Open the Console app located in HD > Applications > Utilites
    Select:  System Diagnostic Reports  on the left.
    Copy and paste the most recent kernel panic or crash log in your Reply.
    Hopefully that will narrow down the problem.

  • Install Acrobat X Standard silently while Office Apps are running

    Is this possible? I have not had issues with previous versions but when I push this through SCCM to run silently, a popup still appears indicating that any open Office app and IE need to be closed before installation can continue. Acrobat 9 would install even if other apps were running. Am I missing a parameter or a Customization Wizard setting?
    Thanks in advance...
    --Joe.

    Thanks Sandeep.
    I am looking in the Dialog section and see the CloseApps_Warning. This appears to be the popup box, but I want the box itself supressed, and for the installation to continue even if the apps are running. When I look in the AppsInUse section, I assume the Ignoreable column is what needs to be changed, but all of the apps that I mention in the original post are listed there with a 1 (TRUE?), so since they are ignoreable, I would think that this would supress the popup warning...
    The installation needs to truly be silent, like Acrobat 9.
    Thanks.

  • Certain apps ARE running in background / while iphone is in standby

    Well after some quick searching all I see are people asking how they can get 3rd party apps to run "in the background".
    I assume that when people are saying "background" they mean (for example) opening up Instant Messanger, starting a conversation, pressing the Home button, going into another app like calendar, and still being able to receive IM's while in the other app. I am quite clear that this is not possible as per the Apple SDK.
    My post is about when you open an app (lets say GPSTracker), let it run for a minute, then either let the phone go to sleep on its own, or press the top button to go into standby / lock the phone. It still sends data over the web. ipod is not active or playing (some people say to let the ipod play in order to let things run in background). Is this supposed to happen? Pandora also plays on in the same situation.
    Now this does still wear down the battery of course. And I wonder is this could be the cause for a couple of times when my battery drain & my usage stat was ridiculously high. I do not believe I left anything open, but like 5 hours into the day after the phone was unplugged, I looked at the usage and it was higher than the standby stat! The screen was definitely not on though. Maybe thats a topic for another thread.

    Thanks for the reply.
    You were saying "... or when the phone is switched off ..."
    I'm sorry for the ignorance, but by switched off do you mean hitting the top button? Seems the terms like sleep, standby, off, locked, etc get thrown around I just want to be clear. I 'turn off' my phone while im talking on my BT in the car so I don't end up hitting buttons or hanging up by accident by pressing the top button twice.. once i think locks it and the other turns off the screen. I did the same while trying out the gpstracker app and later looked at the site to see that it was tracking the whole time my phone was 'off' (when i did turn it off, that app was currently running).

  • Disable selection of certain items in ListView

    I have a ListView with different items.
    For most items I like the default multiple selection but for some items I would like to disable selection completely.
    I tried disabling the cell while it displays a non selectable item, but this only disables selection from direct events on the cell. I can still select it by clicking on an item above an then shift-clicking on an item below.
    I also tried to set the cell as empty when displaying a non selectable item. This fixes the issue with shift selection described above, but i can still select the cell by selecting an item next to it and pressing the respective arrow key.
    Does anybody have an idea?
    Thanks
    l2p

    How about this?
             final ListView<Node> fileList = new ListView<Node>();
            fileList.getSelectionModel().selectedIndexProperty().addListener(new ChangeListener<Number>() {
                @Override
                public void changed(ObservableValue<? extends Number> observableValue, Number oldv, Number newv) {
                    if (newv.intValue() == 4) {
                        fileList.getSelectionModel().select(oldv.intValue());
            });

  • How to find out whether certain items are /will be rendered?

    Hi,
    this is what i'm trying to do - from inside an apex session i'm trying to find out all the items that will be rendered (in the same application on a certain page)
    It seemed to be easy:
    for c1 in(
    SELECT ITEM_NAME
      FROM apex_application_page_items a
      where application_id = :APP_ID
        and ... --- certain other conditions
        and my_function_render(condition_type, condition_expression1, condition_expression2) = 1
    loop
        --- if item rendered process the item
    end loop;I found an (undocumented) API wwv_flow_check+ that seemed to fulfill all my dreams, but
    here's what happened:
    check_condition - although i converted the condition_type back to condition code with help of apex_standard_conditions, the program works only with PLSQL_EXPRESSION and EXISTS.
    All other conditions in use (i tried ITEM_IS_NOT_NULL, REQUEST_NOT_EQUAL_CONDITION, ITEM_IS NULL, VAL_OF_ITEM_IN_COND_EQ_COND2, NEVER) return in an error
    ORA-06503: PL/SQL: Function returned without value
    Is there some trick for the check_condition function to accept all the other condition types as well or should i write those cases into my program? It seems pretty easy, but feels like reinventing the wheel...
    database 10.2.0.4, apex 3.1.1
    Thanks,
    Andres
    P.S i also tried the who other functions in the package
    check_cond_plsql_expresion works fine
    but check_condition_sql_expresion throws
    ORA-14552: cannot perform a DDL, commit or rollback inside a query or DML??
    Andres

    Hi,
    this is what i'm trying to do - from inside an apex session i'm trying to find out all the items that will be rendered (in the same application on a certain page)
    It seemed to be easy:
    for c1 in(
    SELECT ITEM_NAME
      FROM apex_application_page_items a
      where application_id = :APP_ID
        and ... --- certain other conditions
        and my_function_render(condition_type, condition_expression1, condition_expression2) = 1
    loop
        --- if item rendered process the item
    end loop;I found an (undocumented) API wwv_flow_check+ that seemed to fulfill all my dreams, but
    here's what happened:
    check_condition - although i converted the condition_type back to condition code with help of apex_standard_conditions, the program works only with PLSQL_EXPRESSION and EXISTS.
    All other conditions in use (i tried ITEM_IS_NOT_NULL, REQUEST_NOT_EQUAL_CONDITION, ITEM_IS NULL, VAL_OF_ITEM_IN_COND_EQ_COND2, NEVER) return in an error
    ORA-06503: PL/SQL: Function returned without value
    Is there some trick for the check_condition function to accept all the other condition types as well or should i write those cases into my program? It seems pretty easy, but feels like reinventing the wheel...
    database 10.2.0.4, apex 3.1.1
    Thanks,
    Andres
    P.S i also tried the who other functions in the package
    check_cond_plsql_expresion works fine
    but check_condition_sql_expresion throws
    ORA-14552: cannot perform a DDL, commit or rollback inside a query or DML??
    Andres

  • PS5 Crashes in 32-bit Mode When Certain Actions Are run

    Running PS5 under OS 10.6.3 on a dual quad core intel machine w/14GB of ram, files are stored on an internal drive. Some actions will crash photoshop in 32-bit mode but not 64-bit. Is there anything that I can do to track down the problem and fix it?
    Thaks,
    mark

    Hi Chris,
    Thanks for jumping in.
    The next time PS crashes with an action we will get the crash report to send to you along with the action.
    The actions in question do not call on any third party plugin-ins.
    Thanks,
    mark

  • CPU running hot and fans maxed out while no programs are running

    My 2007 MacBook Pro 3,1 suddenly started running hot (CPU-85°C) and the fans are ramping up to 6000rpm for no apparent reason. Nothing but Firefox running. I just downloaded a new Security update. Is anyone else having these issues? Any fixes out there? Should I be concerned? Thanks.

    There are a couple of things to try.
    First, I always repair permissions before and after adding anything from Software Update. May be overkill but I've never had any issues with updates on any of the family's eight OSX computers.
    Second, are you running any anti-virus software other than ClamXav? Most commercial packages create more Mac trouble than they prevent.
    Third, use Activity Monitor (AM) to check for runaway background processes. IMPORTANT: to catch the culprits, you have to change Activity Monitor's default setting of "My Processes" to "All Processes." Otherwise, most of the likely suspects are going to fly under the radar. Also quit any apps you have launched. Click AM's "%CPU" column to sort by how much of the processor each background process is using. Let it run about a minute and observe what shows as the largest users. In either Leopard of Snow Leopard, no background process should show over about 5 percent. If anything is grabbing a lot of cycles, post the process name here and we can help you figure out what it is and how it can be corralled.

  • Uninstall of old products while new ones are running

    Maybe a little paranoid, but I need to ask. We recently did the parallel upgrade/migration for Messaging from 5.2hf1.25 to JES MS 6.1hf.02 on the same server. So, we have the old version still installed in a different path than the new one. I want to know if it will be safe to uninstall the old one using the uninstall tool, or should I just delete that directory? If use the uninstall tool that came with MS5.2, will it remove anything that both versions could possibly be using (packages/patches)?
    What about other iPlanet components like iDA, webserver?

    I can't imagine that uninstalling 5.2 would bother 6.x. ditto iDA
    When you;re running the uninstaller for iMS, you have the option to preserve the mailstore. If it's still in the same place, you will need to do that.

  • Disable keystrokes while script is running

    Is there a way using javascript to disable keystrokes while the script is running, then enable them once the script is done?
    99% of the errors reported with my scripts occur because someone presses a key while it is running
    Thank you

    There is a definite link between hitting a key while the script is running and causing an errror.  I just did it to get this screen shot:
    Here's one example:
    I have a script that refines a selection in a certain way, and afterward a user may choose to hit CTR-C to cut.  However if they hit CTR-C before the script is done it gives a GENERAL PHOTOSHOP ERROR and spits up a piece of code (see attached image).  This is happening hundreds of times a day because production is so fast, and I need a way to fix this.
    Any ideas?

  • How to remove a member from cluster while CQ (cq5.5) instances are running?

    Hello,
    I have a query:
    how to remove a member from cluster while CQ instances are running? And is there any particular log to check that it got removed?
    Thanks in advance..

    I might be wrong. AFAIK you do not have the option to remove without shutting down and modfying cluster.properties.
    However this usecase would be minimal because before going into production you would have verified your architecture.

  • Disable sleep while watching movies in quicktime

    I like to have the sleep feature enabled but it gets annoying when I'm watching movies and the computer falls asleep. Is there a way to customize this feature to automatically disable when certain programs are running?

    Yeah either buy Quicktime Pro so you can use the FullScreen feature, or use a different program like the free VLC or MPlayer to view your movies in FullScreen.
    Sleep is disabled when movies are played back in FullScreen. But it is not when played in a windowed mode. Otherwise you have to manually set the sleep options yourself when you want to watch a movie.

  • What items are only kept in the DC?

    I have read in serveral places that certain items are only persisted in the Distributed Cache and are lost when the DC servers are rebooted.
    Exactly what is lost when this occurs?
    thanks
    themush

    Hi Themush,
    Tags and document activities are saved only to the Feed Cache. Tags and document activities are not persisted to content databases.
    When the Distributed Cache service is stopped, tags and document activities are lost.
    So to maintain the tags and document activities, we can use graceful shutdown of the Distributed Cache service method.
    https://technet.microsoft.com/library/jj219613(office.15).aspx#graceful
    More reference:
    https://technet.microsoft.com/library/jj219613(office.15).aspx
    Best regards.
    Victoria
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • I like buying from the UK certain items, but now I don't see an option for E-Bay UK

    I used to be able to buy from UK by clicking the British flag (I'm in Canada), anyone know how I can do this now?

    The URL is ebay.co.uk.Bookmark it. Be careful, by the way, eBay UK has introduced the *beloved* Global Shipping Program. This means that while more items are now available to international buyers, any item over $20CDN (approx £10) is going to be charged appropriate Canadian duty and sales tax as well as a service charge of ~$5 before the purchase is completed and the seller can ship.

Maybe you are looking for

  • New to PRE and need feedback on my system build

    I played around with the trial version on my old computer and decided to go ahead and purchase PRE 9 and PSE 9 together. I have built a few PC's in my day and recently completed my current build running my purchased software. I was hoping that I coul

  • Running 2 Nvidia GTX470's in a Mac Pro ?

    Hello, I recently acquired TWO Nvidia GTX470's as a gift.  I would like to run in a new Mac Pro 8-core 2.4Ghz Westmere (2010).  I would like to do this in order to switch easily between AE, Nuke, etc. and Davinci Resolve, so one would be attached to

  • How do you find out what the font type is when you open a .eps file

    I've been sent a logo in a .eps file and I need to edit. However I can't see what font type has been used! Thanks Claire

  • Error with flex 4.5.1 using Squiggly

    these sample I wrote but give me errors i use flex 4.5.1 i copy it from Squiggly package what wrong <?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"                xmlns:s="library://ns.adobe.com/flex/spa

  • Attachment problem in E63

    Hi All, I got a new E 63 and initially when sending mails it allowed me to attach 5 to 6 pic in one mail and after two or three weeks time , when i tried to send attachment of 5 to 6 pic its not allowing me to send.I can only send 1 pic at time.its s