LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

gpib file transfer

Solved!
Go to solution

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?

 

 

Message Edited by lmontoya on 03-24-2010 12:08 PM
Download All
0 Kudos
Message 1 of 2
(3,240 Views)
Solution
Accepted by topic author lmontoya

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...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 2
(3,221 Views)