Jump to content

Yagnik_Patel

Members
  • Posts

    24
  • Joined

  • Last visited

Posts posted by Yagnik_Patel

  1.  

    14 hours ago, Neil Pate said:

    Ok so lets try and make this as simple as possible. Imagine all you have is a single constant value of your International thankyou enum on your block diagram. I get the feeling you would like to display this as a 2D string array with the first column listing all the possibilities of the enum and the second column has  "1" in the column of the row that matches the constant value otherwise it has a 0, is this correct?

    Can you describe in words how you would create this array?

    Yes. Exactly!!! this is what I am thinking. But Source should be Cluster. Screenshot may clear my idea

     

    14 hours ago, Neil Pate said:

    display this as a 2D string array with the first column listing all the possibilities of the enum and the second column has  "1" in the column of the row that matches the constant value otherwise it has a 0

     

    Storing value from cluster Boolean&Enum to Array.png

  2. 4 hours ago, Neil Pate said:

    Thanks Yagnik.

    The tree control is not a nice thing to work with, I fear you are trying to do too much at once.

    I think perhaps you need to start off a bit smaller. If you really really want to include the enum items in the table first try and get it working as a 2D string array. I mean not using any of the code you have been, just by figuring it out yourself. You can achieve what you want with a single enum and a nested for loop. Once you have that working you can figure out how to get that integrated into the cluster viewer code you have.

    I am trying to execute this Code to get Enum Element to array according to your suggestion.

     

    Enum to String.png

  3. 34 minutes ago, Neil Pate said:

    You need to learn to crawl before you can walk... perhaps somebody in this forum will just show you the answer you are looking for (i.e. do your work for you). I am not that guy though, sorry.

    Dear Neil Pate, I dont want answer. I just want your advice and suggestions of you and all other experts. I always be thankful to you for discussion. Big Thaaaaaaaaanks

  4. 2 minutes ago, Neil Pate said:

    Sorry, I still don't get it...

    The Config cluster is your process data, ok that makes sense. But an Enum is only a single value, it is not multiple values, why are you trying to display it as multiple values?

    Dear Neil Pate, 

    As to initialize my project, I need to display all possible value of enum in treeview. Maybe my Screenshot will make it more clear. Thank you!

    Just for Enum.png

  5. 15 hours ago, Neil Pate said:

    OK so that is better, although still I would ditch the OpenG directory and just install them properly.

    So I don't really understand your question. The Tree is a representation of your cluster, the hierarchy of the tree (parent/child relationship) represents the nested clusters and values. The value column shows the actual value of each element, this appears to be working correctly.

    What are you trying to achieve? Can you post a screenshot of what you would like to see?

    Hereby I am attaching the screenshot what I expect with little reason about why I want that !!!. Thank you xperts

    demoVI 2.png

    DemoVI.png

  6. Hello everyone, 

    I am designing a project in which I need to variant data from cluster to tree view and then transfer name, value and tag from tree to table with drag and drop option as well as select individual cell option. I am attaching my example VI. But it needs OpenG stuff to execute so kindly take notice of it. Can anybody help me because i am not good enough with OpenG VI ?

    Thanks in advance 

    Cluster to Tree and Tree to Table.zip

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.