LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Flexible cluster?

Unbenannt.JPG

I tried this as you can see in the picture but its not working. I get an error at Write INI cluster. Am I doing something wrong?

I also tried to convert the array of variant in to xml-string. Converting the string back to an array of variants doesnt work.  I tried it by creating a constant of this array of variants or just take an array constant an put a variant in it from the palette. Both cases gave an error for the datatype i wired to the unflatten_from_xml.

0 Kudos
Message 21 of 27
(1,550 Views)

You should wire up the clusters directly to the OpenG functions.  You will also need to use the Variant To Data to convert the output of the read to your cluster type.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 22 of 27
(1,544 Views)

VIs in the Autotestware Human Readable Data Toolkit can convert a LabVIEW data object into a concise, easily readable text string. The text string can be converted back into a LabVIEW data object WITHOUT the need for any datatype input.  It can handle complex data objects (e.g. nested variants with attributes).  Other VIs in the toolkit can transact the strings into and out of database tables.

 

HRD Simple.png

0 Kudos
Message 23 of 27
(1,512 Views)

@Oli_Wachno wrote:

Have you heard of LabVIEW Containers?


I stated my opinion (a bit harshly in retrospect) on that implementation and I find it has a bit too much overhead, and features I don't care for.  So I have an implementation I call Variant Repository.  It basically is a wrapper for the read and write variant attributes but has a few features like write once, and has save and load functions.  I put them into an XNode which is a unsupported feature of LabVIEW and then I also made a non-Xnode version which is safe for all uses in LabVIEW, feel free to checkout both versions but as I mentioned the non-Xnode version is the one I'd recommend using.

0 Kudos
Message 24 of 27
(1,494 Views)

I have a solution for saving flexible cluster data in tdms format.

Pros :

  1.It takes no time

  2.It's Super flexible

  3.It's Not Readable

earlier, I have used OpenG ini toolkit, that was working fine but It takes toooooooooooo much time to write and read. 

   Must Try This !!!!!!!

NI Tdms is too great to work !!!!

 

Give me Kudos if u want to thank me 😊

0 Kudos
Message 25 of 27
(901 Views)

@GN04 wrote:

I have a solution for saving flexible cluster data in tdms format.


That code requires VIs you didn't include which I posted here.  But a more up to date version of the code I have allows for reading and writing clusters to TDMS files, among other improvements and has been put into a package and posted here.  I also made a youtube video demonstrating some of the features here.

 

https://www.youtube.com/watch?v=4nSz8UR2XfI

Message 26 of 27
(888 Views)

Sorry I forgot to add the utilities😅, Please check this and Thanks for pointed out. The links, you have shared that was helpful 

Thanks 😊😊

0 Kudos
Message 27 of 27
(862 Views)