import struct def double2wordarray(data): """ double -> 16bit * 4 little-end """ return struct.unpack('