Is a tree control appropriat​e for this applicatio​n?

I've been playing with the idea of designing a Visio-like application in LabView.  (See my post from a year ago or so...  Playing with the idea for a long time, I guess...)
My first approach was to use a flat array to hold all the objects that would be drawn.  To draw them, I treated the flat array like a tree, adding new objects to the end, and traversing it carefully when drawing a page.  (This page has this "group" object, which contains these other objects...)
Would the tree control be appropriate for this type of application?  I don't necessarily need to show the user the tree.  I would use it primarily for behind-the-scenes bookkeeping.  Or is the tree primarily a GUI-oriented control?
Secondly, how can I relate items in the tree with the information I need to display on the canvas?  For example, If I come across an object titled "panel\group_2\square_5" -- well, how do I use that to access all the properties of "square_5" (size, color, etc.)?  When the tree is used for representing a directory structure, a tag named "c:\dir2\file5" is very convenient -- the computer knows what to do with that, and no massaging is needed.  But what good is "panel\group_2\square_5"?  Do I then perform a string "match pattern" of an array of tags, and use that index to the flat array of objects?  Ugh, that doesn't seem very efficient.
Thanks!
Tom

Someone who's used OOP will undoubtedly jump in here and tell you this is an ideal case for OO, because they can easily have children and you can represent your tree structure in a logical fashion.  Another approach would be to use variants.  Since variants can have named attributes, and attributes are themselves variants, you can easily construct a tree representing all your objects.  Each object might also have a "properties" attribute allowing you to access all the relevant properties of, for example, your square.

