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.

Similar Messages

  • Tab Control Property Node gives a build error when used in a VI for LabVIEW PDA

    Hello,
        Iam new to LabVIEW development & need help regarding this:
        We are trying to port a LabVIEW application from desktop to a Windows Mobile PDA. Please note that the LabVIEW application works fine on the desktop. In one of the VIs, a Tab control property node is used which gives a build error with LabVIEW PDA project. A sample VI which shows the problem & the error list snapshot is attached with this post. Can anyone please suggest an alternate approach to achieve the same functionality with LabVIEW PDA? Waiting for an early response from anyone...
    Thanks & Regards,
    Subhashini
    Attachments:
    VI_Error.zip ‏31 KB

    Hello Ton,
        Am glad that i got a response, thanks. The following links indicate that Tab control is supported on PDA target:
    http://digital.ni.com/public.nsf/allkb/CBA335641E27B858862571490015EA88?OpenDocument
    http://forums.ni.com/ni/board/message?board.id=170&message.id=221507&requireLogin=False
        I feel that the Tab control property node that has been used in the VI (which is attached earlier) may not be supported on the PDA target. Can u (or any LabVIEW expert) suggest an alternate approach to achieve the same goal with LabVIEW PDA (changing colour of Tab control pages programatically)??
        I had missed out some details earlier: We are using LabVIEW 8.5 PDA module on a Windows Mobile PDA.
    Thanks & Regards,
    Subhashini

  • Question(s​) about the Active Cell:Posit​ion property node for a table control

    Hello,
       What determines the Active Cell Position property node for a table control? I have this in my code and I am displaying its value to a front panel indicator. The value displayed is always set to 0,0. The help for the property node say that it is "read -only" so what sets the value of Active Cell Position  for a Table Control?
    Regards,
    Kaspar
    Solved!
    Go to Solution.

    You set the active cell with a property node.  Once you select an active cell, you can do specific things to that cell and that cell alone, things like set the background color.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • 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

  • How can I make a "property node" for a VI?

    Hello!
    If I add a boolean button on the FP then I am able to make a property node for that button in the Block Diagram. But how can I make a property node for a VI? I have several VI:s an that together is one program. What I need to do is to verify what kind of VI some of my VI:s is. I need to verify if it is .exe or .vi-file, and if it is .exe then I want to disable run, abort, run continuously bottons otherwise not. I have hard that this is possible to do programmaticaly but I can´t figure out how. I am aware that I could do that manually in the File->vi properties->customize->windows appearance but theese choises makes it last forever.
    I want to be able to stop and run and everything if it is a .vi file, but if it is .exe-file then all those buttons should be disabled.
    Anyone have an example on this?
    In an other message at this Forum I read "You can use the `Front Panel Window. Allow Runtime PopUp`" property to disable run-time shortcuts menues programmaticaly, but still I dont know how to create this property node.
    /Amir

    You really shouldn't open a new thread. If you don't understand something, ask and we will explain it.
    Like I said in the other thread, you can check if you are running in LV or an EXE by using the Application>>Kind property. To get it, place a property node (from the Application Control palette) on the diagram, click it and find the property.
    To set the properties for the VI, place another property node, right click it and select Select Class>>VI Server>>VI. You should have the properties you want under Front Panel Window.
    To learn more about LabVIEW, I suggest you try searching this site and google for LabVIEW tutorials. Here and here are a couple you can start with. You can also contact your local NI office and join one of their courses.
    In addition, I suggest you read the LabVIEW style guide and the LabVIEW user manual (Help>>Search the LabVIEW Bookshelf). I believe chapter 17 of the user manual explains about programmatic control of VIs.
    Try to take over the world!

  • Tree control with Nodes in ALV

    Hi ABAP Gurus,
    I am trying to create tree control with nodes in ALV. I have referred to standard BCALV_TREE* programs but new to OO programming. Not sure as to how I can display my internal table data than the SFLIGHT information in these programs. Can you please let me know how this can be done or if I can use any ALV function modules for the node display.
    thanks,
    Chaitanya

    Maybe you could use this.  Call this VI from a Value Change event of the tree.
    Attachments:
    Check_Tree_Items.vi ‏28 KB

  • Tab Control Property Node unknown error on TPC

    I am using Lab View 8.6.  I am programming an HMI onto a TPC 2106.  I am using a Tab Control and it workls fine.  The problem is when I add a property node for the tab control to the block diagram.  I get an unknown error no matter which property I choose or if it is read or write.  I tried it on a vi destined for the computer and it works fine.  It seems to be an issue with the TPC 2106 as the destination.

    Hi vrundquist,
    When compiling a VI for a TPC, there are many properties of controls and indicators that will not be supported.  Which properties specifically have you tried?  I want to be sure you are choosing a property that should be OK.  For example, try the Visible property.  Also, is there anything else going on in your code, or can you reproduce this with a VI that has nothing but a tab control?
    Regards,
    Brian A.
    National Instruments
    Applications Engineer

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

  • How to set property nodes for each of the multiple y-axes?

    In Labview 6i, I have set up multiple y-axes on an xy graph. I want to change certain properties of each of the 2 y-axes independently. I believe I can do this using "property node".
    However, after I have created a property node for the xy graph, I realised that there is only 1 y-axis selectable from the list of properties. How can I set the property of the other y-axis then?
    Thanks for the help!

    I believe there is a property called "active graph"... this allows you to
    select the active graph to apply the property changes to...
    Later...
    meng118230 wrote in message
    news:[email protected]..
    > In Labview 6i, I have set up multiple y-axes on an xy graph. I want to
    > change certain properties of each of the 2 y-axes independently. I
    > believe I can do this using "property node".
    >
    > However, after I have created a property node for the xy graph, I
    > realised that there is only 1 y-axis selectable from the list of
    > properties. How can I set the property of the other y-axis then?
    >
    > Thanks for the help!

  • Mixed signal graph property node for plot groups?

    Hello!
    Is there a property node for the name of the Groups in a mixed signal graph?

    Hello
    as you can see in
    http://forums.ni.com/ni/board/message?board.id=170​&message.id=226983&requireLogin=False
    there is no property for plot groups.
    Thanks,
    Rebecca Fox
    Applications Engineer
    National Instruments

  • Multi-language support for user-specified text strings used in the forms

    multi-language support for user-specified text strings used in the forms
    Instead of creating multiple forms, 1 in each different language, for the same service, is there any workaround?

    Hoan - is your question what are the considerations when creating multiligual catalogs? If so, I can tell you that at other clients I have seen them use a single catalog for one or two languages. For the two langugages, such as Spanish/English, you can create a single catalog with both of them. Once you get to more than two languages, the catalog would get unweildy and is therefore not suggested.

  • Using One Property Node For Multiple Controls/I​ndicators

    Question for all you LabVIEW gurus.  Is there a way to create 1 property node that is used for multiple indicators?  For example, if I wanted to display the same value on 10 different indicators using the property node - value function do I need to create 10 separate property node-value instances for each indicator?  Or is there a way to tie all of those indicators to only one property node?
    Thanks!
    Solved!
    Go to Solution.

    Hi hobby1
    You could create a cluster, and inside in it put all the indicators, see the image attached
    Attachments:
    capture1.JPG ‏14 KB

  • Use of multiple property nodes for GUI manipulation

    I have a LabVIEW 6.0.2 application where I'm using 14 different property nodes in the main loop. All of these have to do with GUI - hiding buttons when "X" isn't pressed, disabling and greying out controls if <0, popping one button on top of another depending on the mode of operation, etc, etc. While this works fine, the program is getting slow. I've noticed that using the old 2-D buttons works faster - things update faster and redraw quicker. However, more to the point, I once read that if you have to use a lot of Property Nodes like this, that you should bundle them into a sub-vi, thus replacing what would be Property Nodes with references. How does that make it faster?
    Richard

    Not sure if bundling them into a sub-vi by itself would make it faster. The nodes in the sub-vi would still have to access the user interface thread, and that's where the slow down comes from.
    When I use any property node, I put it in a case structure and only write to it when needed. You just need to be able to detect when the value being written is changed from last loop iteration. It's useless to constantly rewrite the same value (doesn't have to be the "value" property) to the node.
    Bundle them into a sub-vi and put the change detector, case structure and nodes in the sub-vi, this should help speed things up a bit. Assuming of course that the nodes are the slowdown. It may also help clean up the diagram a bit.
    Ed
    Ed Dickens - Certified LabVIEW Architect - DISTek Integration, Inc. - NI Certified Alliance Partner
    Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.

  • Why can't I create property nodes for item in STRICT typedef cluster?

    I've tried this in LV7.0/WIN2k and LV 7.1/OSX - both versions work the same.
    I have a TYPEDEF consisting of a cluster of items A, B, and C.
    I have a front-panel instance of this typedef.
    Under certain conditions, I want to disable and gray Item C, because it's not applicable.
    So I need a property node connected to item C.
    If the typedef is STRICT, then I cannot create such a property node - the menu item to create anything is just not there.
    If I change to NON-STRICT, then I can create the property node.
    I can change it back to STRICT, and the property node works just fine.
    The question is, if the nodes WORK normally, why can I not CREATE one?
    If there's some sense behind this, someone please point it out to me...
    Steve Bird
    Culverson Software - Elegant software that is a pleasure to use.
    Culverson.com
    Blog for (mostly LabVIEW) programmers: Tips And Tricks

    I agree with you, It would be nice to be able to keep the non strict typedef auto-update and extend it to properities which effect the look of a control. I am not sure why you can change the properities on a strict typedef. A strict typedef should have private properities (can only be changed from within the definition and no public other vi scope for writing these values. I have in the past used a custom control for presentation purposes and contained the structure of the data to be displayed within the typedef cluster. This is not all that automatic since we need vi's to convert between the definition and control. Seperating data structure from presentation is much like XML where the file only contains data structure and a reference to a style for presentation. It would be a very nice option to allow nonstrict typedefs to have an additional auto-update properities which could be toggled on and off. I would be curious to here others opinions on how to keep data structure and presentation consistant across an application without being tied down to a strict typedef (allowing the optional change of teh presentation at runtime).
    Paul
    Paul Falkenstein
    Coleman Technologies Inc.
    CLA, CPI, AIA-Vision
    Labview 4.0- 2013, RT, Vision, FPGA

  • Controlling property node inside a arrayed cluster

    I need help on how can i change programmaticaly a color of led/boolean on a specific element in an arrayed cluster.
    attached is sample vi, i need to change the color of the status led boolen to yellow if the sn = 'No Unit'.
    tried to use property node but it did change all the element in an array. 
    mytestautomation.com
    ...unleashed the power, explore and share ideas on power supply testing
    nissanskyline.org
    ...your alternative nissan skyline information site
    Solved!
    Go to Solution.
    Attachments:
    try.vi ‏12 KB

    Arrays must contain identical elements.  If those elements are clusters its not an issue but lets simplify your array to an array of booleans for clarity.  but each element in an array most have the same properties.  You will not be able to change the Colors4[] property on one element of the array although you can set the Colors4[]property on ALL elements of the array. 
    In your case- it sounds like you need a control type that can have multiple values (color box) to display one of several colors (Green=good ser, Yellow = No ser, Red = Bad ser, ect.) and not a boolean that has exactly 2 possible values.  Here's a custom button I got as a gift a while back.  See if it helps
    Jeff
    Attachments:
    Round Color Box.ctl ‏4 KB

Maybe you are looking for

  • Host command in forms 10g

    hi all i am using host command in forms 10g. but it is not executing . is there any distinct syntax or pre-requirement for executing this command kindly help thanks

  • Leopard wireless issues and clean install

    I've been wrestling with wireless problems since upgrading to Leopard (I've discussed my issues on this forum). I've tried all the suggested fixes I've found, but still have spotty wireless. I'm going to try a clean install next (erasing my hard driv

  • How many photos is too much

    I realize that this is one of those "your mileage may vary" type questions, but here goes: How many photos is too much for a single iphoto library? Have people either encountered problems after reaching a certain threshold? Or are there people who ha

  • Business components based on Oracle views

    I am trying to create business component objects in a master-detail relationship based on Oracle views rather than on the underlying tables. The wizard does not create associations or links since the views have no foreign keys. I created the associat

  • Is changes in standard notifications possible?

    Hello,    I would appreciate if you could please let me know if its possible to make any changes (i.e edit/customize) in the standard notifications on SAP Portal?    In this respect read few help pages and learnt that there is an Application named as