String ring menu ring

One function I have found super useful is the string ring, but I can't find it!  The menu ring is pretty easy to find, right click on the front panel and it is listed right there under text controls.  But, every time I want a string ring, I have to go into a vi I got help with on one of these forums and copy/paste it in, which is silly.
Also, if I have a menu ring constant (like the one below), is there a way to convert it into a string ring constant (which I also do not know how to make other than the very roundabout way of making a sub.vi with a string ring input and creating a constant) without having to re-type all of the values?

no,  the combo box item editor (and menu and enum item editors) that ship with LabVIEW do not live up to expectaions.  I imagine that some people have a "roll your own" plug-in handy that adds functionality like multiple separators, blank values, duplicate values, and string to number conversions. Feel fre to vote on this idea
Type cast might be fairly easy to move some of the items though (as Darin is probably typing at the moment)
Jeff

Similar Messages

  • Waveform Names to Menu Ring String Property Node

    Hi,
    I am extracting waveform data (names) to go into a menu ring as string data.
    It seems to work, apart from when you actually click on the menu there is no text (though you can successfully change it).  I am wondering if it is to do with the odd symbol in front of the name but not sure how to get rid of it.
    Hoping it is something simple but it is just knowing where to look with all the options available to you.
    Please see attached.
    Best Regards,
    James
    Solved!
    Go to Solution.
    Attachments:
    MenuRing.jpg ‏23 KB

    Hi James,
    You were 99% of the way there all you needed to do was to pull that weird character from the string, I used the “match pattern” function to allow me to isolate that character and pass the resultant string into the text ring property node. A good bit of advice if you find a character in LabVIEW that you do not recognise or if you are unsure about spacing, right click the output string and select “ ‘\’ codes display “ this will show what the code representation of the string is and you can just feed that directly into the “match  pattern” function. I have attached my code (LabVIEW 2010 if you need in previous version please just ask) for you to have a look at. I have used a producer consumer template and selected multiple input channels from a simulated PCI 6220.
    P.S. I’m not sure where that character comes from??
    Regards
    Andrew George @ NI UK
    Attachments:
    Forum James AC.vi ‏26 KB

  • 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).

  • Populating Strings[ ] on a menu ring

    I have a menu ring inside of a cluster. The cluster is embedded in an array. So essentially I have an array of clusters where each cluster has just a menu ring inside of it. I'm trying to programmatically populate the Strings[ ] property for each menu ring, for every array position. The Strings[ ] property for each menu ring will be different for each array position.
    I can't see any way to do this programmatically? There seems to be no way to access the Strings property when the menu ring is embedded in this manner.

    I tried that long time ago, no way until some geeks will find a way ....
    My workaround: Since I wanted it for a configuration setup screen, I made a seperate popup window for the selection.
    Greetings from Germany
    Henrik
    LV since v3.1
    “ground” is a convenient fantasy
    '˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'

  • "menu ring" enum string

    Hello,
    I have string commands and descriptions of these commands,
    on the panel I want to have the descriptions of this commands
    on a control that looks like a "Menu Ring" and on the diagram
    I want to have a string as an output of this control (I need the
    string commands for a serial hardware), e.g.:
    String Command: Description of the command
    B1: Configure as Pt100
    B2: Configure as Ni100
    Is there chance to create a string control that looks like a "Menu Ring"
    and behaves like a "Enum" control?
    I have two workarounds, but perhaps you have a more clever solution.
    Regards, Stefan
    Attachments:
    enum and menu ring as string variable.jpg ‏26 KB

    the code(vers. 6.0.2) ...
    Attachments:
    string_controls.zip ‏15 KB

  • 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

  • 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.

  • Database output into menu ring

    hello
    I'm doing a application where the input of a menu ring needs to be the output of a database query when the VI has already launched (real-time).
    my database for now, just has two fields: id and transducer name. i have no trouble getting those values from the db. my problem is that the menu ring input needs to be done using the property node (stringsandValues[]). I've tried to construct an array of 2D but i keep getting error of mismatched types.
    I really don't know what else to try. I would like if somebody could make a small example in constructing the type of data that i need or point me to somewhere where that is explained.
    thanks in advance,
    AdaoMonteiro
    PS: does anybody know how to convert a whole column of dynamic variant to data. In my program I'm converting each value at a time in a cycle.

    Just to clarify, the values are U16 by default, but of course you can change the representation if the ring. In this case the input should match the ring representation.
    You only need the "Strings And Values" property if your values are arbitrary. If they are just 0, 1, 2, 3, 4, ... etc. you can write the "strings" property as 1D array of strings. It's simpler.
    Anyway, to create the correct "String and Values" input, you could use something like the two alternatives in the attached image, the example at the bottom uses a 2D array of strings, transpose as needed.
    Message Edited by altenbach on 06-13-2005 08:57 AM
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    StringsAndValues.png ‏8 KB

  • Attaching binary arrays to a menu ring

    I have been playing around with the menu rings and can't seem to get it to do the function that I want.  I am looking to making a pull-down menu for some user options for different resoultion modes for an intrument.  So for example one option will be "2 eV" and with this option on I need to send 011 to a instrument.  Should I store it as a binary string or array, and how can I do that?
    Thanks in advance

    Do you always need to send a number to the instrument? If so do it this way:
    For the menu ring go to its Properties >> Edit Items. In this dialog you can enter the displayed text and the assosiated number. So yo can pair 2eV with 11. The terminal will give you the number. From your example I assume that the instrument will see the number as text with three digits. Use the "Format into string" function. Set the format string to "%03d" which will give a number with three digits padded with 0 to the left. Inthe example choosing 2eV will give 11 from the terminal and "011" as result from the Format function.
    Waldemar
    Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
    Don't forget to give Kudos to good answers and/or questions

  • 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.

  • Initializi​ng menu ring elements in array

    I know that it is possible to initialize the elements of a menu ring using the property STRINGS[]. I have an array of 16 menu rings for labeling DAQ channels, and need to initialize the rings based of the set of available sensors (ie some sensors are retired, or out for calibration, new ones purchased). Is there a way to expose this property for an array of menu rings?
    thanx
    lmd2
    Lawrence M. David Jr.
    Certified LabVIEW Architect
    cell: 516.819.9711
    http://www.aleconsultants.com
    [email protected]

    This seems to work, but I don't know how it would behave in a compiled application.
    Use a property node to get the Array Element.Reference.
    From the front panel, select the ring inside the array and Create Reference (switches to BD and places a constant)
    Use 'To More Specific Class' to convert the array Element Reference to a menu ring ref using the constant from above.
    Set the strings Property.
    Message Edited by Phillip Brooks on 04-01-2008 08:35 AM
    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
    Attachments:
    Menu Ring Array Strings.png ‏29 KB

  • 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

  • Menu ring indicator definition

    Hello,
       Can I create a menu ring indicator one and re-use it numerous times? I have tried to copy the menu ring and what I really end up with a numerous menu rings that do not track the updates to the menu ring when I update the original. I would like to be able to create a menu ring indicator ONCE, and use the indicator numerous times and have ALL of them contain the updates that I have made to the original menu ring indicator. How can I do that?
    Regards,
    Kaspar
    Regards,
    Kaspar

    Here are two options:
    Use a subVI which will output the list of values and fill each copy of the ring using the Strings[] property when you start your program.
    Use a typedef. The strings of a ring control are not part of the data type of a ring, so they will not update when you change them, but if you change the type of the control you can force an update and then the new strings will be used.
    The easiest way to do this is to change the representation, click File>>Apply, change the representation back and apply again. You should note, however, that there is some danger in this - you should try to keep to the same number of bits of your current representation or higher, so you don't get coercion on your current values if they are out of range. Also, you should be careful even if you stay within the same number of bits, because if you change an I32 to a U32 you will lose values like -1. They might be translated back correctly, but I never checked.
    Try to take over the world!

  • How can I change the background color of a menu ring?

    Hi
    Does anybody know how to change the background color of a menu ring??? (not the backround color of the first item, the background color of the list (remains always gray))
    thanks martin

    Try Preferences>>Colors>>Menu Background, but this will change ALL menu's background color.
    Hope this helps

