00001 # streamDevice protocol file for Agilent Model 33210A Arbitrary Waveform Generator 00002 # Based on ag33210a from triumf 00003 00004 InTerminator = '\n'; 00005 OutTerminator = '\n'; 00006 # MaxInput = 0; 00007 # LockTimeout should be GT ReplyTimeout 00008 LockTimeout = 5000; 00009 ReplyTimeout = 200; 00010 ReadTimeout = 100; 00011 00012 read_float { 00013 out "\$1?"; in "%f"; 00014 } 00015 00016 write_float { 00017 out "\$1 %e"; 00018 # @init{ read_float; } 00019 } 00020 00021 read_int { 00022 out "\$1?"; in "%d"; 00023 } 00024 00025 write_int { 00026 out "\$1 %d"; 00027 # @init{ read_int;} 00028 } 00029 00030 read_string { 00031 out "\$1?"; in "%s"; 00032 } 00033 00034 write_string { 00035 out "\$1 %s"; 00036 # @init{ read_string;} 00037 } 00038