Is there a particular format that you would like to use to write your data to file? If so, you may have to do a little bit of type casting. I believe the data type ViReal64 is a typedef of the native data type double. I think if you treat it as a double, you can write the data to file without a problem. If this doesn't work for you, can you post an example of the data you're getting? You should be able to see what the data is by setting a breakpoint in the program and then looking at the variables.
Jeremy L.
National Instruments