You may be doing everything correctly. We've documented a bug that matches the description of your problem. What version of LabVIEW are you using?
The work around for this issue is to use the low level VIs for both writing and reading. If you are still having problems after doing this, please attach the code and I'll take a look at it.
Trey B
Applications Engineering
National Instruments