Hello trillianguy,
The first thing I would like to address is the use of the fopen
function. When you are using the fopen, what is the option you
are using to open the file. I believe that the same file cannot
be opened in write mode by two programs, I would recomend in CVI using
fopen with an option to open the file in read mode only. Also,
make sure that you open it for binary data -- the data stored in the
WMV file is propritary to Windows and cannot be interpreted by CVI
other than by its raw data. This somewhat leads us to our next
topic which is about the use of the CVI ReadFile function. How
are you checking the data in the ReadFile is incorrect? You
mention packets -- is the data from the ReadFile being sent to the
remote device and opened with a WMV video player on the remote
device? I noticed something interesting in the documentation for
the ReadFile function
"If you open the file in ASCII mode,
ReadFile counts
each carriage return/linefeed (CR/LF) combination read as one character because
the pair is translated into an LF when
ReadFile stores
it in the buffer."
This leads me to belive that if opened in ASCII mode, this function
will actually modify the data coming into the buffer when it encounters
a special character.
Thanks for posting, and please let me know if you have any other questions.
Travis M
Applications Engineer
National Instruments
Travis M
LabVIEW R&D
National Instruments