I want to get the value of a cluster size, and I found the function 'Get Variant Attribute' that I think can do this,
but I can't find in the documentation http://zone.ni.com/reference/en-XX/help/371361D-01/glang/get_variant_attribute/
Could anybody provide the values that the attribute name can receive?
And this is the right function to get what I need or there is other way?
Solved! Go to Solution.
GetVariantAttribute cannot give you the size of a cluster - it will give just you the attribute(s) of a variant!
You can create attributes with any name (but not empty string)...
Why do you need the bytesize of a cluster?
Maybe you could serialize it into a string and get the string length. Or typecast to an array of U8 and get the arraysize...
I need the size in Bytes because we have a function written in C++ that needs this value!
Actually I need a bytesize os a cluster because depending on the format selected, the values inside the cluster will be different!
So the best way to do this is serialize in string and get the lenght?