Holger Hofmann wrote:
> can anybody give me a short hint where I
> can learn more about type casting in
> LabView 5.1. Ecspecially what converting
> 4.x data means and where to find this in
> the online reference ...
>
> Thanks for your support,
>
> Holger Hofmann
Holger,
Typecasting and 4.x conversion are 2 different things (well sorta)
The way that LabVIEW stored booleans (in memory etc) was changed after
version 4.x
In ver4.x a bool was 16-bits Bit 15 low = FALSE, bit 15 high = TRUE
Since ver5.0 bool is 8 bits, all 0's = FALSE, non-zero = TRUE.
Typecasting is a more general concept, in that it converts from one data
type
to another. For example I can type cast a Boolean to a U8 (which is what the
convert 4.x does). I wire a bool to the typecast, a constant to
the "type"
and a U8 indocator to the output. On my machine I get 0=FALSE and 256 =
TRUE.
you can use this for any datatypes that you wish.
Check the knowlwdgebase on NIs site (search for 4.x data)
Kevin Kent