Similar Messages

  • I need to maintain a temperatur​e profile for my process.Ca​n i use PID control for this applicatio​n?

    Hi all,
    I need to maintain a temperature for my process.Can i use PID control vi's for this application?
    I have NI-PCI 6023E DAQ board.Should I need any other hardware components???
    Any help in this regard is highly appreciated.
    Thanks,
    radhika

    Hi,
    Thanks for your reply.
    I do have a temperature sensor and it is read by the DAQ (NI 6023E) .
    Also i have a voltage input to the program which has to be controlled in order to control the temperature.
    So , I am using a PID , the output of the PID should control the Voltage input so that the temperature is controlled.
    Can I give the  voltage input and the temperature  to the PID through the DAQ and  just use one more channel in the DAQ to get the output from the PID.Will that work???
    I am not sure why you have mentioned SC2345,SCB68.
    Thanks,
    radhika

  • Tree Control Property Node for Accessing "Child Text" String Array

    When adding items to a tree control using the EditTreeItems invoke nodes, the inputs include "Child Tag", "Item Indent", "Child Only?", "Glyph Index", "Child Text", and "Left Cell String" as can be seen in this screenshot.
    There are property nodes for the tree control for accessing each of these elements, except for the "Child Text", which is an array of strings. It is possible to access this data as outlined in this forum post, but this method is somewhat involved and round about. 
    I suggest that a property for the Tree class be created to access the Child Text array directly.

     The work around only works if you do not have an empty string element some where in the middle.
    At lest could the "Active Celltring Property" read return an error when you have gone beyond the end of the array.

  • Tree control tip strip for each item

    In tree control is possible set a Tip strip for each item (node) of tree?
    In tree control  tipStrip property seems relative to all tree.
    Thanks all.

    The only thing I can think of is to use an event structure
    use a mouse move event
    Get Cords
    Calculate what item the mouse is over
    Use a Tips property node to write the correct string.
    The hard part will be calculating what item the mouse is over, The Displayed Items property node should help.
    I am actively working on a program that is centered around a tree control and might like to do the same.
    If you need further help reply back 
    Omar

  • Please, I need help in this,How to make a tree control appear from right to left ??

    i working on Arabic project in which we use a tree control and i  want it to display its branches from right to left .
    i tried to rotate it but it doesn't work because the disclosure triangle still appear on the left .
    i ask if there is any thing to mirror the tree control ,and ask if this mirroing will work or not?

    You'll need to modify the layout logic of your renderer.
    Here's a simple example that extends the default tree renderer and overrides the updateDisplayList method(). It will probably need more work. Set textAlign="right" on your Tree control when you use this renderer. You'll also need to supply a disclosure icon that points in the opposite direction.
    package
        import mx.controls.treeClasses.TreeItemRenderer;
        import mx.controls.treeClasses.TreeListData;
        public class RightToLeftTreeItemRenderer extends TreeItemRenderer
            override protected function updateDisplayList(unscaledWidth:Number,
                                                      unscaledHeight:Number):void
                super.updateDisplayList(unscaledWidth, unscaledHeight);
                var startx : Number = data ? TreeListData( listData ).indent : 0;
                startx = unscaledWidth - startx;
                if ( disclosureIcon )
                    disclosureIcon.x = startx - disclosureIcon.width;
                    startx = disclosureIcon.x;
                if ( icon )
                    icon.x = startx - icon.width;
                if ( label )
                    label.x = 0;

  • What are appropriate directives for array implementation in hls

    dear friends,
      I have tried hardware implementation in VivadoHLS by passing arrays to the function in Microblaze based soc. The problem I am facing is that the RTL is not being implemented properly.Though the implementation was success for register inputs and outputs , there were no functions generated in the header files in include directory of pcores through which inputs are to be given to hardware while the input and output arguments are arrays in SDK. i need a help to know the appropriate directives for this implementation . And the functions to be used to give inputs after generating hardware and how the final outputs from the hardware are taken. Please clarify the implementation of this basic example.
    void array_add(int z[4],int x[4])
    #pragma HLS INTERFACE ap_fifo port=z
    #pragma HLS INTERFACE ap_fifo port=x
    #pragma HLS RESOURCE variable=z core=AXIS
    #pragma HLS RESOURCE variable=x core=AXIS
    #pragma HLS RESOURCE variable=return core=AXI4LiteS
    int i;
    label0:for(i=0;i<4;i++)
    z[i]=x[i];
    return;
    thanks and regards
    sasidhar

    Hi
    There are couple of directives for this. This can determine the way you want to implement your array or partition this.
    I found a good guide.
    http://users.ece.utexas.edu/~gerstl/ee382v_f14/soc/vivado_hls/VivadoHLS_Improving_Performance.pdf
    Hope this helps.
    Regards
    Sikta

  • Save Labview tree Control to file and Load from file

    I want to save all of the information from my Labview (8.2) tree control to a file and be able to read it back from a file and re-populate the tree control.  I am using different symbols as well as multiple columns and level of children in my control.  Does anyone have any suggestions on how to do this?
    Thanks
    Steve M.
    Attachments:
    tree pic.jpg ‏60 KB

    Hi Steve,
    I found a DF that talks about saving the tree to a spreadsheet file and have included it in this message.  To get items from the tree control, you have to use open up the tree and remove all of the items off of that tree, while still preserving the heirarchy of the tree.  The indent level property node will preserve the heirarchy of the tree and from there you can get the item tag and cell string. 
    To transfer the file to a tree, you will then need to read the file and insert items into the tree corresponding to the heirarchy.  I have also found a tutorial on how to traverse tree controls.
    I hope this helps.
    Regards,
    Nadim
    Applications Engineering
    National Instruments

  • Can anyone please give me the logic for this....

    I have a database table and in it i have a field department code. now, that department code might have '00' or '   ' (blank) or anyother value. now i want to add up all the currency amounts with department code '00'  and '  ' (blank) which have same company code and currency type. I called all the entries with '00' into one internal table and enrties with '  ' (blank) to other internal table.
    can anyone give me the logic for adding all the entries at a time.
    thanks in advance.....

    HI Srinivas
    i have a solution for this question.
    Use At control break statement for this.
    Loop the internal table.
    Use at Event AT LAST. In that use SUM Statement. U will get sum of all the numeric fields.
    Or else u can use ON CHANGE OF Currency type
    then find the total amount by adding previouse value with ur current value.
    Like itab1-amount = total + itab1-amount.
    Appent this into ur internal or write it into ur report.
    Reward me if its useful.
    Regards
    Ravi

  • Is Dreamweaver an appropriate tool for creating a Help system?

    Hi,
    I have the full Adobe Creative Suite and I'm looking to create a Help system. Is Dreamweaver an appropriate tool for this, or is there another tool that would be better? I don't have Robohelp.
    Robyn

    Hi Robyn
    Robohelp and most of the other help systems would be like splitting a nut with a sledgehammer, for what you describe.
    You are basically talking about a search system on specific topics, for which Dreamweaver is an adequate tool, it may be worth while incorporating one of the 'smaller' open source help system into your site, in order to achieve your goal.
    Your comment on posting to the 'indesign' forum is understandable but not recommenced (there is a great difference between dtp (classic graphic design) and web design / development), especially if you intend to incorporate your current 'user guide' into a web site. Any help system both for a program that you install on your computer or supply as a web site 'help' system can be constructed as a searchable html page (many are html pages now), and you can even use the a major search engine to do this for you, (providing you know how, of course). It is even possible to search pdf's, flash and audio, and provide then as a downloadable / online version as well if you so require.
    The one thing you did not say in your reply was how good your programming skills are, (if not very good, do you have someone who can do this for you), as this is what will limit your help / search system. But even here if you incorporate one of the search engines own search api into a basic web page they will index and search your site for you, both as a local search, and as a web search.
    Hope this helps, in some way.
    PZ

  • Tree-control for data input?

    Hi,
    I need to program an input screen for values that have hierarchical dependencies (e.g. sums). I feel, the most adequate user-interface would be a tree control, because of the data dependencies and also because the users asked for a possibility to collapse/expand parts of the data during input.
    I had a look at CL_GUI_COLUMN_TREE, but I'm not sure, if it can be used for data input. Has anyone done something like this before or can anybody direct me to some additional sample coding? (the sample coding in the reuse library didn't do it...)
    Thanks for your help, greetings, Kathrin!

    Hello Kathrin,
    Since you say that the user's input is hierarchical in nature, it is nice to have a tree-control for input. But, the choice of using a custom-control-version of the tree is a cause for some concern. I cannot recollect any of the SAP screens where the input can be given through such a tree framework (please do let me know if you have come across one). The problem with such a tree would be in the areas of even-handling. Filling the tree with appropriate data at the right times would be another challenge.
    However, there's one alternative that I would like to direct your attention to. You must have observed another kind of tree, when you select an application component from the APPLICATION HIERARCHY, which is just like a list. Also, the <i>Transport Organizer (SE09)</i>, <i>Menu Painter (SE41)</i> etc., have this kind of a tree. You can use this if you (or rather your users) are very particular on having a tree display. For more information, you can see the Function Group <b>SEUT</b>, which has the required function modules to accomplish the same. The Function Group is well documented, and you might have to work a little on the function modules themselves.
    Please do let me know if this is a suitable option to meet your requirement. All the best,
    Regards,
    Anand Mandalika.

  • Changing size area with help of mouse for custom tree control....

    Hi,
    I was creating a module pool program where I get tree control on left handise and HTML viewer on right hand side taking the help of example 'SAPSIMPLE_TREE_CONTROL_DEMO' . But I wanted the left hand side custom control adjustable i.e I move the size area by using mouse. (The way it happens in SAP standard screen) How can I do this ?
    Please hlep.
    Regards,
    Jainam,

    Solved it myself. I have to use split container for this....

  • XML for a Tree Control

    I am trying to create a Tree control for my application that lists account reps as branches with their clients as leaves below them.
    I created the xml below from a CGI script, but when the tree renders it the account reps are leaves and the clients don't show up at all. There is evidently something basic I am missing. Can anyone tell me what xml to do what I am shooting for should look like?
    <Result>
    <node>
      <label>Bill Smith</label>
      <data>AM|01</data>
        <node>
          <label>125 Company</label>
          <data>COMPID|2177</data>
        </node>
        <node>
          <label>ABC Manufacturing</label>
          <data>COMPID|2167</data>
        </node>
        <node>
          <label>Test Company</label>
          <data>COMPID|2172</data>
        </node>
    </node>
    <node>
      <label>Jane Jones</label>
      <data>AM|01</data>
        <node>
          <label>126 Company</label>
          <data>COMPID|2100</data>
        </node>
        <node>
          <label>XYZ Service Company</label>
          <data>COMPID|2101</data>
        </node>
        <node>
          <label>Test Company 2</label>
          <data>COMPID|2102</data>
        </node>
    </node>
    </Result>

    At this point it is just a test application so the code is pretty small. For retrieving the data, I pretty much copied code from one of the examples. I created an HTTP request since I plan to return results from a CGI interface rather than a web service. My data provider is derived from the lastResult property of the HTTPService "userRequest".
    <?xml version="1.0"?>
    <!-- containers\layouts\HDivBoxSimple.mxml -->
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" creationComplete="send_data()">
        <mx:Script>
            <![CDATA[
                private function send_data():void {
                    userRequest.send();
            ]]>
        </mx:Script>
        <mx:TitleWindow width="100%" height="100%" layout="absolute" title="Task Management" fontFamily="Verdana" fontSize="12" backgroundColor="#F0F0F0">
            <mx:HDividedBox x="0" y="30" width="100%" height="95%" >
                <mx:Tree width="15%" height="100%" id="treeCompList" dataProvider="{userRequest.lastResult.Result.node}" enabled="true"></mx:Tree>
                <mx:TileList width="60%" height="100%"></mx:TileList>
                <mx:DateChooser width="180"/>
            </mx:HDividedBox>
            <mx:Canvas x="0" y="-10" width="390" height="35">
                <mx:Button x="4" y="10" label="Reports"   cornerRadius="0"/>
                <mx:Button x="80" y="10" label="Due Today"   cornerRadius="0"/>
                <mx:Button x="174" y="10" label="Past Due"   cornerRadius="0"/>
                <mx:Button x="258" y="10" label="Events"   cornerRadius="0"/>
            </mx:Canvas>
        </mx:TitleWindow>
        <mx:HTTPService id="userRequest" url="http://192.168.1.20/cgiGroupFlex.exe" useProxy="false" method="POST">
            <mx:request xmlns="">
                <FUNCTION>GetAMCompList</FUNCTION>
                <FORMAT>TREE</FORMAT>
            </mx:request>
        </mx:HTTPService>
    </mx:Application>

  • Obtaining a reference to CURSOR LEGEND (Tree Control) of a graph (for purposes of compressin​g it)

    The Captain (Norm Kirchner) told me awhile back how to obtain a reference to the Cursor Legend of a Graph so as to be able to compress it (the cursor legend is a tree control that unexplainably likes to expand at times).  Norm, if you are still there or if someone else knows, please provide instructions for all to see.  Much obliged as I have searched everywhere in my email and notes and cannot find the correspondence.
    Thanks,
    Don

    If it is indeed impossible to create a reference to the cursor legend tree, then how was I able to do what I did in the attached VI?
    (Expand one or both of the cursor trees in the legend and then run the VI.)  See the block diagram.
    Note that I don't remember how I did it either (which is why I posted this originally).  I had notes on this in an email exchange with Norm Kirchner but I think during our change of email clients, it got deleted.
    Don
    Attachments:
    cursor_tree_legend_reference.vi ‏14 KB

  • Handling event for Tree Control Collapse

    Hi,
    Can any one suggest how to handle an event for 'Tree Node Collapse' . I have checked with all the exised tree events.
    thanks,
    Venu

    Hi Venugopal,
        If you are doing tree control programmin then i can suggest you a approach for tree node collapse and expand.
    for doing this follow these steps.
    1. create a toolbar (use class cl_gui_toolbar), add a button and assign a FCODE to it.
    2. here you register the following the event for the toolbar.
    gs_event-eventid = cl_gui_toolbar=>m_id_function_selected.
    3. here you set the handler for the toolbar events
      SET HANDLER  gref_application->handle_function_selected
                FOR  gref_toolbar.
    4. now in your class for gref_application you write a definition and implementation.
    definition
    handle_function_selected FOR EVENT handle_function_selected OF cl_gui_toolbar IMPORTING fcode.
    implementation
    CASE fcode.
       when 'collapse'.
          CALL METHOD xref_tree->collapse_all_nodes.
    this method might change depending upon the class you use for creating the tree.
    i hope this will help you.
    in case of clarification do get back to me.
    regards,
    Kinshuk Saxena
    PS mark helpful answers

  • Problems handling xml data for tree control.

    Hi,
    I have tried using tree control for displaying my xml data
    but I had a problem that i did not have labels in my xml data. A
    sample xml data is attached. So it displays the whole data at each
    level in the tree. The root label will be the entire the xml data
    and then one level down the remaining xml data and so on...
    How do i solve this issue i,e get the tags names itself as
    labels..
    Thanks in advance....

    An update after some efforts..
    Could get the folders perfectly i.e until the level of
    CPUTime perfectly but could not get the leaf: 32 since i used the
    following to set the label.
    I would like to know if there is a way to find out if a node
    is a leaf or folder and according set the label

Maybe you are looking for

  • Error while trying to remove an object with dsrm command

    hello, i get an error while trying to delete an object computer with the command line tool, DSRM. i get this view: actually, it's a one of hundreds of commands, that help cleaning the active directory of the obsolete objects. it is saying : "Access D

  • I am unable to activate my ipad mini

    When I insert my sim in my ipad to start it ...it could not complete configer please sugges what should I do

  • 7.6.4 killing extended networks?

    I've got a 5th gen Extreme serving as my router and dhcp server. Attached to it via ethernet I have a 3rd gen Extreme and a 2nd gen Express. All were running firmware 7.6.3. This config had been stable for a long time. I upgraded all of the units to

  • Error trying to debug in workshop

    I am using 8.1 SP4 on Windows XP Pro in Development mode<p> When I start debugging my web service in workshop, I get an error that says: <b>Unable to enable debugging. Verify that your webapp deployed correctly.</b><p> I did verify that the web servi

  • Zen xtra

    I am having problems with my zen xtra 60gb. It's worked fine until today. First it would recognize my player but when I tried to transfer it said player not connected. After a few attempt it would no longer even recognize my player was plugged. I hav