LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Flatten Variant to String vs. Flatten Data to String in case of variant data type

May be a dumb question, but I want just understand what is the principal difference and what are the restrictions for both methods? Also I noticed that in case of "Flatten Variant to String" it looses all its attibutes, and this is not in case of flatten generic data to sting. Where I can find a more detailed info on this?
LabView Ver. 6.0,6.1
0 Kudos
Message 1 of 3
(3,104 Views)
defuflo,

See OpenG.org >> Site Docs >> LabVIEW Data 1 of 2.

On non variant data, "Flatten to String" and "Variant to Flattened String" have the same output.

On Variant data, "Variant to Flattened String" ouputs the flattened string and type string of the sub-type held in the variant. All variant attributes are lost in the process since they belong to the variant, not to the subtype.

"Flatten to String" operates on variants like on any other types, returning the type string of a variant and all its flattened data, including any attributes.


LabVIEW, C'est LabVIEW

Message 2 of 3
(3,104 Views)
Thanks a lot!
In reality the original question appeared when I examined diagrams of the OpenG variant conversion vi libraries.
0 Kudos
Message 3 of 3
(3,104 Views)