Custom control for list of string,num​eric values

Hi,
I want to create a control in labView 6.1 that presents the user with a list
of string values on the front panel. The actual strings are material names
(e.g. Si, Al). With each string value would be associated a floating point
value that would then be used on the diagram for some numerical processing.
What I have done is create an array of {string,digital control} clusters,
but it looks kind of clunky on the front panel. Is there a more elegant
solution?
Thanks,
-John P
God is a comedian playing to an audience too afraid to laugh.
- Voltaire

Some ideas that I use when making this kind of button:
Make an array of clusters of {string, numeric, boolean} in which:
The numeric is hidden (right click menu/advanced/hide control) (skip
this if you want the numeric to display
and
The boolean is colored TRANSPARENT and overlaid on the string. So it
it seems to the user that he clicks on the string but in fact clicks
on an invisible boolean.
Another idea is to combine the strings and booleans into one set of
buttons by making a cluster of identical booleans arranged so that
they look like an array and setting the boolean text on each button
to the desired string.
These ideas imply writing some radio button logic to generate an
index to select the desired numeric element. This is more work than it
m
ight seem
Easiest is to use events and convert the mouse coordinates into an
array index. I just made one of these and I have the code handy if
you like.
Adam
On Wed, 18 Jun 2003 19:06:45 -0500, John P wrote:
>Hi,
>
>I want to create a control in labView 6.1 that presents the user with a list
>of string ...

Similar Messages

  • I need create a custom control for visualization HTML

    Hi guys,
      I need create a custom control for HTML files visualization on SAPGUI JAVA. I created a sample program and perfectly run on SAPGUI Windows.
    Thanks.
    Regards.
    Jose Antonio Campos.

    Hi,
    Just as a quick start
    http://gumbo.flashhub.net/sizer/  (view source enabled).
    this uses a skin to make a titlewindow resizable, its not about the skin as much as giving you a starting point for resizing code.
    if you look into the skin you will see these functions
    protected function sizer_mouseDownHandler(event:MouseEvent):void
    OldX=event.stageX;
    OldY=event.stageY;
    systemManager.addEventListener(MouseEvent.MOUSE_MOVE,startResize);
    systemManager.addEventListener(MouseEvent.MOUSE_UP,endResize);
    protected function endResize(event:MouseEvent):void
    systemManager.removeEventListener(MouseEvent.MOUSE_MOVE,startResize);
    systemManager.removeEventListener(MouseEvent.MOUSE_UP,endResize);
    private function startResize(event:MouseEvent): void
    hostComponent.width -= OldX-event.stageX;
    hostComponent.height -= OldY-event.stageY;
    OldX=event.stageX;
    OldY=event.stageY;
    The idea is to have a hit area on your custom component (a corner, or all corners). You capture the mouseposition when you mousedown then in the mouse move eventlistener you update the object size with the difference between current X and Y from initial X and Y.
    Hope this gets you started.
    David

  • Developing custom controls for Third Pary softwares

    Hello,
    I am using a third party software that is a little bit old but it is still used at work. From this software it is possible to design windows forms that later on are loaded to smalls IPCs with windows embedded (XP and CE) and by lunching and application in
    the IPCs these forms can be used.
    From the form designs section of this software there is a "smart toolbox" from were the controls can be dragged and dropped (please see attached image). These controls seems to be designed by the third party software.
    My cuestion is the following:
    How can I design my own custom control? Is there any way that I can desing this controls from visual studio? what version?
    Thanks,
    Enrique.
    Kikeman Electric Systems Engineer

    Hi Enrique,
    -->Is there any way that I can desing this controls from visual studio? what version?
    I suggest you using the VS2013, it's free and it contains more new features. You could download this version from the below site:
    https://www.visualstudio.com/en-us/downloads/download-visual-studio-vs#DownloadFamilies_2
    -->How can I design my own custom control?
    You could add the custom control like the following way.
    1) Right-click on the toolbox, then choose "Choose Items.."
    2) Click the "Browse..." button to choose the custom control. (Your dll files)
    If you have any other concern regarding this issue, please feel free to let me know.
    Best regards,
    Youjun Tang
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to set List of String as variable value in BPEL

    I am using java embedding to invoke a method which returns a list of strings. I need to set these values in a variable in BPEL to be used later. I am getting following error while setting the value.
    <May 2, 2012 5:18:20 PM IST> <Error> <oracle.soa.bpel.engine.dispatch> <BEA-000000> <failed to handle message
    com.oracle.bpel.client.BPELFault: faultName: {{http://schemas.xmlsoap.org/ws/2003/03/business-process/}mismatchedAssignmentFailure}
    messageType: {{http://schemas.oracle.com/bpel/extension}RuntimeFaultMessage}
    parts: {{
    summary=<summary>Mismatch Assign.
    cannot set a nonelement value to an element-based variable.
    An attempt to assign a nonelement value to an element-based variable failed.
    Verify the BPEL source for invalid assign activities.
    </summary>}
    Following is the java code
    List<String> providers = Registory.getProviders("1");
    setVariableData("providerList", providers);
    I have defined a xml element in the wsdl defintion:
    <xsd:element name="providerList">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="providerId" type="xs:string" maxOccurs="unbounded" minOccurs="0" />
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:schema>
    providerList variable is of type "providerList".
    What else do I need to do to convert the List to the xml elements ?

    Well I believe this is not officially mentioned anywhere, but this is the limitations for the java embedding activity. You can assign value to a single variable or to the single part element of variable only. I suggest you go with a java web service. you can check more details on java embedding activity @ http://docs.oracle.com/cd/E21764_01/integration.1111/e10224/bp_java.htm
    void setVariableData(String name, Object value)
    void setVariableData(String name, String part, Object value)
    void setVariableData(String name, String part, String query, Object value)

  • Custom Control for 2D data

    Hi,
    I want to develop a new Control/Indicator for 2D data, i.e. 2D points. My idea is to
    display a canvas with the current point and let the user drag it. Somehow it would
    thus be analogous to the common slider for 1D data.
    I'm quite new to Labview, so I don't really know how to address this question best.
    Should I customizing an existing control? I found some examples on that, but could
    not find a way how to link two inputs to the visual state, in other words, how to move
    the point on the canvas depending on the two input data.
    Or do I need to use an XControl?
    Sorry if this question is trivial or has been asked before, but I could not find a satisfying
    answer.
    Best wishes,
    Bene

    I bet this is somewhat the same as you need. try the link.
    How to create 2d slider?
    Ivel R. | CLAD

  • Custom Google Map Widget Control for Guide Builder

    Hi,
    I would like to build a custom control for Guide Builder.  This custom control will basically wraps around the Google Map control (provided by Google api for Flex/as3).  This custom map control can then be used as part of Guide Builder when building the guides.
    I am not sure how to go about doing this, or if this is at all possible.  I just want to get an idea before I attempt to do this.  Any help is appreciated.
    Thanks in advance,
    Nelson

    I'm still looking for help on this one, anybody?   Thanks.

  • Using a Meter control in LV Touch Panel, and using shared variables that are custom controls.

    I Just started using LV touch Panel module with an NI TPC-2106.
    I have two differenct problems:
    1) I was planning on using the "Meter" control quite a bit. I can set up the meter exactly how I like on the host PC, but on the touch Panel computer it seems to ignore my adjustments, mainly the start and end of the scale - i.e. I would like control to run from 0 to 360 with 0 straight up, using the entire circle. However, on the Touch panel computer it always puts 0 at about 7 o'clock and 360 at about 5 o'clock. I have also tried adding markers to no avail.
    2) I am communicating with a compact fieldpoint controller. I can creat a shared variable that is a simple double with no problems. However, I have some shared variables that use a custom control for the variable type - bascially a cluster with a couble doubles, a time stamp, and an enumeration. It lets me drag the shared variable into my diagram, but it seems to ignore it when I run it.

    Ipshita_C,
    - I am using LV 8.6.1f1and LV Touch Panel 8.6.1.
    - I have attached a simplified VI that shows how I want to use the meter. Notice that the placement of the endpoitns does not work correctly on the touch panel, and that it ignores the arbitrary markers that I placed.
    - I also have included an XY graph control that displays on the TPC with margins around the graph area that I removed from the graph control.
    - For the shared variable, it appears to be an issue related to the touch panel, not fieldpoint. I found another thread in this forum that mentioned that clusters containing Enumerations do not work in shared variables on the touch panel. I changed the enumeration to an integer and it now works fine.
    In general, there seem to be a disappointing number of limitations in the touch panel implementation. My biggest concern is that I have not found any documentation from NI that lists these limitations. I seem to have to try things out and see what works and what does not work. Can you point me to a comprehensive list of touch panel modules limitations?
    Attachments:
    test 2.vi ‏10 KB

  • Checkbox in custom control(module pool)

    Hi Experts,
    In my module pool i have used function module 'set_table_for_first_display'.
    I am displaying internal table having field for checkbox in custom control .
    When user clicks any checkbox value 'X' is not getting populated in checkbox field in internal table for that particular row.
    Please suggest,
    Regards,
    Kaustubh.

    Hi,
    Just check the Field Catalog you have maintained for the List and check for the Options.
    also in the Grid Layout that you are maintaining just try these:
    data:   g_layout        TYPE lvc_s_layo,           " Grid Layout
    constants:    c_flag(4)       TYPE c VALUE 'FLAG',       " FLAG field
                        c_a             TYPE c VALUE 'A',              " Value 'A'
    In building layout:
      g_layout-sel_mode    =  c_a.
      g_layout-excp_fname  =  c_flag.
    Edited by: Neha Shukla on Nov 17, 2008 6:48 AM

  • How do I create an emergency stop custom control in LabVIEW that looks like an actual E-stop button

    How can I find (or buy) a variety of custom controls for various applications that look better than the standard NI controls.

    Here is a simple E-Spot button. Warning: I'm no artist . I made the pictures in Word, edited them in MS Photo Editor and imported them into LabVIEW
    Attachments:
    E-Stop_Button.ctl ‏51 KB

  • Create a Fancy Custom Control

    I'm trying to create a fancy Custom Control for processing Cell Counter images.  I want a Control that lets me select two image types, Fluorescent or DAB, and if I choose Fluorescent, will let me pick Red, Green, or Blue.
    I created two Radio Button controls, one for Fluorescent/DAB, one for RGB, that look like this:
    I was hoping to "embed" the RGB control inside the Image Type control, yet have them retain their properties (a 2-element and 3-element Dialog Box).  When I did the simple drag-and-drop of RGB onto Image Type, it acted as though I added elements to a cluster, and I had a 5-element Dialog Box, not what I wanted.
    So I got clever and dragged Image Type on top of RGB.  Of course, if Image Type is in front, you don't see RGB.  However, if RGB is in front, you see both, but with ugly shadows around RGB (I made its label invisible).
    Anyone have an idea how I can Have my Cake and Eat It, Too?  Specifically, how can I get rid of the shadow that the RGB control casts on the Image Type control?
    Here are the controls, themselves, as snippets:
    Bob Schor
    Solved!
    Go to Solution.

    Duh ...  Thanks, Lynn!  Here is the result:
    Bob Schor

  • Line-logging and protected text on custom control, protect_lines

    I have a module pool with various screens which contain texts.  Because of other requirements, it was necessary to create custom controls which show those texts as a sort of preview pane, that it, a white box which shows the text and allows one to enter new text.  Now the customer would like the text to have log lines and have it be protected.  That is to say, once you enter a text and save your work, both the log line and the new text are preserved and grayed-out allowing only new lines to be entered - you can't go back and change old lines.  Research I've done in the past leads me to believe that using the method protect_lines in the C_TEXTEDIT_CONTROL class is the way to go.  However, I have been having all kinds of trouble with it.  Are there examples which show how to use this?  For example, how do I put a protected log line in the white box, allow the customer to add a new line, protect that line on save and, at the same time, if they don't enter a new line, don't save the log line?
    I've mostly accomplished the above, however, the following still eludes me:
    I have used CL_GUI_TEXTEDIT class to create a custom control for text entry. I am using the PROTECT_LINES method to afix a date/time stamp and then make it non-editable. The problem is, when I am in the editable area and I hit back-arrow until the cursor jumps up to the end of the protected date/time stamp, when I begin typing again, it pulls the last part of the protected text down into the editable area. For example, if your protected text ends in a phone number, say "555-1212", after back-arrowing up to the end of it and beginning to type again, the "1212" will be down in the editable area and will be changeable. Can anyone tell me what I am doing wrong?
    Edited by: Buckman Michael on Dec 3, 2008 6:37 PM

    Further research has led me to believe that the PROTECT_SELECTION method solves this problem.  Specifically, if you look at include file LIQS0F50 at about line 1065 you can see how QM01/QM02 handles this on screen 7710 of SAPLIQS0 when you have line-logging turned on.

  • Dynamic screen and custom control

    Hi,
    I have to create a screen and custom control dynamically within a method and display alv grid. Is this possible?
    regards,
    Madhu

    hi,
    this is a smple program just try in this way.plz do reward points if it is of some use
    data:obj type ref to zcl_test_alv.
    parameter:p_mblnr type zbshd-mblnr.
    start-of-selection.
    set screen 100.
    *&      Module  STATUS_0100  OUTPUT
          text
    module STATUS_0100 output.
    SET PF-STATUS 'xxxxxxxx'.
    SET TITLEBAR 'xxx'.
    if obj is initial.
    create object obj
    exporting p_con = 'MATERIAL_DOC'.
    endif.
    CALL METHOD obj->get_data
        exporting p_mat = p_mblnr.
    endmodule.                 " STATUS_0100  OUTPUT
    The above is an executable program.
    zcl_test_alv is a class which u need to create in se24 according to ur requirement
    u need to define methods and attributes.
    for example there are 3 methods
    constructor
    get_data
    put_data
    method GET_DATA.
    SELECT mblnr
             mblpo
             matnr
             maktx
             meins
             menge
             waers
             dmbtr
             INTO corresponding fields of TABLE it_mm
             FROM  zbsit
             WHERE mblnr = p_mat.
    if sy-subrc = 0.
    call method put_data.
    endif.
    endmethod.
    method PUT_DATA.
    DATA : it_fldcat TYPE lvc_t_fcat.
      DATA : wa_fldcat LIKE LINE OF it_fldcat.
      DATA : it_sort TYPE lvc_t_sort,
             wa_sort LIKE LINE OF it_sort.
    CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
    EXPORTING
      I_BUFFER_ACTIVE              =
       I_STRUCTURE_NAME             = 'ZBMDC'
      I_CLIENT_NEVER_DISPLAY       = 'X'
      I_BYPASSING_BUFFER           =
      I_INTERNAL_TABNAME           = 'ZBSIT'
      CHANGING
        ct_fieldcat                  = it_fldcat[]
    EXCEPTIONS
      INCONSISTENT_INTERFACE       = 1
      PROGRAM_ERROR                = 2
      OTHERS                       = 3
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      EXIT.
      ELSE.
        LOOP AT it_fldcat INTO wa_fldcat.
          CASE wa_fldcat-fieldname.
            WHEN 'MBLNR'.
              wa_fldcat-reptext   = 'Material Doc no'.
            WHEN 'MBLPO'.
              wa_fldcat-reptext   = 'Item Material Doc'.
              wa_fldcat-ref_table = 'X'.
            WHEN 'MATNR'.
              wa_fldcat-reptext   = 'Material No'.
              wa_fldcat-ref_table = 'X'.
            WHEN 'MAKTX'.
              wa_fldcat-reptext   = 'Description'.
              wa_fldcat-do_sum    = 'X'.
            WHEN 'MEINS'.
              wa_fldcat-reptext   = 'UOM'.
              wa_fldcat-do_sum    = 'X'.
            WHEN 'MENGE'.
              wa_fldcat-reptext   = 'QUAN'.
              wa_fldcat-do_sum    = 'X'.
            WHEN 'WAERS'.
              wa_fldcat-reptext   = 'CurrKey'.
              wa_fldcat-do_sum    = 'X'.
            WHEN 'DMBTR'.
              wa_fldcat-reptext   = 'curr'.
              wa_fldcat-do_sum    = 'X'.
          ENDCASE.
          MODIFY it_fldcat FROM wa_fldcat INDEX sy-tabix.
        ENDLOOP.
        wa_sort-fieldname = 'MBLNR'.
        wa_sort-up        = 'X'.
        wa_sort-subtot    = 'X'.
        APPEND wa_sort TO it_sort.
    ENDIF.
    CALL METHOD o_grid->set_table_for_first_display
    EXPORTING
       i_buffer_active               =
       i_bypassing_buffer            =
       i_consistency_check           =
       i_structure_name              =
       is_variant                    =
       i_save                        =
       i_default                     = 'x'
       is_layout                     =
       is_print                      =
       it_special_groups             =
       it_toolbar_excluding          =
       it_hyperlink                  =
       it_alv_graphics               =
       it_except_qinfo               =
       ir_salv_adapter               =
      CHANGING
        it_outtab                     = it_mm[]
        it_fieldcatalog               = it_fldcat[]
        it_sort                       = it_sort
       it_filter                     =
    EXCEPTIONS
       invalid_parameter_combination = 1
       program_error                 = 2
       too_many_lines                = 3
       others                        = 4
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
               WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    endmethod.
    method CONSTRUCTOR.
    CREATE OBJECT o_con
        EXPORTING
           container_name      = p_con .
      IF sy-subrc = 0.
        CREATE OBJECT o_grid
          EXPORTING
             i_parent          = o_con .
      ENDIF.
    endmethod.
    Attributes are
    o_con type ref to CL_GUI_CUSTOM_CONTAINER
    o_grid type ref to CL_GUI_ALV_GRID
    it_mm type zmdoc
    to get alv grid ,in layout editor u need to create custom control
    for constructor method u should have a parameter p_con with default value as 'MATERIAL_DOC'
    Im just explaining the above program use this as reference and try.

  • Custom control: slider with two needles

    I've been using LabVIEW for some years, and I was able to create a lot of custom controls.
    I know that CVI is doesn't allow me such a level of customization, but I don't know if there is a simple and effective way to create a slider controls with two needles (based on the Vertical Pointer Slide for example).
    I used two different overlapped slides, and they behave more or less as I expected (not fully satisfied, but ...). I need placing a lot of these controls in a panel, so I wonder if I can group the two slides in a custom control, and write some c code to interface with them (if I select Create >>Custom control, I can't select two different controls...)
    Is there another way to create a slider control with two needles?
    Vix
    In claris non fit interpretatio
    Using LV 2013 SP1 on Win 7 64bit
    Using LV 8.2.1 on WinXP SP3
    Using CVI 2012 SP1 on Win 7 64bit, WinXP and WinXP Embedded
    Using CVI 6.0 on Win2k, WinXP and WinXP Embedded

    Hey Vix - 
    While I agree it's not quite as straightforward as LabVIEW, you can do exactly what you're talking about with LabWindows/CVI.  The basic instructions to do this are here.  Another good resource is to check out the installed custom controls in <CVI>\toolslib\custctrl, and copy their format.  It sounds like for your particular case, you'd want to create a custom control for a slide control.  Then, in the API for your custom control, you could have a convert function that programmatically created the second slide control for your second needle.  If you need more detail than this, let me know. 
    NickB
    National Instruments 

  • Fully custom controls

    Hello:
    I have struggled with this off and on for several years now. I need to build custom controls for industrial automation applications using LabVIEW and the DSC module. I need the ability to fully customize the appearance of the existing controls while maintinaing color and blink properties. It would also be nice to preserve smooth control apearance when resizing.
    I have figured out how to acheive transparency using Photoshop CS and png files. Other information is obviously lost when an image in a custom control is changed.
    Since the built-in controls scale smothly, can I assume that they are vector graphics based? Can their images be better edited using a vector-based tool?
    Is there a special channel which allows for color properties to be applied to a control's image? Is it possible to manipulate this into custom controls?
    In general, I would like to know how to edit graphics for custom controls so that I can maintain the original ability to use property nodes to control the appearance of a custom control.

    Thank you for the link. It dies answer some of my wuestions, but still leaves me without a solution. Can you provide more information on the "picture in c code" format? I can not find any information on it online. I am a C++ and C# programmer, but I am not familiar with PICC.
    Is it possible to access the source code for the controls included with LabVIEW and truly customize them?
    Thank you,
    plaskey

  • Custom controls or Xcontrols?

    I would like to create custom controls that a user can drag-and-drop from the controls palette.  The user will import an image showing pipelines and then drag-and-drop valves on the pipelines.  I want to create these valve controls so that you can easily set their timing or connect them to other valves to have an identical, inverse or delayed response. 
    Would it be more appropriate to use Xcontrols than custom controls for this application? 
    Thanks, 
    Suretha

    Suretha wrote:
    The user wil not necessarily be a developer, no. 
    My idea is to create a basic valve with different attributes, for instance  it's timing can be linked to another valve, but then you can specify if it should be identical, inverse or a delayed version of the other valve's timing sequence. 
    This sounds like intelligence to me, so I assume an Xcontrol will be necessary?  
    This is starting to shape up as a "control on the Fly" Challenge. But I'm not going ther yet.
    XControls are great if you as a developer have same functionality you want to include in more than one app. They wrap-up all of the functionality you associate with that control. You (as a developer) just drop another one in a new app and the functionlaity comses along for the ride. In my experience this means I code up the function I want in an app (done coding if I don't go to XControl) and then start the work of converting to work as an XControl.
    If you can put an upper limit on the number of objects you will present on the screen at any one time you can;
    Create a cluster with the max number of controls you need and hide what you are not using at the time.
    Do the same as above with hidden controls.
    If you can let the GUI NOT look like the widget you are testing then arrays are useful.
    If all of the above leaves you lacking I'll outline what I went through to do my last "Controls on the Fly" app.
    1) Get very familiar with the LV Picture control. If allows you to draw whatever you want and offers mouse down/up move, enter and leave events. The picture control will be used to render your objects.
    2) Get familiar with LVOOP. I used LVOOP because many of the routings of mouse clicks, possitioning, rendering, etc are common to all of the object on the screen. Code up this functionality in a parent class so the childeren can inherit this functionality.
    3) Code up an application that operates in two modes (optional but it makes design easier) "Desgn mode" and "Operate". In Design all the user to layout the GUI but do not implment any functionality beyond Deisgn work. The design when loaded in Operate mode should establish all nessesary communications and use the events captured from the Picture control to invoke the methods required for each class of gizmo on your widget.
    There is a LOT of work that goes into a "Controls on the Fly" app. If the work I outlined above "bugs" you. It should.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

Maybe you are looking for

  • HT201250 How to go back in time to a certain date

    Hi there, I'm new here new, but I need your generous help. The other day I downloaded free Adobe Reader XI (11.0.02) on the Adobe official site. Since then I can't read any pdf files on my Mac. I guess I didn't need to download it since I already had

  • When opening a new tab, Pogo with Yahoo search pops up first - how do I get rid of this

    When clicking on a new link, the page changes to Pogo.com with a Yahoo search bar mid screen until the new tab starts to load, then it reverts to the originale page. Im using vista with yahoo as a home page, links open in a new tab. Tried changing ho

  • Show pop up Window...

    Hi Experts, My Requirement is that..i have some input fields, when the user fill the input fields and press SAVE button, a pop up window should appear saying "ARE YOU SURE", just like in windows, please tell me how can i do this in Web dynpro java. T

  • Copying contacts from .pst file into iCloud

    What would be the easiest way to copy contacts from a Microsoft Outlook 2003 .pst file to iCloud, of not by synchronizing? I am able to open the file with Microsoft Outlook 2003 and see, change and add the contacts. Synchronizing does not work.

  • Webdynpro setting

    Hi I am using ecc6.0.In webdynpro while running the sample program i am getting the following error. Die URL enthält keine vollständige Domainangabe (dev statt dev.). For this i need any setting change? Thanks in advance...........