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

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

  • How to download output into Excel with Header?

    Dear Friends,
        I want to download a my list output into excel format with <b>Column heading</b>. How will I do this?
        Another question is i want name of database table in Which SAP stores <b>DDIC object name and its property</b>, so that i can write Select * from ' ' where .... For example i have table ZABC with three fields so i need In which table it stores ZABC as table and a table in which it stores Its field name.

    Hi,
    Look at the sample code for Download into Excel.
    data: begin of excel_sum_it occurs 0,
          bukrs(80),
          belnr(80),
          gjahr(80),
          blart(80),
          budat like bkpf-budat,
          monat(80),
          cpudt like bkpf-cpudt,
          cputm like bkpf-cputm,
          usnam(80),
          tcode(80),
          xblnr(80),
          waers(80),
          dwrbtr(25),
          cwrbtr(25),
          end of excel_sum_it.
    data: begin of titles_it occurs 10,
          title(80),
    end of titles_it.
    at user-command.
      case sy-ucomm.
        when 'SUMMARY'.
          perform summary_download.
        when 'DETAIL'.
          perform detail_download.
        when others.
      endcase.
    ******Create one PF-STATUS for one push button for download.
    Before this FM you need to move your date to Execl_sum_it Internal table.
    For example here I used this table for down load.
    *&      Form  summary_download
          text
    -->  p1        text
    <--  p2        text
    form summary_download.
      data: fname like rlgrap-filename value 'Summary_Details.xls'.
      perform fill_titles.
      check not excel_sum_it[] is initial.
      call function 'DOWNLOAD'
           exporting
                filename                = fname
                filetype                = 'DAT'
           tables
                data_tab                = excel_sum_it
                fieldnames              = titles_it
           exceptions
                invalid_filesize        = 1
                invalid_table_width     = 2
                invalid_type            = 3
                no_batch                = 4
                unknown_error           = 5
                gui_refuse_filetransfer = 6
                customer_error          = 7
                others                  = 8.
      if sy-subrc ne 0.
        message e000 with text-e07.
      endif.
    endform.                    " summary_download
    *&      Form  fill_titles
          text
    -->  p1        text
    <--  p2        text
    form fill_titles.
      refresh titles_it.
      concatenate text-h06 text-h16 into titles_it-title
                                          separated by space.
      append titles_it.
      concatenate text-h07 text-h17 into titles_it-title
                                          separated by space.
      append titles_it.
      concatenate text-h08 text-h18 into titles_it-title
                                          separated by space.
      append titles_it.
      concatenate text-h07 text-h19 into titles_it-title
                                          separated by space.
      append titles_it.
      concatenate text-h09 text-h20 into titles_it-title
                                          separated by space.
      append titles_it.
      concatenate text-h08 text-h21 into titles_it-title
                                          separated by space.
      append titles_it.
      concatenate text-h11 text-h22 into titles_it-title
                                          separated by space.
      append titles_it.
      concatenate text-h11 text-h23 into titles_it-title
                                          separated by space.
      append titles_it.
      concatenate text-h12 text-h24  into titles_it-title
                                          separated by space.
      append titles_it.
      concatenate text-h13 text-h25 into titles_it-title
                                          separated by space.
      append titles_it.
      concatenate text-h07 text-h26 into titles_it-title
                                          separated by space.
      append titles_it.
      concatenate text-h13 text-h28  into titles_it-title
                                          separated by space.
      append titles_it.
      concatenate text-h14 text-h27 into titles_it-title
                                          separated by space.
      append titles_it.
      concatenate text-h15 text-h27 into titles_it-title
                                          separated by space.
      append titles_it.
    endform.                    " fill_titles
    ***Here in the FILL_TITLES you give you own HEADER .
    Thanks.
    If this helps you reward with points.

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

  • How to export report output into excel.

    Hi all
    how to export report output into excel sheet can any on give me answer step by step please as soon as possible
    kk

    Hi Prashanth,
    If you are executing Query from WAD  ---> Right click on Table (only on Characteristics Data)  --> Enhanced Menu ---> Export as --> CSV file or MS Excel
    assign points if this helps,
    Thanks,
    Sudhakar

  • 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

  • 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

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

  • 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

  • Menu Ring disabled update bug

    Currently still on Labview 2011 (upgrading within a few weeks to 2012 SP1) I have the following bug:
    If a Menu Ring is disabled and has a "normal" (non-empty) value it will keep its contents (meaning: shown text will remain) when you overwrite StringsAndValues[] with an empty array.
    I was unable to find anything about it either officially fixed / known or on this forum, meaning it will probably still be there in the latest version.
    Can someone please verify to see if this bug indeed (still) exists in the latest Labview version?
    Solved!
    Go to Solution.

    Thanks, though I fail to see why a Menu Ring can not be empty.  Imo there should NOT be an error message, but just a plain empty control (or indicator).
    I use the Menu Ring to show and allow (if there are other types available) to change a subtype of an electronic product.  The control typically does so for released products, meaning I filter out products (and subtypes) still under development (or still undefined).  The list can thus be empty.  People busy with development have a setting available to also show (and change to / from) these new or (as of yet) unknown types and products.  When there are no elements (in this case: subtypes) or only one the control is disabled.
    I looked further into this and at no point does Labview mention, force or coerce a user to have at least one element in a (Menu) Ring.

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

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

  • Output Option menu is missing from the print dialogue box

    I have just upgraded to the latest G5 PPC and installed OS 10.4.6 and in all applications in the Print dialogue box I cannot find the Output Options menu so I can output a postscript file, is there another patch that can be installed to add this option back into the printer settings. I didn't have this issue with 10.3.9 only in 10.4.X
    G5   Mac OS X (10.4.6)  

    I have looked the PDF menu but I am not happy that it states "Save PDF as Postscript", this option was available before and we had issues with some of the files it created. I cannot guarantee that it is using my postscript printer descrition which I need as we need full High Res files with NO downsampling at any stage and I'm not confident this is the solution, there has the be a better way to create a postscript file.

  • Save report painter output into internal table

    Hi,
      i have created a report painter for vendor aging report. got output in drill down format.
    i need to show the data in smartform as well. so need to save the report painter output into an internal table. can anyone please help me resolving this.
    regards,
    sudha.m

    Hi Sudha
    You can use sample below:
    DATA: list_tab TYPE TABLE OF ABAPLIST.
    SUBMIT NROWS EXPORTING LIST TO MEMORY
                  AND RETURN VIA SELECTION-SCREEN.
    CALL FUNCTION 'LIST_FROM_MEMORY'
      TABLES
        listobject = list_tab
      EXCEPTIONS
        not_found  = 1
        OTHERS     = 2.
    IF sy-subrc = 0.
      CALL FUNCTION 'WRITE_LIST'
        TABLES
          listobject = list_tab.
    ENDIF.
    Best regards

Maybe you are looking for