How can you change a drop down menu's selection in a case statement?

Hi,
I am trying to an array finding vi. This VI will take an existing xml file and after the user has selected his/her equipment, input, output, and frequency it will put all of those options into a string and search the xml file for that exact array name and display it on an output screen. The problem I am having is that my input and outputs selection needs to be a little different depending upon the equipment selected. I thought that I could use a case statement to change the input and output selectable options, but I have run into many snags with it. For one everytime I place a new Input and Output drop down menu in the case statement it wants to place a new one in the front panel (I only want one input and output not three I have two inputs and outputs hidden right now). I believe I am using the case statement wrong... Can anyone help change my input and output selectable options depending upon the equipment selected. Attached is my xml file, Array Find.vi (the original one), and Array Find_Test.vi (this is the one I am trying to modify).
Thanks,
dlovell
Solved!
Go to Solution.
Attachments:
Find Array.zip ‏126 KB

Hi dlovell,
There are 2 key things I'd recommend for the code - using property nodes to edit the strings in the combo boxes.  Something like the following snippet:
Also, check your CPU in task manager when running the code.  It will eat a whole core of your machine (25% quad core, 50% dual, 100% single) - that is because you are running the while loop and polling the control as fast as Windows will allow you to.  Using Event Structures is a much more efficient way of working in this example.
Check out the MOD attached 
Regards,
Peter D
Attachments:
MOD_Find Array.vi ‏28 KB

