GA9msWF8 C J B P$,18BL Zghp{RIntf_hdlInst_hdlLoopsIT0 SendReceiveSentAnswer Response$ Filename$ Intf_symname$ Inst_symname$Comand$ Error_trapIopenEop3Eop2 Socket_send Socket_rcvEop1IcloseV=  2 DirectSiclSocket for Agilent 16700 Logic Analyzer = O  D BOURBAKY Dll ToolKit Example for Real Instrument Remote ProgrammingOO( D -------------------------------------------------------------------3O2 ( How easily work with 16700 from HTBasic.3< # Only using existing SICL functions .F = P 2 Edited and enhanced by Tech Soft GmbH, Sven Henze =Z  d Loading DLLn^SICL32 x Function Declaration) >SHORT Sicl32:iopendIopen+)>SHORT Sicl32:iwritedIwrite++>SHORT Sicl32:iclosedIclose/+>SHORT Sicl32:itimeoutdItimeout)/>SHORT Sicl32:ireaddIread ) (  interface session handler)( instrument session handler ) P     P  ") ,) 2Y6V /hplogic/bky/myconf.___30 <= User must store the wanted conf in this file%Y@.3 using 16700 frontpanel %J  T) ^V lan h  r) Pd|V lan,6500[192.168.1.120]7; <= 16700 IP Address (User must check and change if needed)(d27 6500 is the socket number (  )PV   k5V 1 $Trying to open Interface session... /1V . Open interface session/J( CAN'T OPEN INTERFACE SESSION ( B 073 #INTERFACE SESSION OPENed, Intf_hdl= 33I & 2 0%Trying to open Instrument session... 02:V . Open instrument session0DJ)N CAN'T OPEN INSTRUMENT SESSION )X B b04l $INSTRUMENT SESSION OPENed, Inst_hdl= 4v3I  [  P Program will LOOP to check the ability to stay synchronous with 16700 execution[[ P-------------------------------------------------------------------------------- [ a  V&  ===== Loop # ===== & 6  +=== clear instrument ======================6 clear V clear7IУ  V  7I   /  $=== LOCK User interface ============/  lock* V lock47IM > V  H7I R 6 \ +=== Ask for #version ======================6f  version : p V version z7I  V  7I    6  +=== Plugged Modules ? =====================6  Modules List :  0V modules -slot @0V  $I8 No module $ iМ 7I  F  ;=== Loadind analyzer configuration ========================(F loading configuration : &( V  config -l &$7I . V  87IЊ B , L !=== RUN analyzer ================ ,V starting acquisition ` V startj7I( t . ~ #=== WAIT finished =================). wait for measurement complete') V wait -complete'7IV  V  7I\  2  '=== Check Status ======================2  status :  a V status 7I V   7I) $  7IM8Q STOPPED$ 3a7I (  2 1 < &=== UNLOCK User interface ============1F unlockP V unlockZ7I d V  n7IС x i  , Started :  O /  Loops /  Commands /  Responsesi3a    $CLOSE INSTRUMENT SESSION$ #CLOSE INTERFACE SESSION#  e     " ,B 63 @ 2PPg~X(cxwC F@&-7?ILZhhq Enter_socketHdl Enter_str$ S_timeoutAnswer First_carBufsize ActualcntC$ Inst_timeout1 Inst_timeout2ItimeoutIreadJ$ T : ^ / Enter string from socket, getting char by char :h  r P | P     )  2 IV    V  a% V % 7I 7I4VJ4V  &3I 0 3aА :  D9 N `ZMC F B P%-5:AF Socket_sendInst_hdlComand_$ SendReceiveComand$SentAnswerEndiIwriteX$ b # l  Send commands to socket #v     V  P  V  V) V  ) V JCode Answer : 'ERROR WHILE SENDING COMMAND '  0    3I 9 *  ZAC F% B' P,4 Socket_rcvInst_hdl Response$Answer SendReceive Enter_socket4$ > ( H  Receive commands from socket (R  \  f p Vz V; 0 Remove unwanted prompt and termination (if any)0; I8->V8->:0 I8 V: JCode Answer :  ERROR GETTING ANSWER   0   3I 9