From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
06-08-2016 07:47 AM
Solved! Go to Solution.
06-08-2016 08:41 AM
LV classes are compatible with the Flatten to XML and Unflatten From XML functions. Have you already tried that approach?
Norbert
06-08-2016 08:45 AM - edited 06-08-2016 08:48 AM
I have not. I spent an hour or two implementing the config file approach, so I wanted to be sure I wasn't wasting any more time on an approach that wouldn't work. Would it be a bad idea to simply store the XML string in a key of a regular ini file for later consumption? Speaking mainly from a viewpoint of avoiding lots of clutter in my data directory.
06-08-2016 08:57 AM
I don't know about potential performance impacts such approach would result in. That being said, i would always try to keep ini-files as small as possible.
Technically, it should work, but requires quite some mixture between ini-file functions, XML functions and of course the class itself.
Norbert
06-08-2016 09:00 AM
Good point. I'll probably use separate XML files for each then. I'm going to try this out later today and report back if it works. Thanks!
06-08-2016 09:22 AM
I think Write to binary file will work. Please check the attached image. This may solve the problem. But for using unbundle or bundle the class object, that VI should be the part the class.
06-08-2016 10:35 AM
Impressive first post, Nantha 🙂 To keep the application robust, I think I'd try TDMS (which stores in binary with additional info to make recovery more reliable) before binary, as binary files are prone to bitrot, can't be recovered, and aren't always cross platform.