Jump to content
Kurt Friday

Cluster to Tree

Recommended Posts

Hi All

 

I'm playing around with visualising clusters as a tree structure. I've got some nice code working that I thought I would share.

 

It's part of an abstract data viewer that I'm working on.

 

Code is based on Open_G Variant and Open_G Config File tools

 

ClusterViewer.zip

Share this post


Link to post
Share on other sites

This is very cool. I had been wanting to implement this but have had other priorities. Do you plan to add the ability to read from the tree as well?

Share this post


Link to post
Share on other sites

Hey that's pretty neat.  It remind me of one of my favorite XControls the Variant Probe, where a variant can be displayed in a colored tree.

  • Like 1

Share this post


Link to post
Share on other sites

Thanks

 

Eventually I'll add the ability to edit an item and read back the cluster

 

Also right click and view an item such as an array as a waveform graph. If the item is another object then display its attributes as well.

 

The Variant Probe looks cool I'll take a closer look

Share this post


Link to post
Share on other sites

Hi Kurt,

 

Your tool seems to be very useful, i'l like to test it but i'm with LabVIEW 2013...

Could you please post your code sample with 2013 version please?

 

Thanks

 

Lionel

Share this post


Link to post
Share on other sites

I don't have 2011 installed so I can't test that this opens correctly, but I back saved it into 2011.  Again be sure and have OpenG stuff installed.

ClusterView 2011.zip

  • Like 1

Share this post


Link to post
Share on other sites

Can anybody tell me OpenG Libraries are paid or free !!!! As I am intern in company, My company didnt given me a full access and i cant know this information !!! thanks in advance !!!!

 

Share this post


Link to post
Share on other sites

OpenG is free as in beer, and free as in speech.  It is licensed under a BSD agreement, The majority of it is licensed under a BSD agreement, which basically means you can use it in commercial applications, edit it, change it, do as you please, as long as you attribute the creator (leaving in the text on the front panel) and there are a couple of other considerations when distributed as a binary.

  • Like 1

Share this post


Link to post
Share on other sites
1 hour ago, hooovahh said:

It is licensed under a BSD agreement

Except for the bits that are not ;)

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Similar Content

    • By Axelwlt
      Hi,
      In a Mouse Down? on a tree, I need to know if the user clicked on a expand/contract symbol, because I need to discard clicking on items but I still need the expand/contract mechanism.
      I would need something similar to the InSymbol from the Point To Row Column method, but for the expand/contract symbol.
      How can I do that?
    • By Fred chen
      Hi
       
      When I call the DLL, there is a structure:
      struct Signal { uint32 nStartBit; uint32 nLen; double nFactor; double nOffset; double nMin; double nMax; double nValue; uint64 nRawValue; bool is_signed; char unit[11]; char strName[66]; char strComment[201]; };  
       
      There is another  Message structure to the above Signal:
       
      struct Message { uint32 nSignalCount; uint32 nID; uint8 nExtend; uint32 nSize; Signal vSignals[513]; char strName[66]; char strComment[201]; }  
        The point is  Signal vSignals[513];
       
      I've tried to solve it like this,but the program will crash.
       
      How to create struct Message ,any good suggestions?  Thanks a lot.
       

      message.vi
    • By Taylorh140
      After working on the set cluster element by name xnode, it made me realize i could use the same concept to convert a variant array to a cluster. The technique is actually pretty simple, the xnode generates a case structure for each element in a cluster in cluster order, wherein a bundle by name is used to set the value and an unbundle by name is used to get the type, a variant to data is used to convert the data. This has some benefits over some methods, you are not limited to 255 elements, although that is not usually the case some of us are paranoid that clusterosaurus giganticous will be larger than expected. It also has a draw back  that is that when converting from a variant array all the elements must have unique, non-blank names, and this is usually the case. 

      I think this technique (though very brute-force) might be useful for some other things let me know what you guys think.

      VariantArrayToCluster.zip
    • By Taylorh140
      This Xnode allows setting a cluster element by label string without using references. I pulled a great deal of inspiration from Hooovahhs Variant Array to cluster xnode, which i suppose this could be used for, another benefit is its not limited to 255 elements. Its mostly experimental because I haven't used it much. 
       
      SetClusterElement.zip

      SetClusterElementLV2013.zip
    • By liskped
      Hi.
      Im working on this prosjekt where I have a TCP communication between two computers (Server & Klient). I have managed to get communication between those two. (Sending and reciving one cluster.) But I want to send and recive more than one. I looked at det Topic "Passing Cluster and Datatype Through TCP" on how to use the OpenG, but I have a problem with "the Variant to Data". 
      What am I doing wrong? Or is there another way to send more data?
       
      The Klient side:


       
       
       
      The Server side: 


       
       
×
×
  • Create New...

Important Information

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