01-31-2006 12:43 AM
01-31-2006 01:03 AM
Hi karthik,
Put this array again into a cluster and it will work
You cannot read an array since you get this error
error 116 LabVIEW: Unflatten or byte stream read operation failed due to corrupt, unexpected, or truncated data.
read the cluster and unbundle the array out
look at modified VI's attached
Hope this helps
Regards
Dev
01-31-2006 03:07 AM
01-31-2006 04:51 AM
Hi Karthik,
As you said, I kept getting the attached error memory.cpp you described.
hope somebody can suggest better
Regards
Dev
01-31-2006 05:17 AM
Instead of putting the data structure into a cluster you could also wire a boolean TRUE to the write header (F) input of the Write File function. This tells LabVIEW to also store the dimension sizes of the outermost array to disk. Embeding it in a cluster makes the array simply not be the outermost data type so LabVIEW has to and will store the dimension sizes to disk at all times, but the write header (F) boolean is a cleaner and more proper way to do things instead of packaging the data into another structure, making the understanding of the datatype even more complicated.
@devchander wrote:Hi karthik,
Put this array again into a cluster and it will work
You cannot read an array since you get this error
error 116 LabVIEW: Unflatten or byte stream read operation failed due to corrupt, unexpected, or truncated data.
read the cluster and unbundle the array out
look at modified VI's attached
01-31-2006 11:45 PM
02-01-2006 12:53 AM
Hi Karthik,
I did a simple thing, i removed the property nodes of cluster, implemented a shift register and saved with a different name and it got saved without the memory.cpp error.
Try doing this
02-01-2006 12:55 AM
Hi Karthik,
I did a simple thing, i removed the property nodes of cluster, implemented a shift register and saved with a different name and it got saved without the memory.cpp error.
Try doing this
02-01-2006 01:55 AM
I didn't say it would fix the bad architecture and therefore the memory crash. It is just an alternative way instead of putting the array into a cluster. If you will look at the data file you will see that the Boolean True solution will create axactly the same file as the one with the cluster.
@kkronline wrote:
hi Rolf
I tried this also "boolean TRUE to the write header (F) input of the Write File function". But it leads LabVIEW Crash and giving the same memory.cpp error (refer attachemnt by Dev). This also fails.
I need to solve this issue in 7.1.
02-01-2006 02:18 AM
Hey Rolf,
I must say, your description of the cause for the crash is "Horribly Good" ![]()
Karthik, as Rolf says, do try and simplify the involved data structures
Regards
Dev