Ignore:
Timestamp:
08/25/08 20:51:26 (5 years ago)
Author:
werner
Message:

This mainly adds the long-awaited screendump functionality. Also fixes
two serious bugs, namely an off-by-twelve error in Rigol USB TMC read
function and caching converted instead of unconverted values in
settings, which broke larger scripts.

  • lib/wave.py: added "extend" method for all waves
  • lib/scope.py: started support for piecewise wave retrieval (doesn't work yet)
  • lib/instrument.py (setting.set): store the value being set, not the one converted for the instrument
  • usbtmc.c, python.c: increased SIZE_IOBUFFER from 4kB to 1MB and BUF_SIZE from 8kB to 1MB, to accommodate Rigol screen dumps
  • usbtmc.c: added pointer to rew's Rigol driver
  • lib/scope.py: new method "screendump"
  • usbtmc.c (usbtmc_read): Rigol buffer reads were off by 12 bytes
  • lib/scope.py (rigol_channel_data, rigol_la_data): added 12 to offsets and corrected off-by-two error in analog wave offset
File:
1 edited

Legend:

Unmodified
Added
Removed
  • developers/werner/ahrt/host/tmc/usbtmc.c

    r4601 r4608  
    1515 * http://www.home.agilent.com/upload/cmc_upload/All/usbtmc.html 
    1616 * http://www.home.agilent.com/upload/cmc_upload/All/usbtmc.tar 
     17 * 
     18 * The Rigol protocol variant is based on this driver: 
     19 * http://www.circuitsonline.net/forum/view/message/652371#652371 
    1720 */ 
    1821 
     
    4346#endif 
    4447 
    45 #define SIZE_IOBUFFER 4096 
     48#define SIZE_IOBUFFER (1024*1024)       /* memory is cheap ;-) */ 
    4649 
    4750#define DEV_DEP_MSG_OUT                 1 
     
    669672                if (d->rigol && payload > 64-12) { 
    670673                        got = usb_bulk_read(d->handle, d->ep_bulk_in, 
    671                             (void *) tmp+64-12, payload-12, d->timeout); 
    672                         dump("RECV", tmp+64-12, got); 
     674                            (void *) tmp+64, payload-(64-12), d->timeout); 
     675                        dump("RECV", tmp+64, got); 
    673676                } 
    674677 
Note: See TracChangeset for help on using the changeset viewer.