Menu ring controls

Hi
I need a help,I have attached my program.
My problem is from the menu ring control if i select D1 the indicator turns on,further if i select anyother options from contol the indicator corresponding to new option turns on and the previous turns off but i need both to be on. Also i like to do if i select D1 it should be disabled(or changed to different colour---so that there is no option to selcet it again until i reset it manually).
Pls attach if there is any ex prgs.
Attachments:
DSC.vi ‏15 KB

Hi Veeru,
you change the index of your array between 0 and 1 for every element. Do you want a binary display? If yes you switch the on color of your LEDs to blue and off to black. Then you can use the attached code.
Hope it helps.
Mike
Message Edited by MikeS81 on 06-20-2008 01:10 PM
Attachments:
Unbenannt1.PNG ‏3 KB

Similar Messages

  • Dynamically changing elements in an array of menu ring controls

    I have an array (32 rows, 5 columns) of menu ring controls.  When a menu selection is made in the first column of any given row, the contents of the menu ring for the subsequent columns (same row) may change.  If this is possible, how would you do it?  Thanks.
    Solved!
    Go to Solution.

    jschichl wrote:
    For example, if I had a menu ring of 1,2,3,4.  I want to write some logic that says when 4 is selected, then menu ring in the next row changes to 5,6,7,8.
    A ring is just a number as far as LabVIEW is concerned, so the underlying cluster need only store numbers, not rings.
    In the example I posted in a linked thread, where controls are moved around on top of a table, you need only one ring control. Each time you show that ring, you can assign a new set of strings and values to it, using the Strings and Values property. You can decide what set of strings to show based on the existing data in the cluster, which will get updated each time you change the value in a cell of the table. Does that make sense? I don't have time right now to put together a more detailed example than what I've already uploaded in other threads, and it's only a small change to that.
    You update the menu ring at the time the user wants to select a value from it, not at the time the user changes the value that determines what set of menu items to show.

  • Error 1082 when setting Strings[] property of a menu ring control via property node.

    I've attached a VI in which I attempt to set the Strings[] property of a menu ring control via a property node.  Can anybody figure out what I'm doing wrong here?  I'm using LabView version 7.1.
    Thanks,
    Mark Moss
    Attachments:
    Bug Test.llb ‏69 KB

    Open up your Stations Parameters Control.ctl file and change it from a Strict Type Def. to just an ordinary Type Def. (the pull down menu is located next to the font selector).

  • How to disable multiple items in menu ring?

    Hi I have a difficulty understanding on how to disable the items in the menu ring control. I need to know so that I will enable some items for the future products for testing. And why is the first item disabled? How can I disable the right items?
    Attachments:
    disabled_items.vi ‏23 KB

    Your vi works perfectly :
    you are disabling the menu items wich correspond to the elements of the 1D array :
    -if the array is empty, no element is disabled;
    -if the array contains 1 element, for instance = 3, the forth (3+1) menu item will be disabled. If the array element equal zero, then the first menu item will be disabled;
    - if the array contains 2 elements, then two corresponding menu items will be disabled, and so on...
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        

  • DOing same function as Runtime short cut menus example except with menu ring...

    Newbie here: I am attempting to create a slide out menu much like the one in the Runtime short cut menu example (in example finder) except with a menu ring instead of the list box that is used in the example.  I have a menu ring with 8 values in it and on 3 of the option I would like a secondary menu that slides out to the side that displays another sub-menu.  Can this be done easily/efficiently?  I am looking at other alternatives but this option would be the best for my application from a user stand point.  Any help and examples would be appreciated. 
    Thank you
    Steve
    Solved!
    Go to Solution.

    What is being shown in that example is how you can modify or create your own runtime menus (aka popup menus or right-click menus) for a given control.  Basically you customize the menu and then use event cases to handle what to do for the menu selections.
    Now a menu-ring control is a different beast entirely, BUT it looks almost exactly the same, so I see why the two could be confused.  As far as I know, there's no support in a menu ring for multiple menu levels.
    Often times I find that effective labview GUI design (and well, design in general) works best with a compromise of what you imagine for what you can do easily and simply.  Flow like water: find a native control behavior that's *good enough*. 
    But! here's a hack that might get what you want.  It sounds like you want the multi-levelness of a right-click menu but without having to right-click?  Use a "mousedown?" filtering event to replace left-clicking with right-clicks!  Now when the user left-clicks, labview will tell the OS that they right-clicked.
    -Barrett
    CLD

  • Increment and decrement buttons on a ring control are greyed out

    Hello,
      The check box for showing the increment and decrement buttons on a ring control are greyed out. Does anyone know why? I have verified that the ring is a control as opposed to a indicator.
    Regards,
    Kaspar
    Regards,
    Kaspar

    "the controls are greyed out because they do not exist on the Menu ring control."
    Errr... yes, I believe that's exactly what I said in my last response.
    "This is different from what I saw in another part of this forum about using event structures on a Menu ring."
    Don't know what you could be referring to, as there is no event specific to the increment/decrement controls. All that they would do (if they existed) is to change the value of the control, and the applicable event would be the "Value changed" event. Where exactly did you read this?

  • Menu ring for tab control

    Hi,
    I use a tab control which got in the meanwhile more tabs than could still all be displayed simultaneously. That's why I would like to use a menu ring instead of the tabs in order to control which tab will be displayed in the forefront. However, I could not yet figure out how to change the "page label display" of the tab control into a menu ring. Have a look onto my simple example. I guess you agree that my current solution doesn't really look like a pull down menu although it works like one. Any hint how to improve the design?
    Thanks in advance,
    Peter
    Attachments:
    Tab_Control.vi ‏17 KB

    Here's an example that is based on an example that ships with LV. I cleaned it up a bit so it would look mre like a "real" application. It's not great from the standpoint of code design (No error handling for instance) but it shows how these plugins could work.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps
    Attachments:
    subpanel.llb ‏72 KB

  • Need help with menu ring or listbox control.

    Hi,
    I would like a menu ring style of control that does the following. Initially, items will be put into the control through a string array. That is no problem. But,in addition to being able to select any of the existing items, I would like the user to be able to enter a new item. Is this possible with any of the menu or listbox controls? I prefer the menu type controls as I like how when you click on the control you get a pop up of the items in the list, as opposed to the listbox where you have to scroll. Thanks for any help.

    Not as such, but one alternative would be a combination of the menu ring and
    a string. Place the string above the menu ring. When people select something
    from the menu ring it's copied to the string and selected. When people type
    something into the string, it's added to the menu ring if it's not already
    there and again it's selected.
    Bear in mind though that if a menu ring gets too large I suspect a scrollbar
    will appear in it when it's popped up.
    sal wrote in message
    news:[email protected]..
    > Hi,
    >
    > I would like a menu ring style of control that does the following.
    > Initially, items will be put into the control through a string array.
    > That is no problem. But,in addition to being able to select any of
    > the existi
    ng items, I would like the user to be able to enter a new
    > item. Is this possible with any of the menu or listbox controls? I
    > prefer the menu type controls as I like how when you click on the
    > control you get a pop up of the items in the list, as opposed to the
    > listbox where you have to scroll. Thanks for any help.

  • Using menu ring to select data out of database with SQL

    I have a database setup with two tables and six columns of data. One of the columns contains an array of data. I would like to be able to read the data out with two ring controls. One ring to select the table and the other to select certain rows of data based on the value in one row. I want the data charts to update automatically inside a loop when the ring values are changed. I started by modifying the playback(fetching) example. The problem is when I change the menu item, I am not closing the first connection before opening a new one. Should I be using the running stored procedures with parameters method to accomplish this task?? I suppose all of the data could be read and then sorted out of the result.
    Attachments:
    myPlayback_rev2.vi ‏120 KB

    unclebump,
    There are two possible solutions. If you are using LabVIEW 6.0.x, then you will need to put a while loop around all of your program and poll to see if the values of the ring controls have changed (can be done with a shift register). If nothing has changed, then have a case structure that does nothing. If the values have changed, then get the new data.
    If you are using LabVIEW 6.1, then you can check for a value changed event on the ring controls. Everything else from the 6.0.x version from above would be the same. This eliminates the polling which reduces processor use.
    Randy Hoskin
    Applications Engineer
    National Instruments
    http://www.ni.com/ask

  • How do I modify multiple Menu rings in a loop?

    I would like to modify the Strings of 15 Menu Rings in a loop as follows:
    Calculate new values
    Start For Loop
    Write new values to property node Menu ring(N) / Strings[]
    End loop
    I want to have one poperty node in the loop, whos' reference (or link) gets modified, to point to a different Menu Ring for each iteration of the loop. In other words, without having 15 different property nodes.
    Is it possible?  
    Thanks.

    You can create a reference for each control (right click->create...), then build these references into an array using build array, then iterate over the array in a for loop using auto-indexing.
    You can do the same for the arrays of strings, but because the arrays can probably have different lengths, you should put each 1D array into a cluster and build a 1D array of the clusters. This is because a 2D array can not have a different number of elements in each row.
    If you do this kind of thing often, you can save time on creating the reference by using this.
    Try to take over the world!

  • Using a "menu ring" feature on the front panel with event structures

    hello - right now i have many event cases controlled by many "ok buttons". i would like to use a menu ring on the front panel to save space from all those buttons, but i don't see how it will work with all the individual event cases. currently each event is tied to a single button, and the menu ring acts as one thing on the block diagram so i can't tie an event to a choice in the menu. any suggestions? thanks....

    Alternativley, you could use an enum control instead of a menu ring. It will name the cases according to the selection automatically.
    If you want to use a menu ring and strings, you could do something like in this image.
    Message Edited by altenbach on 02-09-2006 01:43 PM
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    RingText.png ‏3 KB

  • Using a menu ring to select DAQ device channel and indicator

    Hi,
    New user here. I am using the DAQ assistant with multiple analog inputs. I would like the front panel to have a menu ring where the user can select which channels are to be active. Also, this corresponds to a single graphical indicator. 
    Currently I have a VI that displays all channels each with its own indicator. I want to simplify the front panel so that a user can simply use a menu ring to select and focus on what he/she is interested in. Is it possible to use the Select Signals Express VI to implement this?
    Thank you!

    Drop the DAQ Assistant or convert it to regular DAQmx functions. The physical channel control does all that. Just look at the shipping examples.

  • Best way to implement confirm button in conjunction with menu ring selections

    So basically I have a series of menu rings that implement different cases of a structure that adjusts PWMs and other timing signals.  I have received a request to add in a confirmation button/dialog that pops up to make sure the operator wants to perform the selected operation.  I'm doing this on a PXI 7831R FPGA board and have run into timing violations in the past, so the less timing critical, the better.  If there is some way to offload this onto the host VI, even better.  Thanks in advance for the help.

    If there is some way to offload this onto the host VI, even better.
    Considering the FPGA does not support dialogue boxes or event structures, you will have to implement this into a host VI.
    My suggestion? Have a case structure with a latch boolean control on it (ie. update config). Your host VI will have an Open FPGA VI reference and run the FPGA this way. When you want to update the config, you can change your items, then hit 'update'. Include the dialogue box for confirmation if you wish. When this is done, it will use a read/write control to update the boolean 'update config' on the FPGA. Your FPGA VI will then read that case structure with the config data in it once(since it is a latched boolean) and then continue on its merry way.
    Rob K
    Measurements Mechanical Engineer (C-Series, USB X-Series)
    National Instruments
    CompactRIO Developers Guide
    CompactRIO Out of the Box Video

  • Menu Ring in Array

    Hello,
    I've got an array of menu rings and I want to programmatically change the
    menu ring in each array element. For a menu ring, there is a property
    available called 'Strings' that I can change, but how do I make it change
    for all the elements in the array?
    Thanks,
    Peter

    You can create a property node for the element-type of your array. Any changes you make to the properties (including the "Strings") will apply to all elements. Create the property node by right-clicking on the menu ring inside the array on the front panel. The pop-up menu should have a "Create" option from which a sub-menu branches. Select Property Node from the sub-menu. You can also use control references to get at the menu ring's properties.
    Daniel L. Press
    PrimeTest Corp.
    www.primetest.com

  • How to relate ring control with multiple codes

    Hello everyone,
    I've been searching everywhere without finding answer, please apologize if its already in a post. What I am trying to do is to gather different codes and put them together. These pieces of codes control certain devices and currently I am using different interfaces for each device, so I want to control them in the same interface. I am using a ring recessed menu ring in order to select the appropriate device for the desired application. So, if someone could possibly tell me how to put the ring control to work I would appreciate.
    Thanks,
    LM

    Hi LM,
    Let me start by ensuring my understanding of your question.  You have multiple devices, each which require different code to operate them.  You are currently using different programs to control each instrument and would like to combine into one.  You want to allow the user to select from a Ring Control which device to use then execute the correct code.  Is this correct?
    Assuming it is, this is fairly straightforward.  Add the labels and values to your Ring Control as well as a GO button to your UIR.  Add a callback function to the GO button.  In the callback function, add conditional code that executes a different block depending on the selected value of the Ring Control.  Let me know if you have questions on this process.

Maybe you are looking for