Allowing only one switch to be toggled at a time - is there a better way?

I have an external device that I intend to control which will have a number of presets.
It is critical that the user only be able to toggle one switch at a time thru LabVIEW. A switch must be un-toggled (is that even a word?) before another switch can be toggled.
In order to accomplish this, I created a .vi with a lattice-work of property nodes and compound arithmetic ORs. Though my .vi is clean, it just seems that there should have been an easier way to accomplish this.
Thoughts, anyone?
Cheers!
-darren
Attachments:
indexer test.vi ‏121 KB

Darren
A radio button control will not exactly fit your needs because you require that the active button is turned off before a new button can be activated.
One possibility would be to use an event structure and check if the state change is allowed before feeding it to the rest of the code.
See attached LabVIEW 7.1 example.
Everything will also be MUCH simpler of you e.g. combine your controls into an array or cluster. It cannot be healthy to fill an entire diagram with duplicate code.
I am also not sure why you read all these value properties. The controls are right there to be tapped by a direct wire .
LabVIEW Champion . Do more with less code and in less time .
Attachments:
IndexerTest002.vi ‏42 KB

Similar Messages

  • Locking a JSP Page i.e allowing only one user to access it at a time

    Hi,
    I have web application where multiple users can log in at the same time.
    I have a JSP where a user is presented with a list of executable items.It is quite possible that at the same time more that one user tries to execute the same item.I want to disable this. i.e at a time only one user should be able to execute the item.
    Currently what i can think of is putting an extra column in the database...saying that this item is locked and you cannot access it until unlocked.But then this would involve a round trip to database.I want to avoid it, and do some coding in java code itself.
    But i dont know how to proceed.
    Any Help......

    sorry for the misdirection :(
    yes..try using the synchronizing for the run process for of the item in the action class.
    I shall try to provide you with the code changes, if can you please provide the back end code doing the job u said

  • Only one Application can be created at a time?

    We are using enhanced model of SAP-WCM and are in the EHP6 version. We have additional applications, in addition to main application. We do not use Work permit.
    Our users are creating work approval, applications & WCDs, manually as well as automatically from PM order. During manual creation of an application, if the user selects more than one options, system gives error and allows only one application to be created at a time. If more than one applications are required, he has to create them one by one. Similarly, in automatic creation of WCDs, if there is requirement of additional applications, users have to create additional applications manually.
    Our problem is that the user often creates only one application or goes with the auto created applications & WCD, ignoring the requirement of additional applications. We wish that somehow if system can force the user to create additional applications required for a particular job and does not allow to prepare or issue the WCM objects until all required applications are created. For this it is required to first identify which applications to be created.
    Our suggestion is, when we go for creation of application, it gives option to select type of applications with check-boxes. All the check-boxes should appear 'checked' by default and user has to 'uncheck' the application(s) not required for the particular job, before pressing OK button. On pressing the OK button, these choices must be stored in some table from where the system keeps track and prompts the user, until all the applications are created.
    The experts in WCM are requested to advise if this requirement could be met in our present configuration of WCM. Is it possible using work permit? If yes, how can we implement work permit?
    Regards,
    M.S.Sachan
    ERP-PM Core team

    This forum is intended for questions about old, pre-G3 hardware, and doesn't get much traffic. Hence it's not the place where you'll be most likely to get help with your problem. I'd suggest you ask this question in the Mac OS X 10.5 forum; you'll be more likely to get assistance there.
    Regards.

  • Tacacs authentication fails for one user account for only one switch

    Hi,
    I am having an scenario, where as Tacacs authentication fails for one user account for only one switch.
    The same user account works well for other devices.
    The AAA configs are same on every devices in the network.
    Heres the show tacacs output from the switch where only one user account fails;
                  Socket opens:        157
                 Socket closes:        156
                 Socket aborts:        303
                 Socket errors:          1
               Socket Timeouts:          2
       Failed Connect Attempts:          0
            Total Packets Sent:       1703
            Total Packets Recv:       1243
              Expected Replies:          0
    What could be the reason ?
    No errors on ACS server; same rights had been given to the user account.
    Thanks to advise.
    Prasey

    Hi there,
    Does the user get authenticated in the ACS logs?
    reports and activity----> failed attempts
    ro
    reports and activity----->  passed authentications
    That will help narrow it down.
    Brad

  • Allow only one set of parameter values for all worksheets

    I would like to " Allow only one set of parameter values for all worksheets ", but prompt before executing the worksheet. This function is a great time saver, but the users on occasion would like to change at the least one of the parameters. Is this possible? What setting do I use? I've tried various combinations of the " After opening a workbook: " on the options page. " Run query automatically", " Don't run query (leave sheet empty) ", and " Ask for comformation ". I would have thought that "Ask for comformation " was the trick, but no. I'm considering putting a do nothing parameter that has the setting of " Allow different parameter values for each worksheet. " so that it will keep all the others, default this one, but prompt for a possible change.
    Any thoughts...
    Thanks,
    Jamie

    Hi Jamie
    Even though you have the same parameter for all worksheets a user can still choose what to use on a worksheet. Its just that if they click to another worksheet then that parameter will be applied.
    Which version of Discoverer are you using?
    Best wishes
    Michael

  • Unable to open firefox - get message that " a copy is already open and only one copy can be open at a time. I have dragged the app to the waste basket and downloaded another firefox app. However same result". I have a IMAC , V.10.6.3.

    Unable to open firefox - get message that " a copy is already open and only one copy can be open at a time. I have dragged the app to the waste basket and downloaded another firefox app. However same result". I have a IMAC , V.10.6.3.
    I get above message when I click on the firefox icon.

    This worked, I used the method described in this link http://forums.mozillazine.org/viewtopic.php?t=365156, and opened the Mozilla profile screen with the terminal on my mac, using the language given in the links. Then I duplicated my original profile to save the bookmarks, etc. Put them in a folder listed Duplicate profile with the date. With the open profile screen, I deleted my original profile, created new profile folder and then a new profile. Note that profile cannot be created in the system library, it must be created on the disc, because the library will not allow writing into it. After I created my new profile folder, I dragged all my old information into it, and it worked. Firefox closed and the error disappeared. You must be VERY careful to make sure Firefox is closed anytime you are doing anything with the profile folders. I think that is what caused my original problem.

  • Could you please tell me why as a Brit resident in Japan therefore having a billing address that is Japanese is forced to only get service from the Japanese online store? Is there not some way of allowing me to select movies and music to buy and download

    Could you please tell me why as a Brit resident in Japan therefore having a billing address that is Japanese is forced to only get service from the Japanese online store? Is there not some way of allowing me to select movies and music to buy and download from other stores. Why do am i forced to try to nread Japanese when I have selected English as my language. The price for Downloads is no different and even if it was I am happy to pay. This also applies to Movie rental which is crazy and extremely restrictive. I a supposed GLOBAL community why does Apple do this.

    You can buy ONLY from the itunes store of your country of residence (As proven by valid billing address of credit card) and ONLY while inside the borders of that country.
    These are the terms of the itunes store.

  • Switching a panel to another panel in the same frame.Is there a better way?

        public void actionPerformed(ActionEvent e) {
            if (e.getSource() instanceof toolButton){
                westPanel.remove(optionPanel);
                westPanel.setVisible(false);
                toolButton tb = (toolButton)e.getSource();
                optionPanel = tb.getPanel();
                westPanel.add(optionPanel);
                westPanel.setVisible(true);
        }This code above is what I used to execute when one of several JButtons is being pressed.
    In this program, one of the JPanel will be automatically switched to another JPanel when you press the respective JButtons.
    Here are my questions:
    1. Right now, I use westPanel.setVisible(false) and then change some stuff and then invoke westPanel.setVisible(true) to make it visible again. Although this works, I have a feeling that this is not quite right. I feel that there should be some better way to do this, switching the panel and request the program to redraw the replacing JPanel. Is there a better way for this?
    2. Most of the time, the JPanel changes the size according to the components on it. I have tried several LayoutManager, but it seems that those components have more priority. Is there a way to completely fix the JPanel so that they stay the same size?

    Look into using a Card Layout rather than manually swapping the panels: http://java.sun.com/docs/books/tutorial/uiswing/layout/card.html

  • Allowing only ONE instance of a PDF to be open

    I'm trying to work out a new system for proofreading and commenting in our business using the Comment and Markup tools in Acrobat 8 Professional. I'd like to allow multiple users on a network to interact and markup a PDF easily. I'd like to make it so that one of two things can happen:
    a) Only one instance of a PDF can be opened at once on the same network. That is to say, if a user on one computer opens a PDF, another user on the network on a different computer cannot open that same PDF at all, until the first user has closed it. Also, I'm not sure if the functionality for this would be implemented in Acrobat or the operating system (Mac OS X 10.6, to be precise).
    b) Multiple users can open a PDF simultaneously, and markups and comments from all users are somehow saved.
    I'm sure it's more of a possibility for a) to happen, but perhaps I'm wrong. Anyway, I hope there is a solution out there! Thanks for all your help!

    George,
    Thank you for your helpful reply. It does appear that Shared Reviews is capable of providing our business exactly what we need in this regard. I have found that Acrobat 8 does support Shared Reviews, but it only does so with Network Folder locations and WebDAV folders as locations for comment servers. I know how to get to the process to set up Shared Reviews, but not how to designate or set up a folder as a comment server using Network Folders or WebDAV. Unless you just so happen to know about that process as well, I will post a new thread, since the problem of finding a solution has been solved, but the new problem of implementing it has risen.
    Although using Acrobat X Pro to share PDFs and collaborate automatically using Acrobat.com sounds mighty tempting...

  • Allow only one IP ADDRESS from a web service call

    Hi gurus,
    i'm working in an ECC 6.0 with stack18 (SOAMANAGER tcode).
    I have defined a new web service definition (with SE80 tcode) and i see it in SOAMANAGER tcode.
    I have to limit to one ip address when 3rd party client invoke it; it's possible to do this with an authorization object or by some SOAMANAGER value filled in order to have only one ip address invoked.
    Thank's in advance.
    Maurizio Ortolani

    Hi,
    Did you resolve your problem Because We want to implement the same functionality in our SAP Landscape.
    Thanks in advance.
    Thanasis

  • Two Macs - only one can connect to Airport at a time

    Starting today, after 10 days of successful operation, when I came home I couldn't connect to my home (new "square" Airport Extreme) network with my Core 2 MacBook Pro. My wife was happily connected on her PowerBook G4.
    Puzzled, I tried a few obvious things:
    Airport OFF, Airport ON ... no joy
    Logout and back in ... no joy
    Restart ... no joy
    Then I turned my attention to the Base Station:
    Restart ... nope
    Change to "None" security ... nope
    Change back to "WPA Personal" ... nope
    Humbled, I stopped and had dinner. My wife's G4 went to sleep, my Intel went to sleep. Now it gets interersting! My Intel woke up first and immediately joined the network -- I'm happy till I hear my wife say SHE can't get connected.
    To make a long story short, I have two laptops on my desk, and only one can connect at a time! This is BIZARRE. Turn off Airport on either one and its buddy gets a connection immediately, and vice versa. Sleep the connected one and the other connects.
    I am out of ideas.
    Errors on the G4:
    Feb 28 20:09:45 localhost configd[35]: WirelessConfigure: 88001003
    Errors on the MBPro:
    various 88001006 errors as reported by others in this forum.
    Both Machines at all the latest updates; the MBPro has the new Extreme software installed from the CD that came with the new hardware.
    I would welcome suggestions ...
    MacBook Pro Core 2   Mac OS X (10.4.8)  
    G4 Cube   Mac OS X (10.4)  

    Software Update is not offering me any Airport updates on the G4 (or the Intel).
    The recent Airport Update, "AirPort Extreme Update 2007-001", is of course only for Intel Macs.
    They could only be "trying to use the same IP address" if they were not configured to use DHCP, but they are configured to use DHCP, and whichever connects does get an address in the 10.0.1.[2-200] range so I think that's not the problem.

  • HELP !! only one ASM instance  up at any given time on a 2 node RAC cluster

    OS: Solaris 10
    Oracle: 10.2.0.4
    Problem: Installing ASM, dbca hangs, and errors out with End of communication channel.
    Only one ASM instance can be brought up at any given time
    PLEASE HELP !!!!
    - nk

    alert log
    ======
    Thu Oct 1 23:09:54 2009
    lmon registered with NM - instance id 1 (internal mem no 0)
    Thu Oct 1 23:09:54 2009
    Reconfiguration started (old inc 0, new inc 12)
    ASM instance
    List of nodes:
    0 1
    Global Resource Directory frozen
    Communication channels reestablished
    Thu Oct 1 23:24:59 2009
    Errors in file /oracle/admin/+ASM/bdump/+asm1_lmon_1999.trc:
    ORA-00481: LMON process terminated with error
    Thu Oct 1 23:24:59 2009
    LMON: terminating instance due to error 481
    Thu Oct 1 23:24:59 2009
    System state dump is made for local instance
    Thu Oct 1 23:24:59 2009
    Trace dumping is performing id=[cdmp_20091001232459]
    Thu Oct 1 23:25:00 2009
    Instance terminated by LMON, pid = 1999
    Thu Oct 1 23:25:03 2009
    Starting ORACLE instance (normal)
    LICENSE_MAX_SESSION = 0
    LICENSE_SESSIONS_WARNING = 0
    Interface type 1 bge1 192.168.10.0 configured from OCR for use as a cluster interconnect
    Interface type 1 bge0 10.134.246.32 configured from OCR for use as a public interface
    Picked latch-free SCN scheme 3
    Using LOG_ARCHIVE_DEST_1 parameter default value as /oracle/product/10.2.0/db_1/dbs/arch
    Autotune of undo retention is turned off.
    LICENSE_MAX_USERS = 0
    SYS auditing is disabled
    ksdpec: called for event 13740 prior to event group initialization
    Starting up ORACLE RDBMS Version: 10.2.0.4.0.
    System parameters with non-default values:
    large_pool_size = 12582912
    instance_type = asm
    cluster_database = TRUE
    instance_number = 1
    remote_login_passwordfile= EXCLUSIVE
    background_dump_dest = /oracle/admin/+ASM/bdump
    user_dump_dest = /oracle/admin/+ASM/udump
    core_dump_dest = /oracle/admin/+ASM/cdump
    asm_diskgroups =
    Cluster communication is configured to use the following interface(s) for this instance
    192.168.10.1
    Thu Oct 1 23:25:03 2009
    cluster interconnect IPC version:Oracle UDP/IP (generic)
    IPC Vendor 1 proto 2
    PMON started with pid=2, OS id=17923
    DIAG started with pid=3, OS id=17925
    PSP0 started with pid=4, OS id=17927
    LMON started with pid=5, OS id=17929
    LMD0 started with pid=6, OS id=17931
    LMS0 started with pid=7, OS id=17933
    MMAN started with pid=8, OS id=17937
    DBW0 started with pid=9, OS id=17939
    LGWR started with pid=10, OS id=17941
    CKPT started with pid=11, OS id=17943
    SMON started with pid=12, OS id=17945
    RBAL started with pid=13, OS id=17955
    GMON started with pid=14, OS id=17957
    Thu Oct 1 23:25:04 2009
    lmon registered with NM - instance id 1 (internal mem no 0)
    Thu Oct 1 23:25:04 2009
    Reconfiguration started (old inc 0, new inc 14)
    ASM instance
    List of nodes:
    0 1
    Global Resource Directory frozen
    Communication channels reestablished
    Thu Oct 1 23:40:09 2009
    Errors in file /oracle/admin/+ASM/bdump/+asm1_lmon_17929.trc:
    ORA-00481: LMON process terminated with error
    Thu Oct 1 23:40:09 2009
    LMON: terminating instance due to error 481
    Thu Oct 1 23:40:09 2009
    System state dump is made for local instance
    Thu Oct 1 23:40:09 2009
    Trace dumping is performing id=[cdmp_20091001234009]
    Thu Oct 1 23:40:10 2009
    Instance terminated by LMON, pid = 17929
    Thu Oct 1 23:40:12 2009
    Starting ORACLE instance (normal)
    LICENSE_MAX_SESSION = 0
    LICENSE_SESSIONS_WARNING = 0
    Interface type 1 bge1 192.168.10.0 configured from OCR for use as a cluster interconnect
    Interface type 1 bge0 10.134.246.32 configured from OCR for use as a public interface
    Picked latch-free SCN scheme 3
    Using LOG_ARCHIVE_DEST_1 parameter default value as /oracle/product/10.2.0/db_1/dbs/arch
    Autotune of undo retention is turned off.
    LICENSE_MAX_USERS = 0
    SYS auditing is disabled
    ksdpec: called for event 13740 prior to event group initialization
    Starting up ORACLE RDBMS Version: 10.2.0.4.0.
    System parameters with non-default values:
    large_pool_size = 12582912
    instance_type = asm
    cluster_database = TRUE
    instance_number = 1
    remote_login_passwordfile= EXCLUSIVE
    background_dump_dest = /oracle/admin/+ASM/bdump
    user_dump_dest = /oracle/admin/+ASM/udump
    core_dump_dest = /oracle/admin/+ASM/cdump
    asm_diskgroups =
    Cluster communication is configured to use the following interface(s) for this instance
    192.168.10.1
    Thu Oct 1 23:40:13 2009
    cluster interconnect IPC version:Oracle UDP/IP (generic)
    IPC Vendor 1 proto 2
    PMON started with pid=2, OS id=26086
    DIAG started with pid=3, OS id=26088
    PSP0 started with pid=4, OS id=26090
    LMON started with pid=5, OS id=26092
    LMD0 started with pid=6, OS id=26094
    LMS0 started with pid=7, OS id=26096
    MMAN started with pid=8, OS id=26100
    DBW0 started with pid=9, OS id=26102
    LGWR started with pid=10, OS id=26112
    CKPT started with pid=11, OS id=26114
    SMON started with pid=12, OS id=26116
    RBAL started with pid=13, OS id=26118
    GMON started with pid=14, OS id=26120
    Thu Oct 1 23:40:13 2009
    lmon registered with NM - instance id 1 (internal mem no 0)
    Thu Oct 1 23:40:14 2009
    Reconfiguration started (old inc 0, new inc 16)
    ASM instance
    List of nodes:
    0 1
    Global Resource Directory frozen
    Communication channels reestablished

  • My time capsule will allow only one machine to connect to the internet at a time. Connection sharing is "off" on the Airport Utility. When I try to share an IP address I get the message that "DHCP range that I entered conflicts with the WAN IP address" I

    Suddenly, my time capsule will not allow more than one computer to connect to the internet at a time. On the Airport Utility on the internet tab, Connection Sharing is "Off (Bridge Mode)" When I try to change it to sharing an IP address, I get two messages that the beginning and ending DHCP addresses that the DHCP addresses I've entered conflict with the WAN address of my Apple wireless device."
    Any ideas?
    Thanks

    I use a DSL to connect to the internet. The modem is a Westell C90-810030-06. Two things happened in connection with the fail. I upgraded the firmware in both my Time Capsule (connected to the DSL) and the Airport Extreme (connected to my printer--used to extend the network). I also upgraded my Colof Nook to the Android Faux Tablet version. I can't imagine that that is creating some sort of mismatch.
    I have now downgraded the firmware on the Time Capsule to 7.4.1 which is what I had before. Fortunately, I found the trick to downloading the older airport utility to find the older firmware. All the older versions disappeared from my computers.
    I still have the same problem. Wifi works fine. If a second device connects to the wifi, then it works fine, but the first no longer has a connection.
    And my Airport Extreme is not working at all. It cannot be seen by the computer. I tried resetting it. I'm going to connect it by ethernet and downgrade the firmware on it.
    I appreciate any help. This is so frustrating.

  • Need to allow only one of 2 buttons in a region to respond when enter pressed

    Hi,
    Apex version 4.2
    Theme: Blue Resposive 25
    My page has 1 region with a sub-region inside it.  Both regions have a button. When I hit enter it seems the button in the sub-region is the one that gets actioned.  I don't want this to happen I want the other button to run.  Is this possible ? 
    Also when I google around looking for answers to this issue I see references to apex page items having a setting value of 'Submit when enter pressed' which can be changed to Yes or No.  I simply can't find that setting in my items.  Perhaps it has been removed in apex 4.2 ?
    Thanks
    Steve.

    Daggers wrote:
    Thanks Scott,
    That is useful information.  I turned on debug and I can see that my problem is actually that neither button is being submitted on enter.
    Are you able to tell me where the setting 'Submit when enter pressed' ? is found.  I think this is probably the key to my issue.
    Steve.
    It's in the item's Settings section. However, it's only available on Text and Password items.

  • Reg: Document type should allow  only one  Material Type or a number series

    Dear Experts,
    In my project , clients requirement is to restrict the Material Type or  the number range assigned to a Matreial Type for a perticular  PO Document Type. We have  one document  type for Local Work Order -YLWO in which we  want to  enter the DIEN material type  material code only. since we want to use the Po document type to procure service from local vendor and same time we dont want to use the SERVICE Entry Sheet for the external service. Please guide me...
    My opinion is  -- We can try with USEREXIT  or BADI.
    If I am right then can any body suggest me Badi or USEREXIT name....
    We are using 4.6C so I am facing some problem .
    Thanks in advance.
    Regards
    Dibya

    Check the following  BADI with your ABAP Consultant  
    ME_PROCESS_PO_CUST
    I have used this BADI for controlling the type of vendors  according to PO document type. Currently I do not have access key to check the fields in this user exit. Check with your ABAPER on this whether it can fulfill your requirement.
    The use of item category D results into the service entry sheet. If you want to use DIEN material type then you have to do GR.
    what is the difference from your requirement ???
    Service entry sheet is nothing but the GR only.
    DEIN material type is used basically from SD or Customer service module.
    please make clear to forum what is your some problem by using 4.6C. It is too generic a statement.

