05-02-2016 06:06 AM
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.
05-02-2016 06:15 AM - edited 05-02-2016 06:16 AM
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.
05-03-2016 01:28 AM - edited 05-03-2016 01:41 AM
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.
05-03-2016 12:26 PM
@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.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
04-05-2023 07:38 AM - edited 04-05-2023 07:42 AM
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 😊
04-05-2023 08:08 AM
@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
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
04-10-2023 06:03 AM - edited 04-10-2023 06:11 AM
Sorry I forgot to add the utilities😅, Please check this and Thanks for pointed out. The links, you have shared that was helpful
Thanks 😊😊