Maybe you are looking for

  • Batch Processing multiple page pdf

    Using Batch Processing in Acrobat I would like to: Extract as single pages from a multiple page pdf. I want the resulting pdfs renamed with page numbers. The first few pages of the pdf are roman numeral pages (index) then the rest of the pages would

  • T42p vista fn + f3 and fn + f4 functions (turn off screen and sleep) not working correctly

    Hi -- I recently installed windows vista on my T42p.  It works fine except that the fn+f3 and fn+f4 functions do not work as expected.  Before installing the hotkeys driver, the fn+f4 function worked correctly while f3 did not (going to sleep worked,

  • HTTP Header

    Is it possible to control the url displayed in the browser ? i.e. can I set change the url displayed by changing the host header ? Thanks Hendrik

  • Y imac is running on 10.5.8 and im trying to update the software to 10.6.8 or higher what can i do

    my imac is very old and is running on 10.5.8 version and i would like to update it to 10.6.8 or a higher version. when i click on download it allows me but once it gets to a installment part i get an alert that says i need 10.9 software. i dont know

  • TLB Profile parameters in TLB Order

    Hi When we create TLB orders in interactive TLB, the system uses the TLB profile attached in the T-lane master data.  However we have the option of selecting a different TLB PROFILE during the run.    After we create such orders with TLB profile diff