Mutually exclusive buttons

Hi All,
I have two buttons on a form and one is enabled and the other is disabled and greyed out. I want that when I click on the enabled button, to disable + grey out and to enable the other button. I created a property called disabled for the buttons, but I am not sure how to change it. My way would be with two cases and some boolean logic, but maybe there is an easier way.
Regards,
Nick

Just use an event structure... See attached LabVIEW 7.0 example.
Modify as needed.
LabVIEW Champion . Do more with less code and in less time .
Attachments:
DisableToggle.vi ‏46 KB

Similar Messages

  • Mutually exclusive button / keypad

    I try to design a LabView front panel with a set of arrow keys to control a motor.
    Let say I got an up arrow and a down arrow.  I want to have an exclusive state
    for those keys (both up and down cannot be pressed at the same time, like a radio
     button).
    I managed to achieve this behavior using a state machine (see attachement). 
    This work, but I wonder if there is a better way to do it.
    Any other suggestion.
    Attachments:
    button_keyboard.vi ‏23 KB
    button_keyboard.vi ‏23 KB

    Yes if you follow the description from David you can make your own as I did. OK I went perhaps somewhat nuts regarding the internal controls Just some hint if you do not want the frame select the classic display type radio button. You find this in the classic menu. Also remove the frame as the last edit. As it is hard to add buttons if the "frame" is selected to be transparent
    Edit: Thanks David
    Message Edited by Coq Rouge on 03-02-2010 03:32 PM
    Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
    (Sorry no Labview "brag list" so far)
    Attachments:
    button_keyboard_mod.vi ‏24 KB

  • How can I change the slide to 8 Radio buttons mutually exclusive?

    How can I change the slide to 8 Radio buttons mutually exclusive?
    I saw the example in Labview. but it only contains upto 5 radio
    buttons. I need 8. How can I change it? Is there any shortcuts?

    I made this with NI's radio button control found in the boolean palette.  Just resize the cluster border, and move the buttons to where you want.  To add a button, select one of them, hold down Control and Shift keys, then drag the button to a new location.  The button gets duplicated.  Do this until you have enough buttons.
    Message Edited by tbob on 10-31-2005 01:07 PM
    - tbob
    Inventor of the WORM Global
    Attachments:
    RadioButtons.PNG ‏2 KB

  • Mutually exclusive checkboxes

    Hi,
    I am writing code to make two checkboxes mutually exclusive. It works, but one cannot uncheck the checked box if one decides. It basically treats it as Radio button which is not what the desire result should be. Here is the code.
    if 
    (this.rawValue=1){
    CheckBox2.rawValue
    = 0;}-------for the first checkbox
    And
    if (this.rawValue=1){
    CheckBox1.rawValue
    = 0;}
    for the second.
    Is there anyone out there who knows what I may be doing wrong?
    Thanks
    LP

    Minor issue.  In javascript you test for equality using two equal signs, not one.  Each script should read: if (this.rawValue==1)
    What's happening now is that you're setting the rawValue equal to 1 each time you execute the if statement, so it's always re-checking the box on you.
    Also, you have probably already done this: the scripts should be in the Change event.  I couldn't tell from your code snippet.
    Cheers,
    Kevin

  • Are "Back to my MAC" and "Port Forwarding" mutually exclusive?

    I have been using APExtreme and Port Forwarding successfully for several weeks now. The PF is to allow access to game players on a PC which acts as a server on the web. All Good.
    One more thing, I have a ISP provided wireless modem/router to talk to the cable and the world. It seems to work either bridged or un-bridged.
    I have disabled the wireless on the ISP's modem/router. (Actually the ISP's device doesn't hold a candle to the APE.)
    Still all good.
    So the firewall is on in the APExtreme and none on the modem router, and I have a port defined for my gamers to get access to my server in the APExtreme.
    I now want to implement Back to my MAC on my MBP and my other Apple devices. I believe these use iCloud for which I have an account and it seems to be working well with my iPhone.
    In Properties, when I select BtmM, iCloud says communications will be slow if I have port forwarding on. Also I will not be able to use the router function in my Modem/router.
    I'd really like to have the modem/router firewall up, and do the port forwarding there, but the BtmM will likely not get through.
    So what does anyone suggest?
    Can I use BtmM and port forwarding without too much degradation?
    Please advise.
    Thanks
    Barry

    To best answer your question on whether the two are "mutually exclusive," let take a look at how Back to My Mac (BTMM) basically works.
    BTMM - General Requirements
    OS X Leopard 10.7.3+
    Active iCloud account. Each Mac & the AirPort router, that will be relying on BTMM, needs to be configured with the same account.
    A publicly reachable IP address for your router.
    A router that supports either NAT-PMP or UPnP. For AirPorts, be sure it is running 7.6.1+ firmware.
    BTMM uses TCP port 5354 and UDP ports 4500 & 5353 for communications.
    BTMM - Basic Communication Flow
    For a computer connected to the Internet via a router, BTMM "asks" the router for its configuration information. For a router, like your AirPort, that uses NAT-PMP, BTMM will ask the router to assign arbitrary public ports. In turn, the router will provide these port assignments (& the router's Public IP address) back to BTMM.
    BTMM then sends this information to the iCloud account. In background iCloud updates a special set of DNS entries to be used by BTMM. These entries are then made available to all BTMM clients using your iCloud account. When a computer, with BTMM enabled, uses your iCloud credentials, it automatically retrieves a list of all other computers/routers that are registered with the same account. All these devices should then appear under the SHARED section of the Finder.
    When attempting to connect to a remote computer (or router), BTMM creates a secure connection to that remote device using the information from the iCloud account.
    Once the connection is established, the devices can then communicate with each other.
    So potentially, unless you are using Port Mapping for any of the ports BTMM uses, they should not conflict.

  • Mutually exclusive checkbox in APEX 4.1

    I have 2 checkboxes on a tabular form - one is Yes the other is No.
    However, i need them to mutually exclusive i.e. if i select one, then the other should be de-selected. At the moment, all i can do is validate when saving the form which is frustrating for users.
    Can anybody advise of the easiest and simplest way to achieve this?
    Many thanks,
    Mark

    change it to radio boxes?

  • On a 3750 enhanced services port, are hierarchical queueing and standard queuing features mutually exclusive?

    When you configure hierarchical queueing on an enhanced services port, should one also configure the egress queue chararcteristics such as buffer space and thresholds, shaped/shared weights, egress priority queue, etc., that is all of those characteristics that one would configure if one were configuring a port for standard QOS.  In other words, on an enhanced services port, are the hierarchical queueing features using the modular QOS CLI and the standard egress queueing features supposed to be used together or are they mutually exclusive?

    Hi Christine,
    Answer to your confusion is in the following document.
    http://www.cisco.com/en/US/docs/switches/metro/catalyst3750m/software/release/12.1_14_ax/release/notes/OL464603.html#wp58682
    On an ES port, you can use LLQ (enabled with the priority policy-map class configuration command) and the egress priority queue (enabled with the priority-queue out
    interface configuration command). By using these two features, you can
    give priority to a class of traffic and avoid losing traffic when the
    switch is congested. In previous releases (before the egress priority
    queue was supported), you could put a traffic class into the
    strict-priority queue, but congestion at the egress queue-sets could
    result in the dropping of that priority traffic. The priority-queue out
    interface configuration command enables you to prioritize the same
    traffic class at the egress queue-sets, ensuring that priority traffic
    reaches the hierarchical queues and is processed with priority.
    you can also fine tune the Queue-sets for your desired results.
    http://www.cisco.com/en/US/docs/switches/metro/catalyst3750m/software/release/12.2_50_se/configuration/guide/swqos.html#wp1162303

  • Report based on mutually exclusive items:

    Hi guys,
    I am trying to create a parameterized report based on mutually exclusive items:
    I have a Select List item "P1_Property_type" which has these values ( office , apartment ),
    if 'office' is chosen then the report should consider ONLY the value of the select list item "P1_beds"
    if 'apartment' is chosen then the report should consider ONLY the value of the select list "P1_size"
    I used this query, but it does not seem to wrok:
    select * from realestate where
    unit_type = decode (:P1_PROPERTY_TYPE,'null',unit_type,:P1_property_type)
    and
    ( br= decode (:P1_beds,'null',br,:P1_beds) or size= decode (:P1_size,'null',size,:P1_size) )----------------
    I hope my question is clear
    Regards,
    Fateh

    Assuming you're using the string literal 'null' rather than NULL.
    "it does not seem to work" because of this:
    ( br= decode (:P1_beds,'null',br,:P1_beds) or size= decode (:P1_size,'null',size,:P1_size) )Assuming you pick "office" and :p1_beds is set and :p1_size is 'null', you end up with a statement that is the equivalent of:
    select * from realesate
    where unit_type = 'office'
    and (br = :p1_beds
    or size=size)    <--------------problemand your :p1_beds restriction is then ineffective.
    I'm not a fan of decode to do this logic.
    I prefer a clear statement of exclusive predicates which the optimizer can sometimes deal with more effectively.
    e.g. assuming that it's irrelevant whether you pick office or appartment because the relevant parameter :p1_beds or :p1_size will be set appropriately:
    select * from realestate
    where
          (:p1.property_type is null / = 'null'
    or    (:p1.property_type is not null / != 'null'
    and    unit_type          = :p1_property_type))
    and   (:p1_beds          is null / = 'null'
    or    (:p1_beds          is not null / != 'null'
    and    br                 = :p1_beds))
    and   (:p1_size          is null / = 'null'
    or    (:p1_size          is not null / != 'null'
    and    size               = :p1_size))Note that I've provided alternatives depending on whether you're actually using NULL or a magic string.

  • Oci8 and oracle extensions mutually exclusive?

    Does anybody know if the following extensions are mutually exclusive.
    php_oci8.dll
    php_oracle.dll
    I can't getting both to load.
    They can be uncommented in the php.ini and loaded individually but if both are used this causes a fatal error and apache fails to start and doesn't leave anything in the log file.
    I am currently using php4.3.6 / NT / Apache 1.3.12 (Win32)
    I am fairly new to php and don't seem to be getting anywhere fast, any help would be appreciated.
    thanks
    Neil W.

    I have them both uncommented and usable. I'm using Apache 1.3.28.
    Maybe your four-year old Apache version is the problem?
    -- CJ

  • How to make ODI scenario sessions run mutually exclusive

    We want to restrict the end user of the ODI scenario to be able to run only 1 instance of the scenario at once. Is it possible in ODI ? Basically we want the ODI scenario sessions to be mutually exclusive ? if one is running, and if user tried to run another one, it should not allow him to do so.
    Please note that we are aware of how to handle parallel runs while coding for the same, but here we don't even want to get to a situation like that.
    Thanks,
    Ankit

    Hi Ankit,
    Trying to help...
    Two solutions -
    Solution 1:-
    Create a dedicated agent for that particular execution and for that agent set the maximun number of execution as 1.
    (so only one session will be executed at a time)
    Solution 2:-
    Create a log table/ (lock table) to maintain the status of the execution . (column - Session state)
    When ever an execution starts change the satus of the log (lock) table column as "Running"
    and once the session is completed change the status of the column as "Not Running"
    And in the package (starting) put a condition variable to check the column - Session state of the table log table/ (lock table)
    if its running exit the application , else continue.
    Hope this helps.
    Regards,
    Rathish

  • Nexus 5500 - unexplainable mutual-exclusion error when using "conf sync" mode

    We have 2 Nexus 5548UP switches which are running NX-OS 7.0(5)N1(1).
    I'm trying to reconfigure an interface, which was previously configured in conf t (local) mode on both switches, in conf sync mode.
    Original config:
    conf t:
    interface Ethernet104/1/33
    inherit port-profile DevServers
    I've changed the configuration so that the vlan was manually configured and the port-profile was removed from the interface. Otherwise, it was not possible to configure a Port-profile inheritance in conf sync mode (as this was in conflict with the config in local mode).
    Current config:
    conf t:
    interface Ethernet104/1/33
    switchport access vlan 13
    However, when I try to configure a PP inheritance for this interface in conf sync mode, I'm getting the same error as if there were a conflict:
    conf sync:
    interface Ethernet104/1/33
    inherit port-profile DevServers
    commit
    Failed: Verify Failed
    Status: Verify Failure
    Error(s):
    Following commands failed mutual-exclusion checks:
    interface Ethernet104/1/33
            inherit port-profile DevServers
    When I configure another interface (not in use) with exactly the same configuration (so access vlan 13 in conft mode on both switches, and then a PP inheritance in conf sync mode), it is accepted and the configuration is correct. It looks like something is stuck within the NX-OS switch which makes it believe that the PP inheritance is still configured in conf t mode...
    I've had this issue before on another interface, and found somewhere on the internet that the NX-OS keeps an internal database, which is mysteriously not always in sync with the current running-config, and that this could be forece manually with the command "resync-database" in conf-sync mode. On that other interface, this resolved the issue, but this time, it does not work and I keep getting the above error when I want to configure the port-profile.
    Any suggestions?

    Ok... I found the source of the problem (looks to be buggy behaviour).
    Here's my recent blog post that covers a detailed description and a fix/workaround:
    http://nexp.com.ua/technologies/nx-os/troubleshooting-nx-os-config-sync/
    Hope this will help anyone.

  • Mutually Exclusive DropDowns

    Hi, All:
    I am working on a form in which I need to have a user rate four items from 1-4 in comparison to each other. Initially we were going to use 4 drop downs each drop down containing the four options allowing the user to choose. The problem is, of course, that the user could choose option 1 four times in a row. So I need some way to allow the user to rate these four items from 1 - 4 but in a mutually exclusive manner. the image below shows the problem (they're in spanish but the text isn't important). Here item 1 and item 4 were both selected as 1 which is what we want to prevent. Any suggestions would be greatly appreciated. Thanks.

    Hi,
    You could have a script in the preOpen event of all of the four dropdowns that would set the display items, depending on the previous selections in the other dropdowns.
    There is an example here for populating dropdowns: http://assure.ly/jcTahK.
    Give this a try in the preOpen event of DropDownList1:
    // Remove items previously selected
    this.deleteItem(DropDownList2.selectedIndex);
    this.deleteItem(DropDownList3.selectedIndex);
    this.deleteItem(DropDownList4.selectedIndex);
    Hope that helps,
    Niall

  • Standard way of mutual exclusion control for rfc connection

    Dear expert,
    I want to know the standard way of mutual exclusion control
    for rfc connection.
    I am going to create JAVA screens for ERP ABAP objects.
    As for SAP GUI screen, pessimistic locking is used when editing objects.
    On the other hand, pessimistic locking is defficult for JAVA screens,
    since most of lock objects on ERP are not available for RFC.
    Besides, I'm afrraid if locks are correctly deleted
    when something bad happens on screen.(i.e. Users close browsers.)
    Do you have any recommendations?
    Regards,
    Fukuhara Yohei

    Hello, we raised an OSS note.
    They answered it was not possible to lock tasks.
    Task completion is like a race, the first it completes it wins.
    Regards,
    Marco.

  • Mutually exclusive set of items

    Hi,
    I have 5 check boxes. check box 5 - should not be available if any of the 4 check boxes are checked. and also if check box 5 is checked, none of the other 4 check boxes should be enabled. Could any one give me a suggestion about how to achieve this? Thanks,
    Lakshmi

    Hi Lakshmi,
    If I'm interpreting your question correctly, you don't have a simple case of 5 mutually exclusive choices (1 or 2 or 3 or 4 or 5) - if you do then use a Radio Group.
    I'm thinking, however, that your user can choose multiples from 1-4 but, if they do then 5 is not available e.g. they can choose (1 and 3 and 4 but not 5) or they can choose (5 only).
    One approach would be to define a Validation and check at submit time. Another approach would be to code some Javascript to enable/disable the checkboxes.
    My preference would be for the Validation (and not just because I don't know Javascript).
    Looking at it from a useability perspective, I'd prefer to give the user an explanation on the screen - say a label that indicates which combinations are valid or put checkboxes 1, 2, 3, and 4 in a different region and indicate that the regions are 'mutually exclusive' - and then 'trap' any error they make. Essentially, I'm advocating enabling the user to give the correct response rather than controlling their every mouse click. If it's not obvious what an appropriate choice is, they'll get very confused if a checkbox suddenly become unavailable because they've clicked somewhere else.
    I'd be keen to see what the Javascript coders can come up with, though.
    Cheers,
    Bryan.

  • Mutually Exclusive Calendars

    I have seen a post in the past about Exception dates in Calendars and options to define them similar to the options available for "Recurring Tasks" in Project. I have a situation where I would like to create "Mutually Exclusive" calendars
    whereby there are some tasks that cannot be worked on on the last Friday of each month and conversely there are tasks that can only be worked on on the last Friday of the month. 
    I reckon Dale will know this, does anyone else?
    Dominic Moss MAPM, MCTS, MCITP, MCT
    Wellingtone PM News
    Wellingtone EPM Site
    Wellingtone PM Recruitment

    I don't want to repeat what others have told except I would like to emphasize on the finer aspects of creating these two base calendars.
    Create one calendar (Change Working time option, Project ribbon), say "Last Friday nonworking" calendar, with Mon-Friday (is working) in default work week and insert a monthly exception with last Friday is nonworking
    Create another calendar say "Last Friday working" calendar, with Mon-Thursday as non-working day in the default work week, and insert weekly exception with Friday is nonworking and another monthly exception with last Friday is working (if you have
    multiple exceptions on the same day the priority is for daily exceptions, then monthly exceptions, then weekly exceptions) - this is quite trick and so the screenshots -
    http://i.imgur.com/yDiqJgd.png,
    http://i.imgur.com/T8UTxdH.png. http://i.imgur.com/J1HvJoE.png
    Then, open the task select the Advanced tab and select the Calendar: dropdown to either "Last Friday working" or "Last Friday nonworking" to schedule the task.
    Hope this give you more clarity.
    Sai PMP, PMI-SP, MCTS Project, MVP Project

Maybe you are looking for

  • Settlement Rule for Process order

    Hello While creating process,subject to other configuration,the settlement rule when checked in header,there is default receiver category for material. In customizing,do we create such a rule or same is by default Thx

  • My I Phone 5 Screen shows bright white apple logo on black background continuously

    My I - Phone 5 is continuously showing white apple logo on black background. It started this morning after my phone was charging overnight.

  • Develop Mode:  Why Do Some Controls Do Nothing

    I recently edited a 150 photos.  I notice that certain controls in develop mode have no impact when I make adjustments. A good example is Sharpening. There are no changes to the Histogram (you can tell by the motion) or in the image swatch shown abov

  • I can't install java update v1.5.0_02-b09 please help!!

    java 2 runtime enviornment, v1.5.0_02-b09 i can't install it. windows installer says the 'installer server is not responding'. is there any other way i can get this update?? please help!!!

  • Bug when trying to commit for the first time

    I have a bug that I tried to solve but can't find any solution till now. I have a table that contains many rows and from this table I can press edit or add to open a new page that I can edit or add a new record for this view the page that contains th