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.
09-16-2016 02:42 AM
Hello everyone,
What am i trying to do: i have a Test.lvclass representing the state of my test and im saving the print of the class object to file during the test execution. I use Flatten to XML and Write to XML (string) functions. For loading i have Unflatten from XML and Read from XML (string).
Everything works fine, but sometimes (very irregularly!) when the test object should be restored from the file, the file appears empty and loading from it generates an error of course.
My guess is there must be an error accessing the file during the Write or Read functions
So my question is how to efficiently check the correctness of these functions? Do the Write to/Read from XML functions ckeck that? Can I rely on their standard error output or do i have to do something like Write - Read - check if contains supposed data?
Another guess would be something related to the file not being closed properly after write/read.. ?
I would appretiate any ideas and tips on that..
Thank you!
09-16-2016 03:17 AM
09-16-2016 05:56 AM