Adrian Gibbons wrote:
> Hi,
>
> I'm using a DLL with LabVIEW at the moment and one of its properties
> is to return the version of the DLL as a long integer. The bitfields
> are as follows:
>
> [31-24] Major version.
> [23-16] Minor version.
> [15-00] Build number.
>
> How can I split the long up into the relevant bits so that I can
> display the version number correctly?
>
Your bitfields make things easy by being aligned on byte boundaries.
Have a look on the Advanced palette under data Manipulation, you
should find a 'split Number' vi, which will split a 32 bit number
into 2 16-bit numbers and can then be used to split one of these
further into 2 8-bit numbers.
That should do it.
If you want to split arbitray bits out of a number, have a look at
the 'Num
ber to Boolean Array' Vi on the boolean palette.
--
Remove "spamkill." when replying to this message