02-18-2006 05:43 PM
02-18-2006 08:34 PM
Connect the type of data you want to cast to (U32, I16, ect) to the center terminal on the type cast function. See the attached VI.
More commonly, I use the Unflatten From String function, it is more powerful. I rarely use typecast. You must also not the endian type, typecast assumes big-endian, Unflatten From String lets you choose.
More questions?
Chris
02-19-2006 01:24 AM
@innovator81 wrote:
I am trying to convert a binary string to a double precision floating number using typecasting function ..How do I set the type of the data required..Is this a constant,indicator or control..?
It is irrlelevant what you connect to the typecast function, it just needs to be of the desired data type: DBL in this case. The value itself is not used. Most often, I use a diagram constant, but you could also use a control if one is there anyway. (An indicator won't work, it needs to be a data source, not a data sink.)
02-19-2006 11:01 AM