03-24-2010 12:07 PM - edited 03-24-2010 12:08 PM
I have an Agilent E5052A that use Win2000, and I'm saving the screen capture into local c: drive of Scope. when I try to copy that picture into my PC (using GPIB) the file pass thru without problems but I can't to open the file, please see Original.png and Test.png files attached.
I'm using Visa ReadToFile.vi to transfer file. I already tryed with Direct "Visa read" and "GPIB read" vi's and get same results.
I compared the two files using a file comparison program, in text mode looks similar or equal (exept for the begining and end), but if compare the two files in binary Files, i'm gatting to many differences.
any body has an idea?
Solved! Go to Solution.
03-24-2010 01:36 PM
Hi lmontoya,
there are two problems:
- first you have 8 additional bytes at the start, some counter or length of file or similar...
- then (nearly) all EOL chars are replaced by 0x0D0A, which happens when not setting a correct transmission or file saving mode. It has to be some "binary" transmission instead of text transmission (with inherent EOL conversion). Probably you used "Save Text to file" with EOL conversion enabled... Please attach your VI for spotting the problematic section of your code...