http://forums.ni.com/ni/board/message?board.id=232&message.id=7172&requireLogin=False
I think this person wanted to do the same thing. The raw codes should be unsigned 32, I believe. It's pretty much the same thing as LabVIEW, just using a different version of the read command.
-gaving