Maybe you are looking for

  • Mp3 ( from a laptob that is NOT a mac) files on Ipod.

    I want to buy an ipod touch 4th genration. And i have a Vaio laptob where i have all my music for dj' . I need to know if all the mp3  files that i have in my laptob ( not a mac) can be played on the ipod touch fourth generation when I download Edjin

  • How Do I Convert LV7.1 Datalog Files to LV8 Format?

    I have several LabVIEW 7.1 datalog files that generate Error 71 (File data type conflict) when I try to open them in LabVIEW 8 using the new Open/Create/Replace Datalog vi with my original typedef constants wired to the record type terminal.  Likewis

  • E-Mail to Fax with Automator

    I would like to create a script that will automatically take e-mails received on a certain account in Mail.app and fax them out to a known number, using the print-to-fax functionality that is built into Tiger. Is this something that would be possible

  • Google Spreadsheet Data Connection

    Hi all, I have been playing with the Add-On Google Spreadsheet Data Connection and I am not able to publish my Xcelsius design model. I get the same error that Natasha mentions in her blog (http://www.natashascorner.com/2009/04/24/connecting-xcelsius

  • XI as alternative to LSMW?

    Has anyone used XI as a data conversion tool (instead of using LSMW)? Is this feasible and would that make sense to do? Of course, I realize that the standard load programs/tools that come with the Data Transfer Workbench would still need to be used,