LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I get an error code 1 from Unflatten From XML

I'm not quite sure why I'm getting this error code. The code looks fine to me. I hope I'm not missing something obvious. I imagine maybe it's one of the datatypes but I'm not sure. See attached VI (8.6)

CLED (2016)
0 Kudos
Message 1 of 6
(3,003 Views)
It looks like it is related to the arrays.  Take out the 2 arrays and it runs fine.  Why that is?  I don't know.
0 Kudos
Message 2 of 6
(2,999 Views)

But I like the arrays Smiley Sad Smiley Wink

CLED (2016)
0 Kudos
Message 3 of 6
(2,995 Views)
It appears that the problem is due to the fact that the arrays are of datatype "fixed-size". How did you create those arrays?
0 Kudos
Message 4 of 6
(2,974 Views)

How observant of you. I was just going to post the same conclusion. The data type that came off an FPGA "read /write control" node. 

Neat! Now we have fixed sized arrays in LV! 

The attached shows it failing a "flattened string to variant" and the different type strings the two have.

Message Edited by InfiniteNothing on 11-07-2008 02:35 PM
CLED (2016)
0 Kudos
Message 5 of 6
(2,970 Views)
One more quick update. As a workaround, for anyone who comes across this thread, the XML unflatten works just fine if you set the type input to only contain variable dimension arrays. The ouput of the unflatten will get cooerced to the correct indicator cluster type
Message Edited by InfiniteNothing on 11-07-2008 02:58 PM
CLED (2016)
0 Kudos
Message 6 of 6
(2,961 Views)