by andersg » Sun Sep 01, 2013 12:00 am
OK. Here is an update:
I was not able to duplicate with my HP3852 and having it to output hundreds of readings, so the bffering and handshaking is OK. I did however find a problem whem I tested dumping graphics from the HP 1631D that I bought last autumn.
The problem is that it fails on binary data. When dumping a text screen all is fine, but when you dump a graphics screen, the analyser will send rows of pixels, 72 bytes each. That row may contains zeroes. If you look at the code in ProcessIo.c, you see:
putsUSBUSART(gpib_buff);
This will only send data up and until the first NULL character, so rem out that line and the line before that and change:
[gpib_ptr]=0;// Not good in case buffer contains binary data!
//putsUSBUSART(gpib_buff);
mUSBUSARTTxRam(gpib_buff ,gpib_ptr); // See cdc.h
With this change it outputs graphic screen dumps just fine. See attachment
Left to fix is the abilty to SEND binary data
- Attachments
-