Similar Messages

  • How can I locate the drop down menu to select thumbnails for viewing my photos?

    I am using Microsoft Windows Vista. I select Files> Get photos and Videos> From Files and Folders.  I select my photos and In my views I have a choice of different size icons, list, details and tiles.  The icons are a flower image. When I select an image to view it only appears as an extra large icon on the middle right side of the moniter.  I would like to view the thumbnail of the photo bfore I bring to my organizer.  The drop down menu doesn't have a choice for thumbnail.  

    Perhaps I need to supply more details.  I am using PSE9.  I haven't any problem importing the images into the Organizer as I just select the Icons and select "Get Media" or "Open" and they transfer over to the Organizer.  I would like to see the image as a thumbnail not an icon when when making the selection.  If I right click them, the Icon, and select open they will open in "Windows Live Photo Gallery".
    The icons are now listed on the left  side of the monitor about the right middle it states "Select A File To Preview".  When I select a file (icon) a large file (icon) appears in that area and it should be a thumbnail of the image. Somehow I can't locate the drop down menu taht permits me to make that selection.  I think it has something to do with my files being able to open in Windows Live Photo Gallery when right clicking and select Open.  Is the drop down menu only available in Windows 7?

  • Can you make a drop down menu in muse

    can you make a drop down menu in muse

    Yes, you can create main menu and sub menu items , with default menu the sub pages will auto create sub menu items (you should select all pages from menu type option).
    These videos will help you :
    https://www.youtube.com/watch?v=hncVlzYuuvQ
    https://www.youtube.com/watch?v=kziCEqQpF9s
    Thanks,
    Sanjit

  • How do i create a drop down menu for selecting from the drop down arrow

    how can i create a drop down menu so that when i click on the arrow in the cell i can select from the menu that appears

    katiesandell wrote:
    how can i create a drop down menu so that when i click on the arrow in the cell i can select from the menu that appears
    Hi Katie,
    Welcome to Apple Discussions and the Numbers '09 forum.
    Numbers vocabulary for this feature is a "Pop-up Menu". It's available as a Cell Format, and is set and edited in the Cell Format Inspector.
    See "Using a Checkbox, Slider, Stepper, or Pop-Up Menu in Table Cells" starting on page 96 of the Numbers '09 User Guide.
    This guide, and the equally useful iWork Formulas and Functions User Guide are available for download through the Help menu in Numbers.
    Regards,
    Barry

  • How can I get the drop down menu on the internet to work, which shows most visited websites? It was working on Firefox, and now doesn't.

    On the internet when using Firefox, the drop down menu on recently visited sites (where you type in web addresses), does not work. How can I get it drop down and show websites that I recently visited, so I can click on them there instead of retyping them every time?

    Make sure that the Location Bar is not set to "Nothing":
    * Firefox (Tools) > Options > Privacy > Location Bar: When using the location bar, suggest: History, Bookmarks, History and Bookmarks
    Another possible cause is a problem with the file places.sqlite that stores the bookmarks and the history.
    *http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox

  • How can i create a drop down menu for set qty in my store?

    I'm wondering how i can create a drop down menu for the qty module that sits on the individual product page. My client sells in quantities of 6 packs. I currently have the minimum order at 6 but i would like to give consumers the option for 6,12,18...and so forth. I was told that it could be accomplished? Hopefully someone can help me.

    Hi Chris -
    Thank you for your reply! I had seen your article before, and just now again attempted to follow it, but I get stuck. There are two things that I'm confused by.
    First off, toward the top, referring to the initial button, you say to add this interaction:
    ON CLICK; Play Transition to comboBox: selected
    ON ROLL OUT; Play Transition to comboBox normal if comboBox is in over state
    ON ROLL OVER; Play Transition to comboBox over if comboBox is in normal
    However, I do not see these transition options. When I select the button, the only interactions I have are to Play transistion to state, Play action sequence, Go to URL, and two for videos. So that's the first roadblock for me.
    But, trying to get passed that, I went down to the portion of the article that refers to adding interaction to the dataset items. Again, I don't get it, as I see no way to add interaction to a dataset item. When I open my design-time data menu, I do see the items, and am able to rename each item, add additional rows, and change the shape of the datalist layout. However, I see no way to add an interaction to a dataset item. I must be missing a step ... Can you help with this?
    Again, thank you!
    Amy

  • How can I create a drop down menu from an array

    Hello all,
    I am attempting to create a subvi that allows the end user to add a part number to an .txt file, and assigns that part number a value than can be used to select one of two modes of communication to be used to write to a EEPROM.   I am using the "write key.vi" and the "read key.vi" to create and read the .txt file.  What I would like to do is is use "get section names.vi" to read all of the part numbers and dump them into a drop down menu after the end user generates the file using the subvi.
    I guess my question is how do I dump a 1D string array into a drop down menu.
    I have attached some semi-functional .vi's to give an idea of what i am attempting to do.
    Erik
    Attachments:
    FirsttryPN.vi ‏15 KB
    PNwrite.vi ‏16 KB

    Place a Ring control on your front panel, then create a property node on the block digram. You can wire the output array of "Get Section Names" to populate the Strings[ ] property of the Ring.
    Retrieve the specific string selected by the operator by wiring the Ring control to the Index Array function.
    Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
    If you don't hate time zones, you're not a real programmer.
    "You are what you don't automate"
    Inplaceness is synonymous with insidiousness

  • How do you do a drop down menu in iWeb?

    Does any one know how to do a drop down menu with multiple links?
    for example someone scrolls over the phrase "3 bedrooms" and a dropdown menu appears with multiple optionsto different properties.

    Here are some sample menus :
    http://www.wyodor.net/_Demo/tmf/Duckmenu.html
    http://www.wyodor.net/_Demo/FloatingMenu/Fixed.html
    http://www.wyodor.net/_Demo/tmf/TMF.html
    http://www.wyodor.net/Demo/iWebeend.html
    Check the markup-widget.html files to follow or see the code that does it.
    You can also seach the internets for other code :
    http://www.alistapart.com/articles/dropdowns/
    You may have to learn HTML/CSS/JavaScript/DOM/Ajax and how iWeb create its webpages.

  • Elements 9 - text, font family - how can I get the drop down menu to work?

    I can't change the text fonts in Elements 9.  Most everything else seems to work except the font family drop down menu.  When I click on the arrow, the menu drops but immediately dissappears.  The font size drop down works but not the family menu.  Help please.

    I think it's usually a restriction of short displays on netbooks and laptops etc. You may have to live with it unless you can change display resolution via the control panel.

  • How can i get a drop down menu or check list control

    i want to give the user a choice between 7 options on the front panel. i want either a check list or drop down menu.thanks

    You can use any of the ring controls to generate a drop down list. The ring controls are found on the Controls >> Ring & Enum palette. You program the drop down items the same way with any of these controls. Type the first drop down item on the control. Right click on the control and select "add item after". The controls text field will blank out and you can enter your second item. Repeat for every item on the list you need to generate. After you are done entering items, click on the control with the application tool and you will see a drop down menu of all the items you entered.

  • HT1349 How can I set up drop down menu in a cell of ipad2 numbers?

    I want to set up drop down menu in a cell in numbers spreadsheet. Data validation in excel provides that. But what formula should I use in iPad2 numbers?
    Thanks!

    I dont think it can be done. This thing has been discussed somewhere and so far, no solution yet.

  • How do you use a drop down menu to populate other fields?

    I am creating a PDF that upon choosing from a list of People their address, phone, etc will automatically come in the remaining fields, or if a new person is choosen than you can add names address phone and it will save for future referrence ?
    Any help would be appreciated,
    THank you

    Thanks for your comment.
    Try doing this:
    Connect the form to a database and bind the fields in the form to the associated nodes in the data source so the data values automatically appear in the bound fields when a name is selected in the list.
    Add scripting to the list of names so the associated fields for address and phone number appear only when the user enters a new name and needs the other fields to enter new data.
    If that doesn't work, please provide more information about what you are trying to do. For example, here are a few questions to consider:
    Q. What object are you using for the list?
    Q. You say you want to be able to choose a person from a list of People, and their address, phone, etc automatically appears in the remaining fields address and phone number. What do you mean by etc. That is, exactly what objects are you planning to use for the other fields, and how many fields are there in total?
    Q. Is your form connected to a data base, which can supply the data values for the address and phone number fields.
    Q. What do you mean by 'a new person is chosen'. Normally the options on a list are pre-determined and added when you create the form. Do you want users to be able to add a new name to the list, and then enter that person's address and phone number in some adjacent fields?
    Have a look at these sections in the Help to gain a better understanding of what's involved:
     Working with Data Sources
    http://livedocs.adobe.com/livecycle/8.2/acrobat_designer/000844.htmlhttp://livedocs.adobe.com/livecycle/8.2/acrobat_designer/000844.html 
    Buildling actions in forms
    http://help.adobe.com/en_US/livecycle/9.0/designerHelp/000109.html#1627696 
    Thanks,
    Drew

  • How can you create a drop down list of specific numbers that are in scientific notation?

    Is the best way to do this by constructing an enum and setting the
    individual values to a case structure which has constants that are the
    desired values... or is there a more straightforward way of doing this?

    Just use a menu ring and set the desired "Strings and values" using a property node (or, if they are static, by editing the items directly via the property dialog).
    Most likely, you also want to set the representation to DBL. 
    LabVIEW Champion . Do more with less code and in less time .

  • How do you get the drop down menu on a 17 inch macbook pro (old version)

    any answers?

    bobrat wrote:
    its the menu that you get when you right click
    Ah, the shortcut (or contextual) menu. For Snow Leopard, see
    <http://docs.info.apple.com/article.html?path=Mac/10.6/en/8517.html>
    for Lion, see
    <http://docs.info.apple.com/article.html?path=Mac/10.7/en/mchlp2175.html>

  • How can I make a pull down menu in I web

    how can I make a pull down menu in I web?

    You can't do this directly in iWeb itself and it is quite complex - you need to use third party software and it is a matter of pasting code into the html snippet in iWeb and then uploading certain things to your host/server and then connecting them.  It can get quite fiddly if you don't really know what you are doing and it only takes you to upload the wrong thing and get some code wrong and your menu will not show up.
    Why not ditch iWeb in favour of newer software - try EverWeb at http://www.everwebapp.com and in EverWeb you can create drop down menus from within the app and it is very easy to do.
    I would change now as iWeb has not been supported by Apple or sold for the last 2 years, so now might be a good time to look elsewhere and ditch iWeb for good.
    I already have and purchased EverWeb and re-built one of my sites using this app and have moved my other site to Drupal so that I can do more with it and make it a members site - this can be done more easily if you use a Content Management System like Drupal.

Maybe you are looking for

  • How do I add a playlist from ios 7 to my iphone 4

    I want to update my playlist on my iphone 4 with a new one I created in the updated software on my computer ios7, however i can't figure out how to transfer the new playlist from computer to iphone. Any suggestions?

  • Can't view adobetv after flash update

    I am having this problem now after today's flash update. I uninstalled flash and reinstalled it. I have checked settings, deleted my browser cache, deleted my flash cache before I uninstalled it, rebooted and reinstalled it. I am unable to view anyth

  • Inventory Management (0IC_C03) Business Content queries

    I have the following queries which are delivered when I activate 0IC_C03.  The queries below have also been activated as part of the model. Is there any additional queries which should/can be activated against this InfoProvider and of the list below

  • Partner profiles usage

    Hi,        Please can any one send me details about partner profiles usage and the tcode where exactly we have to maintain this. If anyone have documentation on AlE is added advantage for me. Regards, Koti

  • Indesign CS4 Very Slow - can move objects easily anymore!

    We are running CS4 - Even the most simple files are difficult open.  When opened, it is hard to move objects or type any characters. All we get is the Apple pinwheel.  We are running OS x 10.5 with 4 GB of memory.  We dont know what to do-please advi