01-19-2008 08:42 AM
01-19-2008 08:45 AM
01-19-2008 09:47 AM
01-19-2008 07:21 PM - edited 01-19-2008 07:24 PM
The problem is in the endianism.
Example 1. Write to binary file is set to Little endian on the write binary file Function.
Example 2. Cont Acq & graph voltage to file(binary) does not have any value written to the endian input of the write to binary file function. The default is Big endian.
So to read the files from example 2, change the little endian constant to big endian in your VI.
If you look at the block diagram of each of those example programs, I think you'll see what I mean. It was probably not a good idea for NI to create examples that are different from each other on that point. It would have been better to stick with one (I'd say big endian because that is the default of the write binary file VI).
You'd either have to find a way to distinquish between the files and use a case selector to put in the proper enum constant in your reader program. Or rewrite on VI or the other and set the endianism one way or the other to make both of the writing VI's consistent with your reading VI.
01-21-2008 06:14 AM