10-23-2009 09:57 AM
I am using Flatten To XML and Unflatten From XML on a class in LV2009. This works fine until I put the class in a lvlib. Then the Unflatten From XML returns an error 1527: Attempted to read flattened data of a LabVIEW class that is not currently loaded into LabVIEW. In my test case the flatten and unflatten are in the same VI, so the class was there when it was flattened.
Any help is appreciated.
10-23-2009 02:55 PM
10-23-2009 03:13 PM
I don't know of a good workaround at this time if the class has to be inside a LabVIEW library. I tried a few things that I hoped would work that didn't:
None of those worked. The best workarounds I have for you if the class is inside a library are:
08-02-2011 11:27 AM
Hi,
I have similar problem when reading class data from a file. If I put class in a labview library, I get an error "Attempted to read flattened data of a LabVIEW class that is not currently loaded into LabVIEW", but if class is not in the labview library everything works just fine.
I have Labview 2010.
Any help would be appreciated.
Thanks,
Andrej
08-03-2011 05:33 PM - edited 08-03-2011 05:41 PM
Hi andrej,
If you post your code, I will attempt to recreate your issue and try to find a work around.
Thanks,
Matt J
08-04-2011 03:29 AM
Hi Matt-J,
I solved the problem. I created an file (data type was class) with write binary, when a class was not in a library yet. Then I was trying to read the file after I put the class into library. When I created the file with class in library the problem was gone.
Thanks anyway.
Regards,
Andrej