LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Difference between "cast" and "unflatten from string" functions

Hello,

I don't see the advantages to use one function or the other, they do the same no?

Maybe I'm tired...

Thanks.
--
Vivien
0 Kudos
Message 1 of 4
(2,858 Views)
Hi Vivien,

well, 'type cast' takes any input datatype while 'unflatten from string' requires a string input Smiley Wink

With 'type cast' you can transform one datatype to a completely different (by using a new interpretation of the bit- or bytestream).
'Unflatten' tries to recognize LabView datatypes...

Message Edited by GerdW on 05-03-2007 04:54 PM

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 4
(2,857 Views)
Ok, thanks a lot, I was only puting a string in input so I haven't noticed it...

Another question, both functions have the same speed?
0 Kudos
Message 3 of 4
(2,847 Views)


@ENSTB_Vivien wrote:
Another question, both functions have the same speed?

You should benchmark it yourself to be sure. Both are very fast and so speed is not much of an issue anyway. 😉

Unflatten from string has received quite a few modifications in newer labview versions, for example it can now deal with byte order (little/big-endian) and with datatypes that include size information. It is much more flexible IF you need all that. 🙂

0 Kudos
Message 4 of 4
(2,831 Views)