[python-win32] Reading a UInt32 array from LabVIEW

Mark Hammond mhammond at skippinet.com.au
Thu Mar 23 00:07:10 CET 2006


> I've tested build 208 with success. Just one exception:
> When I try to read an array of unsigned 8bit integers I
> get the following result:
> (<read-write buffer ptr 0x00E35B30, size 3 at 0x00E35B10>)
> What is special about UInt8

An array of UInt8 is the standard way of moving "blobs" around in variants
(eg, raw buffers, etc).  Hence we return them as a string-like object (the
buffer should act like a string - slice and dice it etc)

> and what shall I do to read them
> as integers (without having to change the type of the array in the source)

If they really are small unsigned ints, you will need to use the struct
module to unpack the string.

Mark



More information about the Python-win32 mailing list