Home

User Manual - GPIB to Digital

image

Contents

1. Page 57 added with the data obtained from item 5 7 The data left from item 6 will be added with Od 0a at the rear and then transmitted back to PC by GPIB CONTROLLER Exam SEND 18 sens freq cent CALC MARK1 X CALCI MARK1 Y Rp 5 00000000E 007 5 00000000000E 006 0 00000E 00 Exam SEND 18 STAT QUES CAL COND SYST COMM GPIB SELF ADDR SENS SWE POIN Rp 0 18 40 Exam Send 18 TRAC DATA TRACEL Rp 6 09970E 01 6 09970E 01 6 09970E 01 6 09970E 01 6 09970E 01 Send 18 TRAC DATA TRACE1 and Od and 0a TRAC DATA TRACE1 will be transmitted read the data in the output buffer f instrument Al8 and stop reading until EOI signal is ata obtained from item 3 will be transmitted back to PC by Description 1 PC give the command to GPIB CONTROLLER 2 The instruction of to A18 by GPIB CONTROLLER 3 GPIB CONTROLLER will o received 4 D GPIB CONTROLLER Examples of Model HP8591EM Exam Send 18 ID SER Rp HP8591EM 976 960709 120621 140932 Exam Send 22 TDF M TRA REV SETDATE SETTIME at gt Rp 5625 6636 6161 3446 1226 1264 1136 1294 1134 1087 1309 1239 Description 1 PC give the command to GPIB CONTROLLER 2 The instruction of GPIB CONTROLLER 3 The instruction of GPIB CONTROLLER 4 GPIB CONTROLLER will output buffer of
2. r of s wi data are not limit h the signal of EO through Rs232 Port DI 230 id ion D 230 n E03 835328 ion with the signal of EOI ata Flow Type and IO Buffer Status rument to GPIB CONTROLLER a must be with Oa and CONTROLLER is Ready and Lock State p the data input from the Rs232 Port of the GPIP CONTROLLER is Free State he data in IO Buffer until the input r Status will be set as the state of of GPIP CONTROLLER eady and Lock State nsmite data to PC and Lock State GPIP CONTROLLER in IO Buffer and Od and 0a to fer are already read by PC the will be set ed from GPIB CONTROLLER to the instrument f EOI e the data to instrument through ted k e the data Od and 0a to not with the signal of EOL 017 4 11 Page 75 The data transmitted from Barcode Reader to GPIB CONTROLLER through Rs232 Port a Block Data The end of Block Data must be with Oa and number of data must not exceed 748 bytes b If IO Buffer Status of the GPIP CONTROLLER is Ready and Lock State the GPIP CONTROLLER will give up the data input from the Rs232 Port However if the IO Buffer Status of the GPIP CONTROLLER is Free State the GPIP CONTROLLER will save the data in IO Buffer until the input data is Oa Then the IO Buffer Status will be set as the state of Ready and Lock State c PC read data form the IO Buffer of GPIP CONTROLLER 1 If IO Buffe
3. return NULL case WM_COMMAND if wParam gt IDM COMPORTI amp amp wParam lt IDM COMPORT256 GetMenuSt ring menupor t wParam buf 60 MF_BYCOMMAND Ji wsprint f buf strlen buf 128000 n 8 1 SetProReg irtool COMM buf InitCommPort hWnd buf return TRUE else if wParam gt IDM_BAUD2400 amp amp wParam lt IDM_BAUD256000 Ge tMenuSt ring menuport baud wParam buf 60 MF_BYCOMMAND GetProReg irtool COMM text COM3 128000 N 8 1 sptr strstr text ptr strstr text wsprintf CurDirl s ptr sptr 0 wsprintf textbuf s s s text buf CurDirl SetProReg irtool COMM textbuf InitCommPort hWnd textbuf return FALSE premie subprogram for entry point of main window kok ok ok ok ok ak ok oe oe oe o ol kkk ak ok ak ak ak oe oe oe oe oe oe oe akk kkk ok ak ak ak oe a oe oe oe oe oe al lekke kalk ak ak ak akk int APIENTRY WinMain HINSTANCE hInstance HINSTANCE hPrevlnstance LPSTR lpCmdLine int nCmdShow Page 137 hInst hInstance to create main window and initialie the main windows procedure by calling subprogram DialogBox return DialogBox hInst LPCTSTR IDD HP662XACAL NULL DLGPROC WindowsProc Page 138
4. GetDlgItem hWnd ID_EDITBOX EM_REPLACESEL 0 LPARAM inbuf WriteFile hComm inbuf strlen inbuf amp nBytesWrite NULL Page 108 sprintf inbuf SEND d OVCAL r n ADDRESS662XA nlen SendMessage nde mette Ni essage EEE E a Gee sa essage GetDlgItem hWnd ID EDITBOX EM REPLACESEL 0 LPARAM inbuf WriteFile hComm inbuf strlen inbuf amp nBytesWrite NULL dwTime GetTi ckCount 411000 while 1 if GetTickCount gt dwTime break sprintf inbuf SEND d CMOD OM Urin ADDRESS662XA nlen SendMessage GetD1 gI t em hWnd ID EDITBOX WM_GETTEXTLENGTH 0 0 Js SendMessage GetDlgItem hWnd ID EDITBOX EM SETSEL nlen nlen SendMessage GetDlgItem hWnd ID EDITBOX EM REPLACESEL 0 LPARAM inbuf WriteFile hComm inbuf strlen inbuf amp nBytesWrite NULL ZRA cae nele enten en sis teu O EM es Page 109 GetDlgI tem hWnd ID EDITBOX EM REPLACESEL 0 LPARAM VCal ok return OL eene sub program is called by windows proc will be utilized to calibrate Hp662xa current accuracy and also take responsible for pc communication device which make communication and cooperate actions between 34410a and Hp662xa through lt b gt ki usb gpib controller lt b gt hWnd handle of main window hComm handle to communications device ID EDITBOX identifier of editbox control bki LRESULT CALLBACK ICal HWND hWnd
5. If the rs232 port of barcode scanner is DTE Cross Link Adaptor as below will be needed by the linking of the Barcode Scanner tg 6 Watch Dog Controller Watch Dog Controller will be continuously monitoring the working of the CPU SM59264 and CP2102 if those CPU are interfered by the Electro Magnetic and crashed and that crash is detected by the Watch Dog Controller The Watch Dog Controller will be re initial the CPU SM59264 and CP2102 Page 7 7 High performance and quality parts are used a The products of Lattice Semiconductor Corporation LC 4128V 75T128C or b The products of Silicon Labs CP2102 USB to UART Converter c The products of SyncMOS Technologies Inc SM59264 MPU 8051 8 Both designing and testing are standardized a The firmware of main parts for GPIB CONTROLLER are syn tool of VHDL and C Even if main parts are replaced wi of parts in future firmware for the new type of parts Firmware of CPLD is synthesized by tool of ABEL or VHDL LCMX0256 Firmware of FPGA is synthesized by tool of VHDL hesized by h new type can be easy obtained from re synthesizing the VHDL and C source code of the firmware and then the function and performance of GPIB CONTROLLER would be guarantied not to be changed b The full automatic testing program KiGirax exe is used to test GPIB CONTROLLER and guarantee the quality of GPIB CONTROLLER The main functions for the KiGirax exe 1 To transmite i
6. ROS ma Signal of IEEE488 1 Reguest service EOI iz Signal of IEEE488 1 End of identity EOS Oa Combination of ascii without excess of two piece Od 0a Lamda Description EOS End of String is one of IEEE488 Data which is part of RDT and instruction EOSO RdEOS SetRDT is able to make EOS change DABE EOI RDT EOS EOI DABE Description RDT Response Data Terminator is a kind of IEEE488 Data which is placed at the end of the Block Data transmitted to GPIB CONTROLLER from the output buffer of instrument PEOS 0a Od 0a EOI Combination without excess of eleven pieces of ASCII Lamda PMT PEOS EOI DABE Block Data Stand for the combination with one or more ASCII Escaped sequence rule for the input of GPIB CONTROLLER Block Data Supported by Version 2 1 and further only Data Data represented in Block Data nnn ascii value nnn nnn is decimal and lt 255 a v 0d hex r 0a hex n 09 hex t 07 hex a 08 hex b 0c hex f 0b hex v 06 Chex k 15 hex u 03 hex c 04 hex d 05 hex e 0e hex No Of hex Ni 16 hex y la hex z 18 hex x 17 hex w 01 hex h lb hex s 10 hex p 11 hex Na 12 hex Nj 13 hex NI 19 hex m ld hex g Block Message Block Data PMT Description Page 23 GPIB CONTROLLER received the Command from PC and pick Block Data out from Command the Block Data added with PMI become Block Message whic
7. SYST WARN STR SYST WARN BUFF SOUR FREQ Rp 1992 0 0 3456 1 0000E 06 Exam SEND 10 STAT PRES SYST E Ros 464888 1 10 1A sn naa sanne Zee a nt NEE Description 1 PC give the command SEND 10 STAT PRES SYST SET and Od and Oa to GPIB CONTROLLER 2 The instruction of STAT PRES will be transmitted to A10 by GPIB CONTROLLER 3 The instruction of SYST SET will be transmitted to A10 Page 66 by GPIB CONTROLLER GPIB CONTROLLER will read the data in output buffer of instrument AlO and stop reading until EOI signal is re GP o 4 ceived B CONTROLLER will transmite the 6493 bytes of data ER btained from item 4 back to PC Exam SEND 10 ARM LEV ARM SEO FREO ARM SEQ SENS ARM SEO SLOP ARM SEQ SOUR OUTP NORM STAT Rp 1 0000E 00 1 0000E 05 EDGE POS IMM 0 Description 1 PC give the command SEND 10 ARM LEV OUTP NORM STAT and Od and 0a o GPIB CONTROLLER he instruction of ARM LEV will be transmitted to A10 by PIB CONTROLLER PIB CONTROLLER will read the data in the output buffer f instrument AlO and stop reading until EOI signal is eceived PIB CONTROLLER will delete the EOS End of String dded with the data obtained from item 3 he data left from item 4 will be added with at the rear nd then transmitted bac
8. 0 else sptr2 0 strepy path irpath strcat path strepy irtool fname sptr2zstrstr irtool if sptr2 sptr2 0 GetProReg irtool COMM ifname Hp662xaCal strepy title irfname strepy path inipath Page 125 ptr amp path strlen path while 1l if ptr I1 ptr break else ptr if ptr ptr 0 else ptr l 0 SendMessage hWnd WM_SETTEXT 0 LPARAM Hp662xaCal IE JRR RR AR AR HEHE HR A RR RR ak ak oe oe oe oe oe oe Jo Jo SE HR ak ak ak oe oe oe kk 2 3K 9K 2K OK ok to move the main window to center of desktop BER RR oe oe oe IE JE ale 2 2 oe oe oe JE JE oe oe oe oe se se SEJ de oe oe oe oe se oe ee de oe oe oe ie fee oe oe oe oe CCA ske nCX lt Ge t Sys temMet rics SM CXSCREEN 2 nCYzGe t Sys temMet rics SM CYSCREEN 2 GetWindowRect hWnd amp rect newrect top nCY rect bottom rect top 2 20 newrect left nCX rect right rect left 2 newrect bottom rect bottom rect top newrect rightz rect right rect left MoveWindow hWnd newrect left newrect top newrect right newrect bot tom TRUE centering main window to complete FERREE oe oe SEJE 2 oe oe aaa ee SEJ de oe oe oe oe se see Joe oe oe oe se SE EEE 2 2 2 EE kkkt ASK ShowWi ndow hWnd SW SHOW menuport CreatePopupMenu for i 0 1 lt 256 i wsprintf buf COM4d 141 if i amp amp 1 29 0 AppendMenu menuport MF STRINGIME MENUBREAK IDM_COMPORT1 1
9. 00 025 gt PP 28 CLS ESE 1 PRE 32 01 lt 01 026 gt SEND 28 SOUR POW LEV 10 SOUR POW LEV 1 lt 10 00 027 gt SEND 28 SOUR FREQ 10E6 SOUR FREQ 1 lt 10000000 0 028 gt PP 28 CLS ESE 1 PRE 32 OPC 12 lt 02 029 gt PP 28 CLS ESE 1 PRE 32 12 lt 00 030 gt PP 28 CLS ESE 1 PRE 32 OPC 02 lt 00 031 gt PP 28 CLS ESE 1 PRE 32 02 lt 02 032 gt SEND 28 SOUR POW LEV 13 SOUR POW LEV lt 13 00 033 gt SEND 28 SOUR FREQ 13E6 SOUR FREO 1 lt 13000000 0 034 gt PP 28 CLS ESE 1 PRE 32 OPC 13 lt 04 035 gt PP 28 CLS ESE 1 PRE 32 13 lt 00 036 gt PP 28 CLS ESE 1 PRE 32 OPC 03 lt 00 037 gt PP 28 CLS ESE 1 PRE 32 03 lt 04 038 gt SEND 28 SOUR POW LEV 16 SOUR POW LEV 1 lt 16 00 039 gt SEND 28 SOUR FREQ 16E6 SOUR FREQ 1 lt 16000000 0 040 gt PP 28 CLS ESE 1 PRE 32 OPC 14 lt 08 Page 85 041 gt PP 28 CLS ESE 1 PRE 32 14 lt 00 042 gt PP 28 CLS ESE 1 PRE 32 OPC 04 lt 00 043 gt PP 28 CLS ESE 1 PRE 32 04 lt 08 044 gt SEND 28 SOUR POW LEV 19 SOUR POW LEV 1 lt 19 00 045 gt SEND 28 SOUR FREQ 19E6 SOUR FREO 1 lt 19000000 0 046 gt PP 28 CLS ESE 1 PRE 32 OPC 15 lt 10 047 gt PP 28 CLS ESE 1 PRE 32 15 lt 00
10. 1 PC give the command PIO 130 and Od and Oa to GPIB CONTROLLER Page 77 2 GPIB CONTROLLER will read the output value of the port with address Primary 30 and Secondary l 3 GPIB CONTROLLER transform the value obtained from Item2 as the HEX format 3A and transmite it back to PC 6 5 To control the digital input RI and DSR and output RTS and DTR Exam EscapeCommFunct ion hComm SETRTS EscapeCommFunct ion hComm CLRRTS Value buffer lt GetCommModemStatus hComm MS RING ON Value buffer lt GetCommModemStatus hComm MS DSR ON 6 6 Digital I O port address Primary 30 Secondary 5 Exam PIO 530 3A Description 1 PC give the command PIO 530 3A and Od and 0a GPIB CONTROLLER B CONTROLLER will configure the output value of the O port with address Primary 30 and Secondary 5 as 3A HEX Exam PIO 530 Rp 37 Description 1 PC give the command PIO 530 and 0d and 0a o GPIB CONTROLLER 2 GPIB CONTROLLER will read the I O port output value 37 for the address of Primary 30 and Secondary 5 and transmite it back to PC o 2 0 FU Page 78 GPIB UTILITY of GPIB CONTROLLER with HP 6623A 001 gt findlisten 5 lt 05 002 gt PP 5 lt 01 003 gt PP 5 lt 02 004 gt PP 5 lt 04 005 gt PP 5 lt 08 006 gt PP 5 lt 10 007 gt PP 5 lt 20 008 gt PP 5 lt 40 009 gt PP 5 lt 80 SRO 2 11 50 SRO 2 12 50 SRO 2
11. Param Param Param Param Param SEND NARREN NN KAD AAn dSo dSnl DIyR DlyW DIyB SEND 4 z 1 1 1 4 gt AAn DIyR DIyW DlyB EOSO k z LA 4 1 4 2 4 gt EOS AAn dSo dSn DIyR DlyW DIyB EOSO K z 1 1 4 2 4 gt EOS AAn DIyR DIyW DlyB ARBITRARY 1 gt 1 1 27 BLEN An dS0 dSn DIyR DlyW DlyB AgiETB lt gt 1 4 An dso dSn DIyR DIyW DlyB IEEE lt gt 1 4 2 4 An dSo dSn DIyR DlyW DlyB IEEEidn gt 2 4 AAn DlyR DlyW DlyB Test Sys gt 2 4 AAn DlyR DlyW DlyB TRANSCEIV VA 4 7 HED AAn dSo dSn DlyR DlyW DlyB Command arbitrary Key Symbol arbitrary BLEN An DSOToDSn Description BLEN is the number of bytes to be transmitted from instrument to PC Key Symbol arbitrary gt Lamda Command AgiETB Key Symbol AgiETB An DSOToDSn Key Symbol AgiETB ser a NA EEE Re 7 Lamda Command IEEEB Key Symbol TEEEB An DSOToDSn Key Symbol IEEEB sre er ave Lamda Page 45 Command IEEEidn Key Symbol IEEEidn AAn Key Symbol IEEEidn PO OS Le Lamda Command TestSys Key Symbol TestSys AAn Key Symbol TestSys P Lamda Command TransCeiv Key Symbol TestSys AAn DSOToDSn AAn An AAn Lamda DSOToDSn DSOToDSn_R DlyRWB DlyRWB Lamda DSOToDSn_R DStr DSOTODSn R Lamda DlyRWB DIyR DlyR_R DlyR_R
12. RdAgiETB An dSO dSn RdAgiETB An RdAgiETB An RdAgiETB An dSO dSn RdAgiETB An RdAgiETB An RdAgiETB An dSO dSn RdAgiETB An RdAgiETB An RdAgiETB An dSO dSn RdAgiETB An RdAgiETB_ An RdAgiETB _ An dSO dSn RdAgiETB _ An RdIEEEB An RdIEEEB An dSO dSn RdIEEEB 4 An RAIEEEB An RAIEEEB An dSO dSn RdIEEEB An RdIEEEB An RdIEEEB An dSO dSn RdIEEEB An RdIEEEB An RAIEEEB An dSO dSn I RdIEEEB An RdIEEEB An RdIEEEB An dSO dSn RdIEEEB An RdIEEEB _ An RdIEEEB _ An dSO dSn RdIEEEB _ An dSn RdARBITRARY BLEN An dSn RdARBITRARY BLEN An dSO dSn RdARBITRARY BLEN An dSO dSn dSn RdARBITRARY 4 BLEN An dSn RdARBITRARY BLEN An RdARBITRARY BLEN An dSO dSn l RdARBITRARY BLEN An dSO dSn RdARBITRARY BLEN An l RdARBITRARY BLEN An l RdARBITRARY BLEN An dS0 dSn ARBITRARYW gt AAn dSO dSn ARBITRARYW dSO dSn ARBITRARYW AAn dSO dSn ARBITRARYW AAn dSO dSn ARBITRARYW gt dSO dSn Page 27 ARBITRARYW AAn dSO dSn ARBITRARYW gt AAn dSO dSn ARBITRARYW AAn dSO dSn ARBITRARYW AAn dSO dSn ARBITRARYW gt 1 dSO dSn ARBITRARYWI dSO dSn ARBITRARYWI dSO dSn ARBITRARYWI dSO dSn Instruction z AgiETBW AAn dSO dSn AgiETBW AAn dSO dSn I AgiETBW AAn dSO dSn AgiETBWI AAn dSO dSn AgiETBW dSO dSn AgiETBW gt AAn dSO dSn AgiETBW AAn dSO dSn AgiE
13. 200 memcpy codebuf nBytesWrite r n 3 nBytesWrite 3 WriteFile hComm codebuf nBytesWrite amp nBytesWrite NULL if glen i lt 200 break dwTime GetTickCount Wait_TicketTime while 1 if GetTickCount gt zdwTime break GlobalUnlock hglobal GlobalFree hglobal Page 101 description it utilize meter 34410a of Agilent Technologies to calibrate and test power supplier Hp662xa Hp6621 a Hp6622a Hp6623a Hp6624a Hp6627a of Agilent Technologies Application program designed for lt b gt GPIB GONTROLLER lt b gt windows is same as application program designed for rs232 windows some of necessary sub programs are almost same stated as below instructions given are also in the same ways but these programs can control multi instruments in the same time synchronously and make the data send back from instrument through lt b gt GPIB GONTROLLER lt b gt to pc quickly and stably which are better than rs232 interface to control only the program run a testing course 30 testing points it take about 16 seconds a testing point take less than a second test report can be completed automatically once test finished it will save a lot of testing cost define ADDRESS34410A 7 define ADDRESS662XA 5 HACCEL haccel char File Place Csn 256 irtool 256 modelno 256 channelno 256 int model channel HBRUSH hbr hbrush hbrushbtn hbrushedi t hbrushstatic DWORD COMMAND EDIT define CmdBufSize 1
14. 8577 8819 9039 9238 9415 9569 9700 9807 9891 9951 9987 9999 0987 9951 9891 9807 9700 9569 9415 9238 9039 8819 8577 8314 8032 7730 7409 7071 6715 6343 5956 5555 514l 4713 4275 3826 3368 2902 2429 1950 1467 980 490 Code represented with format of Visual CH as below hComm is handle to the communication port WriteFile hComm SENDI 4 DATA DAC VOLATILE 3256 SENDI 4 000001ea03d405bb079e097d0b56 0d280e f210b31269141515b3174418c71a3b1b9f1cflle321f60207a21812273234f24162 4c7256125e4264f26a3264 2703270 2703264 f26a3264 f25e4256124c72416234f22 r n 217 amp nByteWrite NULL WriteFile hComm SENDI 441 732181207a1 f601e321cf11b9fla3b18c7174415b31415126910b30ef20d280b 56097d079e05bb03d401ea0000fe16fc2cfa45f862f683f4aaf2d8f10ee f4ded97ebebea4 de8bce739e5c5e461 e30fel cee0a0d f86de7fdd8ddcbldbeadb39da9fdalcd9bld95dV Aria 217 4nByteWri te NULL Ji WriteFile hComm SEND 44 d921d8 fdd8f1d8fdd921d95dd9bl dal cda9fdb39dbeadcbldd8dde7fdf86e0a0 elcee30fe46le5c5e739e8bcea4debebed97e f4dfl0ef2d8f4aaf683 f862fa45fc2cfel6 r n 147 4nByteWri te NULL J Exam Transmit the data as following to instrument A4 through GPIB CONTROLLER DATA DAC VOLATILE 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 Code represented with format of Visual CH as below WriteFile hComm
15. 9 Rp 8000004181MHZ Description PC give the command 1 SEND 9 DISP LABL RAIEEEB 9 and 0d and 0a to GPIB CONTROLLER The instruction of DISP LABL will be transmitted to instrument A9 by GPIB CONTROLLER GPIB CONTROLLER will read the Block Data of IEEE488 DEFINITE ARBITRARY BLOCK in output buffer of instrument A9 and transmite the Block Data back to PC Exam SEND 7 idn SEND 7 MEAS AC READ 7 Rp Agilent Technologies 34410A MY47013754 2 35 2 35 0 09 46 09 1 32408543E 03 Description 1 2 1 3 4 PC give the command SEND 7 idn SEND 7 MEAS AC READ 7 and 0d and 0a o GPIB CONTROLLER The instruction of IDN will be transmitted to instrument A7 by GPIB CONTROLLER The instruction of MEAS AC will be transmitted to instrument A7 by GPIB CONTROLLER GPIB CONTROLLER will read the data in output buffer of instrument A7 and transmite the data back to PC 5 4 6 Instructions Write a b c d e Block Data in dSO dSn or dStr or iaB sent to An or AAn through GPIB CONTROLLER If the length of Block Data is more than 228 bytes Key Symbol I can be used for Block Data which is divided into many parts for sending them with several times The function of Key Symbol 4 please refer to item 5 4 4 e if dStr are used in the instruction given to GPIB CONTROLLER from PC but Key Symbol 6 are not used the contents of the first dS
16. Apear ore K sa9Taap Ul JO IV gyep pordoooe Savy SA TAP 91 JO IV gyep pordoooe AVY SOOTA9P UI JO IV gt gt gt gt z gt gt gt gt O O O Q ZD TD Oo TD YO TD 92 92 nA an an A va tn There are GPIB CONTROLLER Messages listed as below UNL LAD TAD SPD SPE LLO GET DCL SDC PPC PPU ATN EOI SRQ IFC REN DAB STB 2 The sequence of the Messages transceiving for transferring the Data ATN1 UNL LAD TAD ATNO and then DAB transfered 3 The sequence of the Messages transceiving for receiving the Data ATNI UNL LAD TAD ATNO and then DAB received 4 The sequence of the Messages transceiving for Serial Poll ATNI UNL SPE LAD TAD ATNO and then the STB for he Serial Poll received and then SPD Page 5 5 The seguence of the Messages transceiving for configuring the Parallel Poll ATNI UNL LAD PPC PPE and then UNL 6 The sequence of the Messages transceiving for the Response of Parallel Poll ATNI EOIl and then the STB for the Parallel Poll received 7 The sequence of the Messages transceiving for configuring the state as Remote ATNI RENI LLO LAD and then the last message of LAD 2 Instruction is easier to understand and have powerful function once utilized in designing of application program The high level instruction interpreter is in SM59264 MPU 8051 instead of being in the GPIB DRIVER ATL of PC The low level instructions wh
17. DlyW DlyW_R Lamda DlyW_R DlyB Lamda For example SEND cls meas AAn NULL DSOToDSn Xcls meas DlyRWB NULL SEND 7 cls meas 450 AAn 7 DSOToDSn cls meas DlyRWB 450 SEND 7 9 Xcls AAn 79 DSOToDSn Xcls DlyRWB 450 SEND 7 200 AAn 7 DSOToDSn Lamda NULL DlyRWB 200 Examples for instructions description Examples of Model ADVANTEST R3131 Exam SEND 19 IDN Rp ADVANTEST R3131 22286039 B02 Description 1 PC give the command SEND 19 IDN and Od and 0a to GPIB CONTROLLER 2 Data IDN will be transmitted to A19 by GPIB CONTROLLER 3 GPIB CONTROLLER will read the data in the output buffer of instrument Al9 and stop reading until EOI signal is received 4 GPIB CONTROLLER will delete the EOS End of String added with data obtained from item 3 5 The data left from item 4 will be added with Od 0a at the rear and then transmitted to PC by GPIB CONTROLLER Examples of Model HEWLETT PACKARD 8720D Exam SEND 16 IDN Rp HEWLETT PACKARD 8720D 0 6 06 Description 1 PC give the command SEND 16 IDN and Od and 0a to GPIB CONTROLLER Page 46 2 Data IDN will be transmitted to instrument Al6 by PIB CONTROLLER PIB CONTROLLER will read the data in the output buffer f instrument Al6 and stop reading until EOI signal is eceived PIB CONTROLLER will delete EOS End
18. End of String added ologies E5071B MY42404423 A 06 50 8333534452D30330A command Send 7 MEAS VOLT AC and Od and 0a ion of MEAS VOLT AC will be transmitted to A7 by a obtained from item 3 t from item 4 will be interpreted to the Hex format the Hex format obtained from item 5 will be back to PC n ologies 34410A MY47013754 2 35 2 35 0 09 46 09 HEWLETT 0 A 01 03 command Page 51 7 8 Send 7 4 idn and Od and 0a to GPIB CONTROLLER The instruction of IDN will be transmitted to instrument A7 and A4 simultaneously by GPIB CONTROLLER GPIB CONTROLLER will read the data in the output buffer of instrument A7 GPIB CONTROLLER will make that the EOS End of String put in the center of the data obtained from item 3 will be replaced with character of and EOS put in the rear of the data obtained from item 3 will be replaced with character of Odx0a The data obtained from item 4 will be transmitted back to PC GPIB CONTROLLER will read the data in the output buffer of instrument A4 and stop reading until EOI signal is received GPIB CONTROLLER will delete the EOS End of String added w T ith the data obtained from item 6 he data left from item 7 will be added with Od 0a at the rear and then transmitted back to PC by GPIB CONTROLLER Exam SEND 7 CONF VOLT DC 10 0 1 TRIG COUN 1000 INIT FETC Rp 5 77112684E 03 5 1088
19. Exam ARBITRARY 76354 SYST SET 64 Exam IEEEB2 O SYSTEM ani ii ENA O AN a Am 65 Exam NEEEB 9 SYST SET siscassssestssareeccaviezaesssszsnvacessaespossdecscanssensvsvgbassacesiazesasactetaoasveaneas 65 Exam IEEEB lt 9 SYST SET 09 Exam lest Sys savani neonske 66 Exam Vest Sys ennen nnen 66 Exam SEND 10 STAT PRES SYST SET 66 5 4 5 Instructions Receive and Transmit 3367 Exam Send 7 MEAS DC READ 7 u 68 Exam Send 7 MEAS DC READ 7 68 Exam Sena 4 7 SIDN READ T dia nenn geraden 68 Exam SEND 7 TRIG SOUR BUS Send 7 INIT MsgTRG 7 Send 7 FETC Read 1 68 Exam SEND S DISE EABL ROTEERB Senne ee 69 3 4 6 Instructions Write uesseseunies 69 Exam AgiETBWX 9 4D4541533A41433F 10 MS SIREN irs ree euros dns ticks O ER ide 70 MsgSDC 70 Ms gDC 70 MsgIFC 70 RESET 2 885 sa TO Exam MsgSDC 7 4 9 zal Exam Ms gREN G 4 9 nel Exam Ms TR GO Vermeende ae sa El Exam SEND 7 9 ah VOLT DC TRIG SOUR BUS INIT MseTRG 7 9 selil 5 4 8 Instruction Internal Array Buf IO nennen eTl Exam ArySet aber etc runs we d2 Exam AryAdd 12345678 12 Bram ArySet ossen 72 Exams tySel tementen ea 12 Exam ArySet 08000000313233343536373854 ArySet ArySet_ zelo 5 4 9 Instruction Default Terminator Configuration wi de Exam SetPMI OdQ ai vantevoren ierse verdenitents
20. H ss o o o tui ll 12 The data in the output buffer of instrument All will be read ntil EOI signal is received by GPIB CONTROLLER PIB CONTROLLER will make the EOS End of String added ith the data obtained from item 3 to be replaced with the haracter of 0d 0a he data obtained from item 13 will be transmitted to PC by PIB CONTROLLER Exam SEND 4 cls outp on volt 4 curr 0 1 meas volt meas curr idn Rp 3 99897E 0 3 00838E 4 HEWLETT PACKARD 6611C 0 A 01 03 Exam send 4 cls outp on volt 4 curr 0 1 curr prot stat on meas volt meas curr send 4 idn Rp 3 99882E 0 3 06621E 4 HEWLETT PACKARD 6611C 0 A 01 03 Examples of Model DSO X 2012A Exam IEEEIDN 9 Rp AGILENT TECHNOLOGIES DSO X 2012A MY52132806 02 10 2012022200 asso 13 14 Oos Page 63 Description 1 PC give the command TEEEIDN 9 and Od and 0a o GPIB CONTROLLER he instruction of idn will be transmitted to A9 by PIB CONTROLLER PIB CONTROLLER will read the data in the output buffer f instrument A9 and stop reading until EOI signal is eceived PIB CONTROLLER will delete the EOS End of String dded with the data obtained from item 3 he data left from item 4 will be added with character of Od 0a at the rear and then transmitted back to PC by GPIB CONTROLLER Heo mooaadgr Exam ARBITRARY 100 9 SYST SET Rp 800076354 lt setup prod InfiniiVision
21. PIB CONTROLLER will delete the EOS End of String added h the data obtained from item 3 he data left from item 4 will be added with Od 0a at the ear and then transmitted to PC by GPIB CONTROLLER dl 7 MEAS nd 7 DC 42030017E 05 ption 1 PC give the command Send 7 MEAS and Od and 0a to GPIB CONTROLLER 2 The instruction of MEAS will be transmitted to A7 by GPIB CONTROLLER 3 PC give the command Send 7 DC and Od and 0a to GPIB CONTROLLER 4 The instruction of DC will be transmitted to A7 by GPIB CONTROLLER 5 GPIB CONTROLLER will read the data in output buffer of instrument A7 and stop reading until EOI signal is received 6 GPIB CONTROLLER will delete the EOS End of String added with the data obtained from item 5 7 The data left from item 6 will be added with OdH0a at the rear and then transmitted to PC by GPIB CONTROLLER Page 50 Exam Send 7 4D4541533A44433F3B Rp 8 42030017E 0 Description 1 PC give the c Send 7 4 to GPIB CONTROLLER 2 Hex format of to binary for automatically 5 ommand D4541533A44433F3B and Od and 0a data 4D4541533A44433F3B will be interpreted mat of MEAS DC by GPIB CONTROLLER 3 Data MEAS AC obtained from Step 2 will be transmitted to instrumen A7 by GPIB CONTROLLER 4 GPIB CONTROLLER will read the output buffer data of instrume
22. buf else AppendMenu menuport MF STRING IDM_COMPORT1 i buf menupor t baudz CreatePopupMenu for 1 0 i if baud i str 0 break Page 126 wsprintf buf s baud i str if i amp amp 1 14 0 AppendMenu menuport baud MF_STRING MF_MENUBREAK IDM_BAUD2400 1 buf else AppendMenu menupor t baud MF STRING IDM_BAUD2400 i buf GetProReg irtool COMM buf COM1 128000 N 8 1 InitCommPort hWnd buf commt imeouts ReadIntervalTimeout MAXDWORD commt imeouts ReadTotalTimeoutMultiplier 1 commt imeouts WriteTotalTimeoutMultiplier 1 commt imeouts WriteTotalTimeoutConstant 0 commt imeouts ReadTotalTimeoutConstant 1000 Se tCommTimeout s hComm amp commt imeout s GetProReg irtool ModelChannel buf 6623Ch1 wsprint f channelno s buf4strlen 662x wsprint f modelno s buf modelno strlen 662x 0 if strcmp modelno 6621 mode 1 6621 else if strcmp modelno 6622 mode 1 6622 else if strcmp modelno 6623 mode1 6623 else if strcmp modelno 6624 model 6624 else if strcmp modelno 6627 mode 1 6627 else wsprint f modelno 6623 Page 127 model 6623 if strcomp modelno 6621 stremp modelno 6622 1f stremp channelno Chl channel 1 else if stremp channelno Ch2 c
23. gt Send 7 MEAS VOLT 50 50 Page 81 lt 1 27973527E 04 025 gt Send 7 SRE 96 lt 026 gt Send 7 ESE 64 lt 027 gt Send 7 IDN 50 50 lt Agilent Technologies 34410A MY47013754 2 35 2 35 0 09 46 09 028 gt Send 7 MEAS VOLT 50 50 lt 1 15146222E 04 Page 82 GPIB UTILITY of GPIB CONTROLLER with Agilent DSO X2012A 001 gt Findlisten 9 lt 09 002 gt Send 9 idn 50 lt AGILENT TECHNOLOGIES DSO X 2012A MY52132806 02 10 2012022200 003 gt SEND 9 EXT BWL 50 lt 0 004 gt SEND 9 MEAS SHOW 50 lt 1 005 gt SEND 9 STB 50 lt 165 006 gt SEND 9 ACQ TYPE 50 lt NORM 007 gt SEND 9 ACO MODE 50 lt RTIM 008 gt SEND 9 AUT FDEB 50 lt 0 009 gt SEND 9 CHANI DISP 50 lt 1 010 gt SEND 9 ACO COMP 50 lt 100 011 gt SEND 9 CHANI IMP 50 lt ONEM 012 gt Send 9 OPT 50 lt 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 BW10 0 0 0 0 0 0 0 0 0 0 0 0 0 0 013 gt SEND 9 ESE 50 lt 255 014 gt SEND 9 MTE 50 lt 1795 015 gt SEND 9 OPC 50 lt 1 016 gt SEND 9 CLS 0PC 5S0 lt 1 017 gt SEND 9 OPC 50 lt 1 018 gt SPOLL 9 lt 019 gt SEND 9 OPEE 50 lt 2216 020 gt SEND 9 OVLR 50 lt 0 021 gt SEND 9 TER 50 lt 1 022 gt SEND 9 ACO POIN 50 lt 50000 Page 83 GPIB UTILITY of GPIB CONTROLLER with ROHDE amp SCHWARZ SME03 0
24. idn nassen 40 SEND added with KeySymbol 41 Exam Send 22 TDF M TRA 41 SEND added with KeySymbol 41 SEND added with KeySymbol veh SEND added with Key Symbol P anni oa ENA ine 42 SEND added with Keysymbal Vanessa 42 Exam Send MEAS VOLT AC A2 Exam AgiETB 16 FORM1 OUTPDATA 43 Exam ARBITRARY 1024 16 FORMI OUTPDATA 44 Exam IEEEB 9 SYST SET IEEEB 9 weleens 44 Exam TRANSCEIV 9 7 IDN ME wv Exam SEND 19 IDN 46 Exam Send gt 7 MEAS DC 48 Exams ARBITRARY S CA NI MN A A AA O a iTe 49 Exam Send MEAS wesccsssstsesteateeveacsnssvavnsessacaeaysonpuvaseveacesusueeeesseaveadeeyeusaeurasaserzst sbisueueaeaeezeed 50 Exam Send 7 4D4541533A44433F3B sol Exam Send 7 CLS MEAS DC bl Exam SEND 7 CONF VOLT DC 10 0 1 TRIG COUN 1000 INIT FETC mn Exam IERE Idi oeren NR SA rea ann Exam Send 18 DISP WIND TRAC Y SCAL PDIV 5 SENS FE Exam Send 22 TDF M TRA Exam AgiETB_ 16 FORM2 OUTPDATA Exam AgiEIB 16 FORMI OUTPDATA Exam AgiEIB 16 FORM3 OUTPDATA Exam AgiETB 16 FORMI OUTPDATA Exam AgiETB lt 16 FORMI OUTPDATA Exam ARBITRARY 1024 16 FORM OUTPDATA s PR Exam AgiETB 16 FORM4 OUTPDATA s61 Exam SEND 17 FORM DATA ASC CALCI DATA SDAT 102 Exam EBEN O reeden taerae retentie 24503
25. ii S ii ANLGPLUS will be transmitted to A18 by GPIB CONTROLLER jj The data in output buffer of instrument A18 will be read by Page 41 GPIB CONTROLLER kk If data are included with Od or Oa EOS and obtained from item jj mentioned above the Od or Oa will be only deleted by GPIB CONTROLLER from data ll The data left after deleting are obtained from item kk these data will be added again with Od 0a EOS at the rear by GPIB CONTROLLER and sent back to PC H Key Symbol SEND added with KeySymbol if Ascii format data and Binary data of Hex format are included in the instruction under the situation Key Symbol is available examples drscribed as below Exam Instruction of instrument HP8591EM EMC ANALYZER Send 18 IB 200000003132333435363738396162636465666768696A6B 6C6D6E6F70717273747576774F747576774F 7475767 74F74 7576774F747576774F747576774F Description 1 PC give the command Send 18 IB 20 774F and 0d and 0a to GPIB CONTROLLER 2 Parameter data of 20 774F in the command will be interpreted to binary format by GPIB CONTROLLER 3 The instruction of IB and binary data obtained from item 2 will be transmitted to instrument A18 by GPIB CONTROLLER I Key Symbol SEND added with KeySymbol Exam Send 7 MEAS VOLT AC Rp 2B312E3836383938333534452D30330A Description 1 PC give the command Send 7 MEAS VOLT AC and Od and 0a to GPIB CONTROLLER 2 Instruction MEAS VO
26. with the data obtained from item ii kk The data left from item jj will be added with Od 0a at the rear and then transmitted back to PC by GPIB CONTROLLER Examples of Model E5515C Exam Send 14 IDN Rp Agilent Technologies 8960 Series 10 E5515C GB45360238 A 08 14 Description 1 PC give the command SEND 14 IDN and 0d and 0a to GPIB CONTROLLER 2 The instruction of IDN will be transmitted to Al4 by GPIB CONTROLLER 3 GPIB CONTROLLER will read the data in the output buffer of instrument Al4 and stop reading until EOI signal is received 4 GPIB CONTROLLER will delete the EOS End of String added Page 54 with the data obtained from item 3 5 The data left from item 4 will be added with Od 0a at the rear and Exam Send Rp Exam Send 14 A Rp 1 00000000E Exam Send 14 C S E Rp 9 91E37 Exam Send 14 Rp 1 1 CALI Exam Send 14 Rp 8 000000 Description 1 PC give Send and Od o GPIB C 9 91 L E4 4 GPIB CONT The data be GPIB CON in harac em 3 ero will instruc in ero er of item 3 ruc by GP ain by a lef and then transmitted back to PC CALL STAT MSP CALL STAT MS ANAL TXL CALL STAT LOOP Exam Send 14 Rp NORM 9 91E37 Examples of Model Exam Send 1 IDI hen transmitted 4 Afg Freq AFG VOLT CALL BA 1 0000
27. 048 gt PP 28 CLS ESE 1 PRE 32 OPC 05 lt 00 049 gt PP 28 CLS ESE 1 PRE 32 05 lt 10 050 gt SEND 28 SOUR POW LEV 22 SOUR POW LEV 1 lt 22 00 051 gt SEND 28 SOUR FREQ 22E6 SOUR FREQ 1 lt 22000000 0 052 gt PP 28 CLS ESE 1 PRE 32 OPC 16 lt 20 053 gt PP 28 CLS ESE 1 PRE 32 16 lt 00 054 gt PP 28 CLS ESE 1 PRE 32 OPC 06 lt 00 055 gt PP 28 CLS ESE 1 PRE 32 06 lt 20 056 gt SEND 28 SOUR POW LEV 26 SOUR POW LEV 1 lt 26 00 057 gt SEND 28 SOUR FREQ 26E6 SOUR FREO 1 lt 26000000 0 058 gt PP 28 CLS ESE 1 PRE 32 OPC 17 lt 40 059 gt PP 28 CLS ESE 1 PRE 32 17 lt 00 060 gt PP 28 CLS ESE 1 PRE 32 OPC 07 lt 00 061 gt PP 28 CLS ESE 1 PRE 32 07 Page 86 lt 062 gt lt 063 gt lt 064 gt lt 065 gt lt 066 gt lt 067 gt lt 068 gt lt 069 gt lt 070 gt lt 071 gt lt 072 gt lt 073 gt lt 074 gt lt 075 gt lt 076 gt lt 077 gt lt 078 gt lt 079 gt lt 40 SEND 28 SOUR POW LEV 29 SOUR POW LEV 1 29 00 SEND 28 SOUR FREQ 29E6 SOUR FREQ 1 29000000 0 PP 28 CLS ESE 1 PRE 32 OPC 18 80 PP 28 CLS ESE 1 PRE 32 18 00 PP 28 CLS ESE 1 PRE 32 OPC 08 00 PP 28
28. 1 rb or rb given to An from PC and automatically it is meaning that the reading data from An when instruction If both Ascii format data and the data of 0 t e i H An or AAn For example Asc D Asc A Asc 6 7 255 6 etc of 39 bytes will be transmitted to the instrument of Address l Function Generator 33220A through GPIB CONTROLLER j If Key Symbol gt is not used in instructions the data of dStr would be transmitted to instruments with normal speed which are properly for all instruments to work Instruction with Key Symbol gt are able to make the speed up when to transmit the data of dStr to instrument which is suitable for transmitting a lot of large block data at the same time it is a good selection for transmitting large Block Data but the condition of instrument working speed must be taken into consideration there are some of instruments for old model such as HEWLETT PACKARD 8752A which will be unable to use the Key Symbol gt because of working speed k Instruction is add with Key Symbo If Key Symbol is used with instruction contents of iaB will be deleted at first and then the normal function of instruction executed The number of primary address for GPIB of instrument must be one of number from 1 to 30 If there are the number of secondary address should be also one of number from 1 to 30 the address set up of primary and secondary will depend on the functions of
29. 11 50 Rp 0 Description 1 PC give instruction SRO 2 to A5 through GPIB CONTROLLER 2 Instrument A5 will be configured to the mode of PPRI and sense 11 through GPIB CONTROLLER by PC 3 The IEEE488 Parellel Polled action will be executed by PC hrough GPIB CONTROLLER 4 The data obtained from instruments AAn for taking action of item 3 will be transmitted back to PC with Hex format hrough GPIB CONTROLLER Exam PP 5 SRO 2 12 50 Rp 02 Description 1 PC give instruction SRO 2 to A5 through GPIB CONTROLLER 2 Instrument A5 will be configured to the mode of PPRI and sense 1 12 through GPIB CONTROLLER by PC 3 The IEEE488 Parellel Polled action will be executed by PC through GPIB CONTROLLER 4 The data obtained from instruments AAn for taking action of item 3 will be transmitted back to PC with Hex format through GPIB CONTROLLER Exam PP 5 SRO 2 15 50 Rp 10 Description 1 PC give instruction SRO 2 to A5 through GPIB CONTROLLER 2 Instrument A5 will be configured to the mode of PPRI and sense l 15 through GPIB CONTROLLER by PC 3 The IEEE488 Parellel Polled action will be executed by PC hrough GPIB CONTROLLER 4 The data obtained from instruments AAn for taking action of item 3 will be transmitted back to PC with Hex format hrough GPIB CONTROLLER Exam PP 5 SRO 2 18 50 Rp 80 Description 1 PC give instruction SRO 2 to A5 through GPIB CONTROLLER 2 Instrument A5 will be configured to the mode of PPRI and se
30. 13 50 SRO 2 14 50 SRO 2 15 50 SRO 2 16 50 SRO 2 17 50 SRO 2 18 50 010 gt SEND 5 PON 1 DSP 1 UNMASK 1 255 OCP 1 1 OVRST 1 SRO 1 ID lt HP6623A 011 gt SEND 5 TEST lt 0 012 gt SEND 5 VSET 1 ISET 1 VOUT 1 OCP 1 OUT 1 UNMASK 1 DLY 1 lt 5 002 0 082 5 004 0 001 5 01 1 1 255 0 020 013 gt SEND 5 STS 1 ASTS 1 FAULT 1 ERR SRO PON DSP CMODE lt 1 1 1 68 ols 12 5 0 014 gt SEND 5 VSET 1 3 VSET 1 VOUT 1 lt 2 999 3 001 015 gt SEND 5 VSET 1 4 ISET 1 2 OUT 1 lt 1 016 gt SEND lt 1 017 gt SEND lt 1 018 gt SENDS 019 gt SENDS 020 gt SEND lt 1 021 gt SEND lt 1 022 gt SEND lt 0 023 gt SENDS 024 gt SEND 5 OVSET 1 3 5 OUT 1 1 OVRST 1 OUT 1 5 OCP 2 1 OCP 2 ISET 1 1 ISET 2 1 5 ISET 3 0 01 VSET 1 10 VSET 2 7 VSET 3 1 5 OCRST 2 STS 2 5 ASTS 2 5 UNMASK 2 VSET 2 6 VSET 1 3 VSET 3 6 5 FAULT 2 Page 79 lt 0 025 gt SEND 5 SRO 1 PON 1 PON lt 1 026 gt SENDS VSET 1 3 VSET 2 5 VSET 3 9 lt 027 gt SEND 5 DSP OUTPUT 2 OK lt 028 gt SEND 5 DLY 2 08 SRQ 1 ERR lt 6 029 gt SPOLL 5 lt 113 030 gt SEND 5 OVSET 2 4 5 OUT 2 1 OVRST 2 OUT 2 lt 1 031 gt SEND5 VSET 1 20 VSET 1 5 lt 032 gt SENDS VSET 1 5 VSET 1 3 VSET 2 4 VSET 3
31. 15 lt 033 gt SENDS CLR lt 034 gt SEND 5 OCP 3 1 OCP 3 lt 0 035 gt SENDS VSET 1 12 VSET 2 5 VSET 3 4 lt 036 gt SEND 5 OCRST 3 STS 3 lt 1 037 gt SEND 5 ASTS 3 VSET 1 5 lt 1 Page 80 GPIB UTILITY of GPIB CONTROLLER with Agilent 34410A 001 gt Findlisten 7 lt 07 002 gt Send 7 SRE lt 32 003 gt Send 7 STB lt 0 004 gt Send 7 IDN lt Agilent Technologies 34410A MY47013754 2 35 2 35 0 09 46 09 005 gt Send 7 CLS lt 006 gt Send 7 IDN lt Agilent Technologies 34410A MY47013754 2 35 2 35 0 09 46 09 007 gt SEND 7 ESE lt 64 008 gt Send 7 STB lt 0 009 gt SEND 7 CONF VOLT DC 10 0 1 SAMP COUN 4 READ 30 lt 9 91556517E 03 8 74864364E 03 7 83706910E 03 6 91345844E 03 010 gt SEND 7 ESR lt 0 011 gt Send 7 PSC 1 012 gt Send 7 MEAS VOLT DC lt 1 50896586E 04 013 gt Send 7 PSC lt 1 014 gt Send 7 MEAS VOLT DC lt 1 48671368E 04 015 gt Send 7 ESE 33 lt 016 gt Send 7 ESE lt 33 017 gt SEND 7 PSC lt 1 018 gt Send 7 SRE lt 32 019 gt Send 7 ESE 33 lt 020 gt Send 7 MEAS VOLT DC lt 1 07699886E 04 021 gt Send 7 ESE 96 022 gt Send 7 ESR lt 0 023 gt Send 7 IDN 50 lt Agilent Technologies 344104 MY47013754 2 35 2 35 0 09 46 09 024
32. 250 mA Input Interface RS232 Power current DC 200 mA typical DC 300 mA Max Input Interface USB 2 0 Output Interface IEBE488 GPIB CONTROLLER socket male and RS232 and Digital Output port Support to GPIB CONTROLLER Function SHI AHl L4 T6 Cl C3 C26 Unsupport to GPIB CONTROLLER Message TCT Usable GPIB Address for external instrument from 1 to 29 Non GPIB CONTROLLER Funct ion for gpib address 30 SH AH TE LE One 8 bit Digital Output Ports with the function of latch Port address of Portx Address primary 30 secondary 1 Output current 3 mA Max Every Pin of Portx Output voltage IN One RS232 Port Drived by IC of st3232ctr Port address of Porta Address primary 30 secondary 2 Method of connector DTE RXD Pin2 TXD Pin3 Size of input buffer 748 Page 15 Communication procotol Handshake none Baudrate 2400 9600 defaul t 14400 19200 28800 38400 57600 115200 128000 Parity none Bit No 8 Stop Bit No 1 Serial RS232 protocol for the Input Interface of RS232 COMn 128000 n 8 1 and None Handshake Tom ERBE 10 46 32338 jmm soos00000000 meeesesesesesese meeeseseesesee T Bi Moe KERI the Be Goste 5 Digital Opt port beee Sees ee coocoo 2 wwwphkaku o H an JA 3 i e 5 3 E Jp 5 E mmm le 2 3 g 3 Jack center z 3 25 lt 23 53 2 za 2 S 5 rd B gt bo 5 El 3 o os VAI a ie RS232 DCE for e
33. 8051 is off As CPU 8051 is initialed the value of baudrate in Fresh ROM will be read and then based for the setting of the CPU 8051 baudrate Page 74 c Instructi on for the guerying of Baudrate Exam send 3030 Rp BAUDRATE 28800 Descript ion baudrate The baudrate value 2880 of RS232 interface will be transmitted back to PC by GPIB CONTROLLER 6 2 Description of Data Flow for the RS232 interface Default Data The data t through Rs a B b mot owever t data is Ready and Loc c PC read 1 GPIP IR will PC if al 10 Buffer wi as Fr The data t through Rs a lf data i GPIB CO b The num c If data GPIB CO instrum Exam S Descr It i Exam S Rp Ro Descrip It is Code Reader be i ei ip N ei D ock Data T data must not exceed 748 bytes f IO Buffer Sta he GPIP CONTROLLER wi he GPIP CONT If IO Buffer Sta If 10 Buffer Sta TROLLER will transmi Rs232 Port TROLLER will transmi en hde amp Schwarz SM Flow Type ransmitted from the ins 232 Port he end of Block Da us of the GPIP l give u if the IO Buffer Status ROLLER will save t Then the IO Buffe k State data form the us CONTROLLER wil us 1 Oa O Buf is not R not tra is Ready he data er transmite a l of the data in IO Buf l be cleared ate ee S ransmit 232 Port s not with the signal o
34. AAn SPOLL AAn Instruction PP AAn dSO dSn PP PP I PP Instruction Send AAn dSO dSn Send AAn dSO dSn Sendi AAn dSO dSn I Send AAn Send AAn dSO dSn Send AAn dSO dSn Send AAn dSO YdSn Send AAn Send AAn dSO dSn Send AAn dSO dSn I Sendi AAn dSO dSn Send dSO dSn Send gt AAn dSO dSn Send AAn dSO dSn I Send4 AAn dSO dSn Send Send AAn dSO dSn I Send AAn dSO dSn Send AAn dSO dSn I Send Page 25 Send AAn dSO dSn Send amp AAn dSO dSn Send AAn dSO dSn Send AAn dSO dSn Send gt dS0 dSn Send An dSO dSn Instruction EOSO EOC AAn dSO dSn EOSO EOC AAn dSO dSn EOSO EOC AAn EOSO EOC AAn dSO dSn EOSO EOC AAn dSO dSn EOSOI EOC AAn dSO dSn EOSO EOC AAn dSO dSn EOSO EOC AAn dS0 dSn EOSO EOC AAn dSO dSn EOSO EOC AAn dS0 dSn EOSO EOC AAn dSO dSn EOSO gt EOC dS0 dSn EOSO gt EOC dSO dSn EOSO EOC dS0 dSn Instruction TEEEidn AAn IEEEidn gt Instruction TestSys AAn TestSys AAn TestSys AAn TestSys AAn TestSys AAn TestSys Instruction z ARBITRARY BLEN An dSO dSn Send AAn dSO dSn Send Send AAn dSO dSn Send gt dS0 dSn AAn dSO dSn Send An dS0 dSn EOSO EOC AAn dSO dSn EOSO EOC AAn dSO dSn EOSO EOC AAn EOSO EOC AAn dSO dSn EOSO EOC AAn dSO dSn EOSO gt EOC AAn dS0 dSn EOSO EOC AAn dS0 dSn EOSO EOC AAn dS0 dSn EOSO amp EOC AAn dS0 dSn EOSO EOC AAn d
35. ABCDEFGHIJKLMNOPORSTUVWXYZ1234567890 lt ABCDEFGHIJKLMNOPORSTUVWXYZ1234567890 013 gt SEND 5 ABCDEFGHIJKLMNOPORSTUVWXYZ1234567890 lt ABCDEFGHIJKLMNOPORSTUVWXYZ1234567890 014 gt SEND 5 1234567890 SPOLL 5 SEND 5 lt 80 1234567890 015 gt SEND 4 1234567890 SPOLL 4 SEND 4 lt 80 1234567890 016 gt SEND 4 ABCDEFGHIJKLMNOPORSTUVWXYZ1234567890 lt ABCDEFGHIJKLMNOPORSTUVWXYZ1234567890 017 gt SEND 4 1234567890 lt 1234567890 018 gt PIO 2 3 FFOO lt 255 00 019 gt PIO 2 3 OOFF lt 00 255 Page 91 GPIB UTILITY of GPIB CONTROLLER with HP 6611C 001 gt Findlisten 4 lt 04 002 gt send 4 idn lt HEWLETT PACKARD 6611C 0 A 01 03 003 gt SEND 4 outp on volt 4 curr 0 1 curr prot stat on meas volt lt 3 99837E 0 004 gt SPOLL 4 lt 00 005 gt SEND 4 cls meas volt lt 3 99846E 0 006 gt send 4 curr 0 1 volt 5 prot stat on outp on meas volt lt 4 99865E 0 007 gt SEND 4 IDN READ 4 lt HEWLETT PACKARD 6611C 0 A 01 03 008 gt SEND 4 cls meas volt lt 4 99868E 0 009 gt send 4 outp on volt 4 curr 0 1 curr prot stat on meas curr lt 1 41440E 4 010 gt send 4 cls meas volt send 4 meas curr lt 3 99847E 0 1 40313E 4 011 gt send 4 volt lt 4 00000E 0 012 gt SPOLLA 4 lt 00 013 gt Send 4 IDN lt HEWLETT PACKARD 6611C 0 A 01 03 014 gt Send 4 IDN lt H
36. ABCDEFGHIJKLMNOPORSTUVWXYZ1234567890 lt ABCDEFGHIJKLMNOPQRSTUVWXYZ1 234567890 021 gt SEND 25 1234567890 022 gt SPOLL 25 lt 80 023 gt SEND 25 lt 1234567890 024 gt SEND 24 1234567890 Page 89 lt 025 gt SPOLL 24 lt 80 026 gt SEND 24 lt 1234567890 027 gt SEND 24 ABCDEFGHIJKLMNOPORSTUVWXYZ1234567890 lt ABCDEFGHI JKLMNOPQRSTUVWXYZ1 234567890 028 gt SEND 24 1234567890 lt 029 gt SPOLL 24 lt 80 030 gt SEND 24 lt 1234567890 Page 90 GPIB UTILITY of GPIB CONTROLLER with KI GRUAO01 R4 001 gt Findlisten 234 5 6 7 lt 02 03 04 05 06 07 002 gt Findlisten 2 3 4 5 6 7 lt ZZ02ZZ03ZZ04ZZ05ZZ06ZZ07 003 gt SEND 4 ABCDEFGHIJKLMNOPORSTUVWXYZ1234567890 lt ABCDEFGHIJKLMNOPORSTUVWXYZ1234567890 004 gt SEND 5 ABCDEFGHIJKLMNOPORSTUVWXYZ1234567890 lt ABCDEFGHIJKLMNOPORSTUVWXYZ1234567890 005 gt SEND 6 ABCDEFGHIJKLMNOPORSTUVWXYZ1234567890 lt ABCDEFGHIJKLMNOPORSTUVWXYZ1234567890 006 gt SEND 7 ABCDEFGHIJKLMNOPORSTUVWXYZ1234567890 lt ABCDEFGHIJKLMNOPORSTUVWXYZ1234567890 007 gt SEND 5 1234567890 lt 1234567890 008 gt SEND 6 1234567890 SPOLL 6 SEND 6 lt 80 1234567890 009 gt SEND 6 ABCDEFGHIJKLMNOPORSTUVWXYZ1234567890 lt ABCDEFGHIJKLMNOPORSTUVWXYZ1234567890 010 gt SEND 7 1234567890 SPOLL 7 SEND 7 lt 80 1234567890 011 gt Findlisten 4 5 6 7 lt ZZ04ZZ05ZZ06ZZ07 012 gt SEND 4
37. CLS ESE 1 PRE 32 08 80 SEND 28 SOUR POW LEV 32 SOUR POW LEV 1 32 00 SEND 28 SOUR FREQ 32E6 SOUR FREO 1 32000000 0 PP 28 SEND 28 CLS ESE 1 PRE 32 SRE 32 OPC 1 SEND 28 SOUR FREQ 200E6 SOUR FREQ 200000000 0 SEND 28 SOUR POW LEV 30 SOUR POW LEV 1 30 00 SEND 28 SOUR FREQ OFFS 1 0 SEND 28 SOUR POW LEV 77 SOUR POW LEV 1 77 00 SEND 28 SOUR FREQ 77E6 SOUR FREQ 1 77000000 0 SEND 28 SOUR FREQ STEP 1 1000000 0 SEND 28 SOUR POW LEV 25 SOUR POW LEV 1 25 00 SEND 28 SOUR FREQ 175E6 SOUR FREO 1 175000000 0 080 gt SEND 28 SOUR POW LIM 1 lt 16 00 081 gt SEND 28 SOUR POW LEV 88 SOUR POW LEV 1 lt 88 00 Page 87 082 gt lt 083 gt lt 084 gt lt 085 gt lt 086 gt lt 087 gt lt 088 gt lt 089 gt lt 090 gt lt 091 gt lt 092 gt lt 093 gt lt 094 gt lt 095 gt lt 096 gt lt SEND 28 SOUR FREQ 88E6 SOUR FREQ 1 88000000 0 SEND 28 SOUR POW ALC BAND AUTO 1 ON SEND 28 SOUR POW LEV 66 SOUR POW LEV 1 66 00 SEND 28 SOUR FREQ 66E6 SOUR FREQ 1 66000000 0 SEND 28 SOUR POW ALC BAND 1 100000 SEND 28 SOUR CORR 1 0 SEND 28 SOUR POW LEV 44 SOUR POW LEV 1 44 00 SEND 28 SOUR FREQ 44E6 SOUR FREQ 1 44000000 0 SEND 28 OUTP AMOD AUTO SOUR POW STEP 1 OPC 1 1 SEND
38. CONTROLLER with Agilent DSO X2012A GPIB UTILITY of GPIB CONTROLLER with ROHDE amp SCHWARZ SMEO3 GPIB UTILITY of GPIB CONTROLLER with KI GRUAO1 R2 GPIB UTILITY of GPIB CONTROLLER with KI GRUAO1 RA GPIB UTILITY of GPIB CONTROLLER with HP 6611C ma Sample APP for the GPIB application of GPIB CONTROLLER scccsssssssssesssesesecsssssssssssssesssesocesasssassess Page 4 The design concept for IEEE488 GPIB CONTROLLER 1 The operation of high efficiency high speed high stability high reliability and high compatibility PIB CONTROLLER take the Raw Data format for tranceiving data to or rom instrument and can transmite data to multiple instruments at he same time It waste little delay time for interpreting and waiting ata on tranceiving and the posibility of the tranceiving data error ill be low PIB CONTROLLER utilize the merit of CPLD or FPGA strict with the ynamic Timing for the communication of GPIB CONTROLLER CPU and all nstrument and make fine tune on the firmware of CPLD or FPGA to get he best communication stability and the best compatibility between he GPIB CONTROLLER and all the instruments with GPIB Interface he basic rule of GPIB CONTROLLER Handshake timing for GPIB CONTROLLER umor APEN Kales 4 ke A K poe Z lt z Z va n n ua n Nn n G DIO First Data Byte Second Data Byte DAV RFD gt 3 5us DAC i Pt Saaraap Sy JO TIV peor ore
39. Configure the Data Flow Type for RS232 interface as Code Reader Data Flow Type 6 3 The reading and writing for the interface of RS232 Exam Send 230 IDN Rp Rohde amp Schwarz SME03 833777 013 4 11 Description 1 PC give the command Send 230 IDN and 0d and 0a to GPIB CONTROLLER 2 The instruction of IDN will be transmitted to the instrument address Primary 30 and Secondary 2 by GPIB CONTROLLER 3 GPIB CONTROLLER will read the data in the output buffer of instrument address Primary 30 and Secondary 2 and stop reading until EOI signal is received 4 GPIB CONTROLLER will delete the EOS End of String added with the data obtained from item 3 5 The data left from item 4 will be added with Od 0a at the rear and then transmitted back to PC by GPIB CONTROLLER 6 4 The reading and writing for the interface of Digital I O port Exam PIO 130 430 3AFF Description 1 PC give the command PIO 130 430 3AFF and 0d and 0a to GPIB CONTROLLER 2 GPIB CONTROLLER will configure the output port address Primary 30 and Secondary l as 3A Hex 3 GPIB CONTROLLER will configure the output port with Address Primary 30 and Secondary 4 as FF Hex Exam PIO 130 Rp 58 Description 1 PC give the command PIO 130 and 0d and 0a to GPIB CONTROLLER 2 GPIB CONTROLLER will transmite the output value 58 of the port with address Primary 30 and Secondary l back to PC Exam PIO 130 Rp 3A Description
40. KEYCLR ID CE 300MHZ SP 2MHZ RB 100KHZ CF rb RL RLPOS SER REV SETDATE SETTIME SOLCH SS SRCTK SRCALC SRCPSTP SRCPWR SRCPSWP SRCNORM SRCPOFS MEM AMB AMBPL AMPLEN ANLGPLUS Rp HP8591EM 300000000 100000 0 8 976 960709 120621 141459 0 100000000 0 INT 10 00 10 00 0 OFF 0 261414 OFF OFF 1 OFF Description 1 PC give the command Send 18 IP KE ANLGPLUS and 0d and 0a to GPIB CONTROLLER 2 Instruction IP KEYCLR and ID will be transmitted to A18 by GPIB CONTROLLER 3 The data in output buffer of instrument Al8 will be read by GPIB CONTROLLER 4 The data are obtained from item 3 if data are inclusive of Od 0a Od 0a will be replaced by and then transmitted back to PC 5 Instruction CF 300MHZ SP 2MHZ RB 100KHZ and CF will be transmitted to Al8 by GPIB CONTROLLER 6 GPIB CONTROLLER read the data in output buffer of instrument A18 7 The data are obtained from item 6 if data are inclusive of Od 0a Od 0a will be replaced by and then transmitted back to PC 8 Instruction rb will be transmitted to A18 by GPIB CONTROLLER 9 The data in output buffer of instrument A18 will be read by GPIB CONTROLLER 10 The data are obtained from item 9 if data are inclusive of Od 0a Od 0a will be replaced by and then transmitted back to PC
41. MESSAGE sent to AAn from PC through GPIB CONTROLLER Ms gREN TEEE488 1 LLO MESSAGE sent to AAn from PC through GPIB CONTROLLER MsgREN TEEE488 1 GTL MESSAGE sent to AAn from PC through GPIB CONTROLLER MsgTRG TEEE488 1 GET MESSAGE sent to AAn from PC through GPIB CONTROLLER MsgSDC TEEE488 1 SDC MESSAGE sent to AAn from PC through GPIB CONTROLLER MsgDC TEEE488 DC MESSAGE sent to AAn from PC through GPIB CONTROLLER MsgIFC TEEE488 1 IFC MESSAGE sent to AAn from PC through GPIB CONTROLLER RESET PC give the instruction to GPIB CONTROLLER and indicate that the IEEE488 message used for the regulation of reset protocol In IEEE488 2 will be sent to instrument by GPIB CONTROLLER such as RST IFC DCL FINDLISTEN etc Syntax Key Word Key Symbol Parameter MsgREN AAn E DlyW DlyB MsgTRG AAn h DlyW DlyB MsgSDC AAn DlyW DlyB Ms gDC DIyW DIyB Msg IFC DlyW DIyB RESET DIyW DIyB Example of various IEEE488 1 Message sent to instrument from PC through GPIB CONTROLLER as below Exam MsgDC Page 70 Description PC send IEEE488 1 DC to AAn through GPIB CONTROLLER Exam MsgIFC Description PC send IEEE488 1 IFC to AAn through GPIB CONTROLLER Exam MsgSDC 7 4 9 Description PC send IEEE488 1 SDC to A7 A4 and A9 through GPIB CONTROLLER Exam MsgREN 7 4 9 ion I Description PC send IEEE488 1 GTL to A7 A4 and A9 through GPIB
42. Page 35 through GPIB CONTROLLER 6 The data obtained from instruments AAn for taking action of item 5 will be transmitted back to PC with Hex format through GPIB CONTROLLER Exam SEND 28 OPC SEND 5 SRO 2 PP 1118 Rp 81 Description 1 PC give instruction OPC to A28 through GPIB CONTROLLER 2 PC give instruction SRO 2 to A5 through GPIB CONTROLLER 3 Instrument A28 will be configured to the mode of PPRI and sense 11 through GPIB CONTROLLER by PC 4 Instrument A5 will be configured to the mode of PPR8 and sense 18 through GPIB CONTROLLER by PC 5 The IEEE488 Parellel Polled action will be executed by PC through GPIB CONTROLLER 6 The data obtained from instruments AAn for taking action of item 5 will be transmitted back to PC with Hex format through GPIB CONTROLLER Exam SEND 28 OPC SEND 5 SRO 2 PP 1112 Rp 03 Description 1 PC give instruction OPC to A28 through GPIB CONTROLLER 2 PC give instruction SRO 2 to A5 through GPIB CONTROLLER 3 Instrument A28 will be configured to the mode of PPRI and sense 11 through GPIB CONTROLLER by PC 4 Instrument A5 will be configured to the mode of PPR2 and sense 12 through GPIB CONTROLLER by PC 5 The IEEE488 Parellel Polled action will be executed by PC through GPIB CONTROLLER 6 The data obtained from instruments AAn for taking action of item 5 will be transmitted back to PC wit
43. SRO regarded with or or disregarded without 4 and b The result of previous polling above item 5 4 3 a and transmitted to PC c Function as following item 1 and item 2 is same as to Std488 2 1987 pase 164 common controller Protocols Instruction SPOLL with or without Key Symbol 4 or 1 FINDROS equal to SPOLL with 4 or regard signal SRQ 2 ALLSPOLL equal to SPOLL without 4 and disregarded signal SRQ Separate description of instruction SPOLL The process of IEEE488 Serial Polling executed to instrument AAn PP The process of IEEE488 Parallel Polling executed to instrument AAn Syntax Key Word Key Symbol Parameter SPOLL 2 AAn dSo dSn DlyR DlyW DlyB PP 1 AAn dSo dSn DIyR DlyW DlyB Command PP Key Symbol PP AAn DSOToDSn Key Symbol PP PUM te Lamda Page 30 Command SPOLL Key Symbol SPOLL AAn DSOToDSn Key Symbol SPOLL I 1 amp 1 lt I Lamda AAn An AAn Lamda DSOToDSn DSOToDSn_R DlyRWB DlyRWB Lamda DSOToDSn_R DStr DSOToDSn_R Lamda DlyRWB DlyR DlyR_R DIyR R DlyW DlyW_R Lamda DlyW_R DIyB Lamda Description INSTRUCTION ACTIONS The process of IEEE488 Serial Poll executed to AAn from PC through the SPOLL GPIB CONTROLLER signal SRO is disregarded result read from AAn will be sent to PC The process of IEE
44. SYNC LEV CALL STAT SYNC LEV SEL C will be transmitted to A14 by instrument Al4 will String put in 1 be replaced with the the data obtained from Qd 0a o PC by item 3 wil he rear of character of C LEV will be transmitted to A14 by instrument Al4 wil he EOS End of String put in replaced with the he data obtained Od 0a by put in the rear of h the character of C LEV SEL will be transmitted instrument Al4 wil EOS End of String added 11 be added with Od 0a at the rear 33220A 9 by GPIB CONTROLLER Rp Agilent Technologies 33220A MY44046179 2 07 2 06 22 2 Exam SEND 1 OUTP LOAD 50 APPL SIN 5000 5 FM INT FUNC SIN FM INT FREQ 500 FM DEV 250 DATA CAT Rp 1 00000000E 003 0 00000000E 000 PGSM A2012 46 425 414 434 447 40 40 Page 55 Description 1 PC give the command SEND 1 OUTP LOAD 50 APPL SIN 5000 5 FM INT FUNC SIN EM and 0d and to GPIB CONIROLLER he instruction of OUTP LOAD 50 will be transmitted to Al4 by PIB CONTROLLER he instruction of APPL SIN 5000 5 will be transmitted to Al4 by PIB CONTROLL B CONTROLL read by GP ccegeceaedeEO92929m1I F h Pp he data in e D 9 ith the data he data lef nd then tran 10 pos he instruction of PIB CONTROLLER e instruction of DATA CAT will be transmitted to Al4 by B CONTROLLER INT FR
45. SetProReg irtool modelchannel buf else if Message message WM_LBUTTONDOWN amp amp Message hwnd GetD1 gI tem hWnd IDC OUTFILE to set up file name and path of the testing report by calling subprogram SelOutFile SelOutFile hWnd else TranslateMessage amp Message DispatchMessage amp Message if haccel NULL TranslateAccelerator hWnd haccel amp Message Page 135 PurgeComm hComm PURGE_RXCLEAR SetCommMask hComm OL i fChComm INVALID_HANDLE_VALUE CloseHandle hComm return FALSE case WM_ERASEBKGND GetClientRect hWnd amp btnRect FillRect HDC wParam amp btnRect hbr return TRUE case WM_CTLCOLORDLG return LRESULT hbr case WM_CTLCOLOREDIT if HWND 1Param GetDleltem hWnd IDC_EDIT1 SetTextColor HDC wParam COLORREF RGB 0 0 0 SetBkColor HDC wParam COLORREF 0x00ffff80 return LRESULT hbrushbtn else return NULL case WM_CTLCOLORBIN if HWND 1Param GetD1 gI tem hWnd IDC_BUTTON3 return LRESULT hbrushbtn else return NULL case WM_CTLCOLORLISTBOX return LRESULT hbr case WM_CTLCOLORSTATIC if HWND 1 Param GetD1 gI tem hWnd IDC_CMDFILESEL SetTextColor HDC wParam COLORREF RGB 0 0 0 SetBkColor HDC wParam COLORREF 63355 Page 136 return LRESULT hbrushstatic else
46. The IEEE488 Parellel Polled action will be executed by PC through GPIB CONTROLLER The data ob ain of item 5 will through GPIB CONTROLLER Exam PP 28 OPC 1l Rp 81 Descr 1 Ds 3 4 Rp 05 Descr 1 2 3 4 iption PC give ins PC give ins ruc ruc ed from instruments AAn for taking action be transmitted back to PC with Hex format PP 5 SRO 2 18 PP ion OPC to A28 through GPIB CONTROLLER ion SRQ 2 to AS through GPIB CONTROLLER Instrument A28 will be configured to the mode of PPRI and sense 11 through GPIB CONTROLLER by PC Instrument A5 will be configured to the mode of PPR8 and sense 18 through GPIB CONTROLLER by PC through GPIB CO The data ob ain of item 5 will through GPIB CO Exam PP 28 OPC 1l iption PC give ins PC give ins ruc ruc The IEEE488 Parellel Polled action will be executed by PC TROLLER ed from instruments AAn for taking action be transmitted back to PC with Hex format TROLLER PP 5 SRO 2 13 PP ion OPC to A28 through GPIB CONTROLLER ion SRO 2 to AS through GPIB CONTROLLER Instrument A28 will be configured to the mode of PPRI and sense 1 11 through GPIB CONTROLLER by PC Instrument A5 will be configured to the mode of PPR3 and sense 1 13 through GPIB CONTROLLER by PC The IEEE488 Parellel Polled action will be executed by PC
47. VOLATILE 2047 1536 1024 512 0 512 1536 2047 0a o GPIB CONTROLLER 2 The instruction of DATA DAC VOLATILE 2047 1536 1024 512 0 512 1536 will be transm 2047 itted to instrument A4 by GPIB CONTROLLER 3 PC give the command and Od and will be transm SENDI 4 0 512 1536 2047 512 1536 2047 1047 1236 1124 402 0 Oa o GPIB CONTROLLER 4 The data of 0 512 1536 2047 512 1536 2047 1047 1236 1124 402 0 itted to instrument A4 by GPIB CONTROLLER 5 PC give the command Page 56 SENDI 4 512 1136 1547 0 712 1236 1447 112 and 0d and 0a to GPIB CONTROLLER by PC The data of 512 1136 1547 0 712 1236 1447 112 will be transmitted to instrument A4 by GPIB CONTROLLER PC give the command SEND 4 1236 1047 947 136 1624 4627 312 447 192 1536 1147 and Od and 0a to GPIB CONTROLLER Data 1236 1047 947 136 1624 4627 312 447 192 1536 1147 in the rear will be added with a signal of EOI by GPIB CONTROLLER Data and EOI obtained from item 8 will be transmitted to instrument A4 by GPIB CONTROLLER The command Send 4 for item 1 3 and 5 mentioned above will be added with Key Symbol of in the rear this means that the data are not wholly sent from PC yet The data for item 2 4 and 6 are transmitted to the instrument A4 hrough GPIB CONTROLLER and the handshake action between GPIB CONTROLLER and instrument wi
48. and data body in the output buffer of instrument Al6 will be read by GPIB CONTROLLER 5 The data obtained from item 4 will be added with Od 0a at the rear by GPIB CONTROLLER 6 The data and characters of od 0a obtained from item 5 will be transmitted to PC by GPIB CONTROLLER Exam AgiETB_ 16 FORMI OUTPDATA Rp 4 1206 Exam AgiETB_ 16 FORM3 OUTPDATA Rp 4 3216 Exam AgiETB 16 FORMI OUTPDATA Rp A B eau de MERO RTA N d e Description 1 PC give the command AgiETB 16 FORMI OUTPDATA and Od and 0a to GPIB CONTROLLER 2 The instruction of FORM1 will be transmitted to A16 by GPIB CONTROLLER 3 The instruction of OUTPDATA will be transmitted to Al6 by GPIB CONTROLLER 4 GPIB CONTROLLER will read the data in the output buffer of instrument Al6 and stop reading until EOI signal is received 5 The data of 1210 Byte obtained from item 4 will be transmitted to PC by GPIB CONTROLLER i Exam AgiETB lt 16 FORMI OUTPDATA Ji oa Din ei tt Vs a Valle Terran Der N se Description 1 PC give the command AgiETB lt 16 FORMI OUTPDATA and Od and 0a to GPIB CONTROLLER 2 The instruction of FORMI will be transmitted to A16 by GPIB CONTROLLER 3 The instruction of OUTPDATA will be transmitted to Al6 by GPIB CONTROLLER 4 The Data Body in the output buffer of instrument A16 will b
49. communication from pc to instruments through GPIB GONTROLLER hWnd handle of main window hComm handle to communications device ID EDITBOX identifier of editbox control WrDataStr address of buffer for text data which is prepared to send from communication port to instrument through lt b gt ki usb gpib controller lt b gt bki LRESULT CALLBACK CheckPower HWND hWnd HANDLE hComm LONG ID EDITBOX int i nlen typeoftest char inbuf 256 outbuf 256 textbuf 1024 DWORD dwTime HANDLE hfile DWORD nByteWrite 7S PRP NE A A A oe oe SEJE 2 oe se se se 2 oe oe AEE ae ae oe oe oe oe SE SE Joe de oe oe oe SE SEJE oo oe OCC The list of testing point voltage value for Hp662xa Donne oe oe ne JE Joe oe oe oe oe oe SEJE a oe oe se se fee ae a oe oe oe se ie ee ae oe oe oe SE SE SEJ de oe se oo SOJE koko const struct float point 30 test 1923 D9 3359 AGA eo 8 EEN 5 6 5 7 7 5 8 8 5 9 9 5 10 10 5 1 12 13 14 15 16 17 18 19 20 const struct float point 30 test3 0 2 6 4 2 5 8 7 4 9 0 10 6 12 2 13 8 15 4 7 18 7 20 4 22 1 23 8 25 5 27 1 28 8 30 5 32 2 34 35 9 37 8 39 7 41 6 43 5 45 4 47 3 49 2 50 0 InitCommPort hWnd param SetWindowText GetDlgItem hWnd IDC EDITI Updat eWindow GetD1gI tem hWnd IDC EDITI PER AA A HR HB DE o HR oe oe oe oe akk oe oe oe oe oe oe o Jo kelk ok ak ak oe oe oe oe oe oe ez lekke OK k The channel of power supplier HP662xa which we are te
50. dBm SOUR FREQ Rp 200000010 0 Examples of Model E3632A Exam FINDLISTEN Rp 05 Description 1 PC give the command FINDLISTEN and 0d and 0a to GPIB CONTROLLER GPIB CONTROLLER execute ieee488 1 Findlisten procedure to gpib bus The data obtained from item 2 will be added with Od 0a in the rear by GPIB CONTROLLER Vo Page 47 4 The data obtained from item 3 will be transmitted back to PC by GPIB CONTROLLER Exam SEND 5 IDN Rp HEWLETT PACKARD E3632A 0 1 4 5 0 1 0 Description 1 PC give the command SEND 5 IDN and Od and 0a to GPIB CONTROLLER 2 Data IDN will be transmitted to A5 by GPIB CONTROLLER 3 GPIB CONTROLLER will read the data in the output buffer of instrument A5 and stop reading until EOI signal is received 4 GPIB CONTROLLER will delete thee EOS End of String added with the data obtained from item 3 5 The data left from item 4 will be added with Od 0a at the rear and then transmitted back to PC by GPIB CONTROLLER Exam SEND 5 output Rp 0 Description 1 PC give the command SEND 5 output and Od and 0a to GPIB CONTROLLER 2 Data output will be transmitted to A5 by GPIB CONTROLLER 3 GPIB CONTROLLER will read the data in the output buffer of instrument A5 and stop reading until EOI signal is received 4 GPIB CONTROLLER will delete the EOS End of String added with the d
51. es 2 input 8 Museo 25 3 amp 3 3 s 3 eee 59 944 3 7084 mm 59 944 43 een 59 944 43 58726 mm Introduction The idea of GPIB CONTROLLER is for improvement of designing application program and promotion of various functions for instruments the illustration of signal input and output as below k AP 8 0 A DIVE IEEE488 Protocol Server 8051 CPU with CPLD LC4128 T Data from Devices IEBE488 Procotol Devices Data sent to PC 4 f USB and RS232 Protocol Adapter 1C CP2102 According to diagram shown as above The IC CP2102 and its driver made and designed by SILICON LABORATORIES and RS232 protocol are used to act as the bridge between GPIB CONTROLLER and PC for communication left side of diagram also the IC8051 CPU LC4128 CPLD as well as IEEE488 are utilized as correspondence between GPIB CONTROLLER and instruments all new design is made to re adjust and integrate the inside of GPIB CONTROLLER to supply the functions of communication for reguirement owing to RS232 protocol with left side of GPIB CONTROLLER are very general and applicable for most PC operating systems in addition the instructions of Data sent to Devices RS232 COM 128000 n 8 1 Fe ee Data from PC Page 16 GPIB CONTROLLER have powerful functions and easy use after integration and re adjustment of internal GPIB CONTROLLER so there are many features stated as below 1 Compatibility Detail
52. from item 4 will be added with Od 0a at the ear and then transmitted back toPC by GPIB CONTROLLER ITRARY 3 7 idn ption 1 PC give the command d ata ARBITRARY 3 7 idn and Od and 0a Page 49 to GPIB CONTROLLER T G 3 G o 4 T b Exam ARB Rp len Descri he instruction of idn will be transmitted to A7 by PIB CONTROLLER PIB CONTROLLER will read 3 bytes of the data in output buffer instrument A7 he 3 bytes data obtained from item 3 will be transmitted ack to PC by GPIB CONTROLLER ITRARY 59 7 Technologies 34410A MY47013754 2 35 2 35 0 09 46 09 pt ion 1 PC give the command De zo 3 1 Gi Exam Sen Rp 8 Descri ARBITRARY 59 7 and 0d and 0a o GPIB CONTROLLER PIB CONTROLLER will read 57 bytes of the data in utput buffer of instrument A7 not 59 bytes because there are 57 bytes data only in output buffer of instrument A7 he 57 bytes data will be transmitted back to PC by PIB CONTROLLER d gt 7 MEAS DC 4203001 7E 05 ption 1 PC give the command 4 EOD 5 r Exam Sen Se Rp 8 Descri Send gt 7 MEAS DC and Od and 0a GPIB CONTROLLER PIB CONTROLLER will take a little of delay time to ransmite the instruction MEAS DC to the instrument A7 PIB CONTROLLER will read the data in output buffer of o nstrument A7 and stop reading until EOI signal is eceived
53. ins signal is received 5 Data obtained from i GPIB CONTROLLER Exam Send 18 IP KEYCLR Send 22 TDE M TRA and 0d and 0a TDF M will be transmitted to A22 by TRA will be transmitted to A22 by read the data of 2007 byte in the rument A22 and stop reading until EOI em 4 will be transmitted back to PC by ID CE 300MHZ SP 2MHZ RBIOOKHZ CF rb RL RLPOS SER REV SETDATE SETTIME SOLCH SS SRCTK SRCALC SRCPSTP SRCPWR SRCPSWP SRCNORM SRCPOFS MEM AMB AMBPL AMPLEN ANLGPLUS Rp HP8591EM 300000000 100000 0 8 976 960709 120621 141459 0 100000000 0 Exam Findlisten 16 17 Rp 16 17 Examples of Model 8753D Exam SEND 16 IDN INT 10 00 10 00 0 0FF 0 261414 0FF OFF 1 OFF Rp HEWLETT PACKARD 8753D 0 6 14 Exam SEND 16 PRES Description 1 PC give the command SEND 16 PRES and o GPIB CONTROLLER Od and 0a Page 58 2 The instruction of PRES will be transmitted to Al6 by GPIB CONTROLLER Exam AgiETB_ 16 FORM2 OUTPDATA Rp 4 1607 Description 1 PC give the command AgiETB 16 FORM2 OUTPDATA and 0d and 0a to GPIB CONTROLLER 2 The instruction of FORM2 will be transmitted to Al6 by GPIB CONTROLLER 3 The instruction of OUTPDATA will be transmitted to Al6 by GPIB CONTROLLER 4 The byte number of data head
54. instruction of SYST SET will be transmitted to A9 by GPIB CONTROLLER GPIB CONTROLLER will read the foremost 76364 bytes of Page 64 4 Exam SE data in output buffer of instrument A9 The 76364 bytes of data obtained from item 3 will be transmitted back to PC by GPIB CONTROLLER D 9 SYST SET Rp 800076354 lt setup prod InfiniiVision ver 02 10 2012022200 srver 2 0 Description 1 PC give the command data SEND 9 SYST SET and 0d and 0a to GPIB CONTROLLER 2 The instruction of SYST SET will be transmitted to A9 by GPIB CONTROLLER 3 GPIB CONTROLLER will read the data in output buffer of instrument A7 and stop reading until EOI signal is received 4 The 76364 bytes of data 10 bytes of blockhead is included obtained from item 3 will be transmitted back to PC by GPIB CONTROLLER Exam EEEB 9 SYST SET Rp 800076354 lt setup prod InfiniiVision ver 02 10 2012022200 srver 2 0 Description 1 PC give the command TEEEB 9 SYST SET IEEEB 9a and 0d and 0a o GPIB CONTROLLER t 2 The instruction SYST SET will be transmitted to A9 by G PIB CONTROLLER 3 GPIB CONTROLLER will read the data in output buffer of instrument A9 when total byte number of receiving data are coincedental with the regulation for block head of data obtained automatically from instrument GPIB CONTROLLER will stop reading data 4 T
55. only EOS will be deleted from the data added with EOS and replaced with character or Od 0a and then sent TestSys a IEEE488 2 tst sent to An or AAn back to PC IEEEA88 ARBITRARY ASCII will be read b Value of DIyB set up to 7000 automatically GPIB RW POLLING TIME are needed to increase or decrease value Of DIyB within instruction would be re set for example TestSys 100 100 9000 EOSO Same function as previous addition TRANSCEIV from which the format of if the length for DlyB would be re set to 9000 send but EOS is input parameter in Any one of Parameter at dSO dSn such as dStr0 is sent to one of instruments among AAn such as added with charac data in output buffer of instrument and send them to PC as below Block data at dSO dStr0 dStrN In a word ter dS Instrument addresses at AAn Ao AN addresses of the parameter for sending block data must be AO if the end of dStr0 is GPIB CONTROLLER would automatically read reference corresponded to the addresses of received instrument Exam TRANSCEIV 9 7 IDN MEAS AC Rp AGILENT TECHNOLOGIES DSO X 2012A MY52132806 02 10 2012022200 1 55823202E 03 NOTE IDN corresponded to A9 Rp is DSO X 20124 MEAS AC corresponded to A7 Rp is 1 55823202E 03 Syntax Key Word Key Symbol Param
56. test3 point i fabs test3 point i 100 else sprintf textbuf strlen textbuf ACCURACY 3 3f M r n atof outbuf test point i fabs test point i 100 nlen SendMessage GetDlgItem hWnd ID_EDITBOX WM_GETTEXTLENGTH 0 0 SendMessage GetDlgItem hWnd ID EDITBOX EM SETSEL nlen nlen SendMessage GetDlgItem hWnd ID_EDITBOX EM_REPLACESEL 0 LPARAM textbuf hfile CreateFile File_Place_Csn GENERIC_READIGENERIC_WRITE O NULL OPEN ALWAYS FILE ATTRIBUTE NORMAL NULL SetFilePointer hfile 0 NULL FILE EMD WriteFile hfile textbuf strlen textbuf 4nByteWri te NULL CloseHandle hfile return OL subprogram is called by CheckPower to send the data to instrument from communication device through GPIB CONTROLLER In the same way the data responded to Communicate device from instrument will be read through GPIB CONTROLLER hWnd handle of main window WrDataStr address of buffer for text data which is prepared to send to communications device ID_EDITBOX identifier of editbox control hComm handle to communications device RdDataStr address of buffer for saving data received from communications device Page 117 Dne ok ok ok ok oe oe oe oe oe oe oe oe o o ok kok ak ak ak oe oe oe oe oe oe oe oe Jo kok ok k ak oe oe oe oe oe al lk kk akk ak ak ak ak LPSTR CALLBACK WrToBusAndRdFrBus HWND hWnd DWORD Wait TicketTime LONG ID EDITBOX HANDLE
57. to instrument as following ATNI UNL TAO LA7 ATNO MEAS DC ATNI LAO TA7 No signal SAO are included the instruction with adding 2 PC give the instruction to GPIB CONTROLLER that parameter of secondary address for the instruction is zero GPIB CONTROLLER will transmite the IEEE488 Message secondary address of SAO to instrument Example SEND 7 MEAS DC a PC give the instruction SEND 7 MEAS DC to GPIB CONTROLLER b GPIB CONTROLLER transmite IEEE488 Message to instrument as following ATNI UNL TAO LAT SAO ATNO MEAS DC ATNI LAO TAT SAO two signal of SAO is instruction this dStr with included D character If only a character is included in a dStr of 7 would not be sent to instrument but data which is already saved in output buffer of instrument will be read through GPIB CONTROLLER and sent to PC Exam SEND 7 idn SEND 7 MEAS DC Rp Agilent Technologies 34410A MY47013754 2 35 2 35 0 09 46 09 1 17373430E 06 Exam SEND 7 MEAS AC CONF VOLT DC SAMP COUN 1 READ Rp 5 43147446E 06 2 53149556E 08 Exam SEND 9 idn TRANSCEIV 7 7 9 7 SAMP COUN 2 READ MEAS DC Rp 2 07209052E 05 2 32005757E 05 AGILENT TECHNOLOGIES DSO X2012A MY52132806 02 10 2012022200 1 17373430E 06 SEND added with KeySymbol Exam Send idn Rp 04 HEWLETT PACKARD 6611C 0 A 01 03 07 Agilent Technolog
58. transmitted to Al6 by GPIB CONTROLLER 4 GPIB CONTROLLER will read the 1024 byte of data in output buffer of instrument Al6 5 GPIB CONTROLLER will transmite the data obtained from item 4 back to PC IEEEB a Parameter dSO dSn in the instruction sent to An through GPIB CONTROLLER by PC b The data of IEEE488 DEFINITE LENGTH ARBITRARY BLOCK format are read from output buffer of instrument An through GPIB CONTROLLER by PC the number of data to stop reading automatically will be detected by GPIB CONTROLLER in accordance with the block head Exam IEEEB 9 SYST SET IEBEB 9 Rp 4800076354 setup prod InfiniiVision ver 02 10 2012022200 Description 1 PC give the command IEEEB 9 SYST SET IEEEB 9 and 0d and 0a o GPIB CONTROLLER 2 The instruction SYST SET will be transmitted to A9 by GPIB CONTROLLER 3 GPIB CONTROLLER will read the data in output buffer of instrument A9 when total byte number of receiving data are IEEEidn coincedental wi from instrument automatically The 76364 bytes h the regulation for block head of data obtained GPIB CONTROLLER will stop reading data of data obtained from item 3 will be transmitted back to PC by GPIB CONTROLLER 10 bytes of BLOCK HEAD 800076354 will be included in the 76364 bytes of data a IEEE488 2 idn sent to An or AAn Page 44 b The data of IEEE488 ARBITRARY ASCII format are read from An or AAn through GPIB CONTROLLER by PC
59. will be read from An or AAn and responded to PC RdEOS Same function as above READ but EOS is decided by input parameter instead of default EOS RdAgiETB Agilent 8753ET Forml 2 3 5 block data will be read from An and responded to PC RdARBITRARY The data of any format are read from An and sent to PC the data read completely at a time or several times will be decided by parameter BLEN RdIEEEB Block Data of format IEEE488 DEFINITE LENGTH ARBITRARY BLOCK read from An and sent to PC through GPIB CONTROLLER Syntax Key Word Key Symbol Param Param Param Param Param Param READ H AAn dS0 dSn DIyR DlyW DlyB RdEOS EOS AAn dSo dSn DIyR DlyW DlyB RdAgiETB 7 An DIyR DlyW DlyB RdARBITRARY 2 BLEN An DIyR DlyW DlyB RdIEEEB 2 DIyR DlyW DlyB Description Exam Send 7 MEAS DC READ 7 Rp 1 13459428E 04 Description 1 Pe give the command Send 7 MEAS DC READ 7 and Od and Oa to GPIB CONTROLLER 2 GPIB CONTROLLER will transmite Instruction MEAS DC to instrument A7 3 GPIB CONTROLLER will read the data in output buffer of instrument A7 and transmitted the data back to PC Exam Send 7 MEAS DC READ 7 Rp 2d312e3135323939393135452d3034 Description 1 PC give the command Send 7 MEAS DC READ 7 and Od and Oa to GPIB CONTROLLER 2 The instruction of MEAS DC will be transmitted to instrument A7 by GPIB CONTROLLER
60. will be transmitted simultaneously o all instruments of AAn which are connected with PIB CONTROLLER through gpib cable or example A4 A7 A9 All GPIB CONTROLLER transmite the instruction of IDN simultaneously to instruments it mean that he instruction of IDN is sent to instruments with broadcasting only a time by GPIB CONTROLLER all instruments will receive the instruction simultaneously 3 GPIB CONTROLLER will read the data in the output buffer of instrument A4 and stop reading until EOI signal is r 4 GPIB COl TROLLER will make the EOS End of String added with the data obtained from item 3 to be replaced with the character of 5 the data obtained from item 4 will be transmitted back to PC by GPIB CONTROLLER 6 GPIB CONTROLLER will read the data in the output buffer of instrument A7 and stop reading until EOI signal is r 7 GPIB CONTROLLER will make the EOS End of String added with the data obtained from item 3 to be replaced with the character of the data obtained from item 7 will be transmitted to PC by GPIB CONTROLLER GPIB CONTROLLER will read the data in the output buffer of instrument A9 and stop reading until EOI signal is r 10 GPIB COl TROLLER will make the EOS End of String added ith the data obtained from item 3 to be replaced with the PIB CONTROLLER will read the data in the output buffer f instrument All and stop reading until EOI signal is Mo s 5
61. will excute Findlisten Procedure of IEEE488 regard to GPIB Address 1 and 0201 3 The results obtain from item 2 will be recorded to IDAT and transmitted in hex format back to PC Page 29 UD o The meaning of 0001 is Primary Address The meaning of 0101 is Primary Address The meaning of 0201 is Primary Address The meaning of 0301 is Primary Address The meaning of 0201 is Primary Address and Secondary Addres and Secondary Addres lt and Secondary Addres and Secondary Addres and Secondary Addres lt o od NwWNr o 5 4 2 Instruction Idn GPIB CONTROLLER identification data read and transmitted to PC Syntax Key Word Key Symbol IDN 2 Command IDN Key Symbol IDN dStr IDN Key Symbol IDN ze 1 dStr IDN dStr Lamda Exam idn Rp KI Work Office KI GC1201 10C4 EA60s00000100 E mail kitec phkaku com Website http www phkaku com Version 2 2 Description The KI GC1201 is MODEL NO for GPIB CONTROLLER The 10C4 is Vender ID and EA60 is Product ID for the interface USB of GPIB CONTROLLER Exam idn this is a message for good reading Rp this is a message for good reading Description 1 PC transmite instruction idn this is a message for good reading to GPIB CONTROLLER 2 GPIB CONTROLLER 4 i this is a message for good reading back to PC 5 4 3 Instruction Status Byte a The process ofIEEE488 Serial Poll executed to AAn signal
62. 0 hComm SEND 17 FORM DATA ASC CALC DATA SDAT r n RdDataStr The instruction of FORM DATA ASC CALC DATA SDAT will be transmitted to instrument Al7 through ki usb gpib controller after sub program execute completely and then the response will be read from instrument Al7 1 00489401832E 000 1 14720556199E 002 1 00375867860E 00 will be read and saved in RdDataStr The sub program is used for transmiting BLOCK DATA to instrument from communication port through GPIB CONTROLLER DataSrc Address of buffer is used to save the BLOCK DATA which will be outpput from the communication port Page 96 nBytesTransfer Number bytes of BLOCK DATA for transmition in DataSrc example 1000 it means that there are 1000 bytes in DataSrc to transmite to instrument through GPIB CONTROLLER Wait TicketTime To setup the additional delay time after the data are output from communication port each time time unit is 1 1000 seconds it is necessary for time to match the requirement for an interval of time between periods of instrument receiving data from GPIB CONTROLLER each time for example 50 it means 50 mili seconds DevAddress The value of instrument GPIB ADDRESS hComm he handle of communication port Open method HANDLE hComm CreateFile COM3 128000 N 8 1 GENERIC_READ GENERIC_WRITE 0 NULL OPEN EXISTING 0 NULL Close method CloseHandle hfile void BlockDataTrans
63. 0000E 003 0 00000000E 000 PGSM 2012 6 25 14 33 22 LL BAND SYST 003 0 00000 ALL STAT TRAF CALL STAT TRAF CELLI LEV SEL CALL STAT TRAF CELL LEV CALL STAT TRAF CELL1 37 9 91E37 9 CALL ORIG DONE CALL ORIG OPC CALL OP ALL STAT SYNC 003 8 00000 he command CALL STAT SYNC CALI and 0a NTROLLER The instruction of CALL S ROLLER read by GPIB CONTROLLER ROLLER will make he data obtained from and the EOS put in he center of a obtained ROLL ROLLER by GE ROLL Wi ained TROLL GPIB CONTRO TROLI he data obtained from item back to Freq AFG VOLT CAl 00E 000 91E37 CALL ST 00E 003 TAT SY he output buffer of hat t be replaced with the LER ion of CALL STAT SY buffer of LLER ake that t obtained he EOS placed wit 4 will b he output PIB CONTRO LER will m he data ti and l be re from item LER ion of CALL STAT SY B CONTROLLE he output T buffer of LLER LER will delete the from item 12 will he EOS End of from item 4 will be transmitted from item 7 will be e transmitted to PC B CONTROLLER D SYST DATE SYST UTC PC by GPI DATE SYST UTC syst tzon PGSM 2012 6 25 14 34 47 0 0 ER MODE CALL PAG STAT AT SYNC LEV CALL STAT SYNC LEV SEL 8 00000000E 003 L STAT
64. 01 gt FINDLISTEN 28 lt 28 002 gt SEND 28 SOUR POW LEV 11 SOUR POW LEV 1 lt 11 00 003 gt SEND 28 SOUR FREQ 11E6 SOUR FREQ 1 lt 11000000 0 004 gt SEND 28 IDN lt Rohde amp Schwarz SME03 833777 013 4 11 005 gt SEND 28 ESE ESR PRE SRE STB OPC lt 1 0 32 32 0 1 006 gt SPOLL 28 lt 00 007 gt SEND 28 SOUR POW LEV 15 SOUR POW LEV 1 lt 15 00 008 gt SEND 28 SOUR FREQ 25E6 SOUR FREQ 1 lt 25000000 0 009 gt SPOLL 28 CLS ESE 1 SRE 32 OPC lt 96 010 gt SPOLL 28 CLS ESE 1 SRE 32 lt 00 011 gt SPOLL 28 lt 00 012 gt SEND 28 SOUR POW LEV 18 SOUR POW LEV 1 lt 18 00 013 gt SEND 28 SOUR FREQ 18E6 SOUR FREQ 1 lt 18000000 0 014 gt SEND 28 CLS ESE 1 PRE 32 SRE 32 OPC ist lt 015 gt SEND 28 CLS ESE 1 PRE 32 SRE 32 ist lt 016 gt SEND 28 SOUR POW LEV 12 SOUR POW LEV 1 lt 31 017 gt SEND 28 SOUR FREQ 12E6 SOUR FREQ 1 lt 12 00 018 gt SEND 28 IST lt 12000000 0 019 gt PP 28 OPC lt 1 020 gt SEND 28 SOUR POW LEV 10 SOUR POW LEV 1 Page 84 lt 10 00 021 gt SEND 28 SOUR FREQ 50E6 SOUR FREO 1 lt 50000000 0 022 gt PP 28 CLS ESE 1 PRE 32 OPC 11 lt 01 023 gt PP 28 CLS ESE 1 PRE 32 11 lt 00 024 gt PP 28 CLS ESE 1 PRE 32 OPC 01 lt
65. 0240 int StopTest 0 StopCheck 0 static COMMTIMEOUTS commt imeouts COMMCONFIG cc COMSTAT comstat HANDLE hComm lt INVALID HANDLE VALUE const char Hex 16 lt MOSTA Ib Sn Org BI OVA Bin CE DU tE LE hs HMENU menupor tbaud menuport char param 256 define BUFSIZE 10240 HINSTANCE hInst DWORD Wait TicketTime 2000 const struct BTAB char str baud 56 2400 4800 6000 6912 7500 7680 8640 9000 9375 9600 10000 10800 Page 102 11520 12000 12500 12800 13824 14400 15000 15625 16000 17820 18000 18750 19200 21600 23040 24000 25000 28800 30000 31250 32000 34100 34560 36000 36864 37500 38400 43200 44300 46785 46900 48000 49400 50000 53600 57600 57700 60000 62500 64000 115200 128000 256000 SLU te RESULT CALLBACK GetProReg LPSTR LPSTR LPSTR LPSTR RESULT CALLBACK SetProReg LPSTR LPSTR LPSTR RESULT CALLBACK WindowsProc HWND UINT WPARAM LPARAM oid CALLBACK InitCommPort HWND char RESULT CALLBACK SelOutFile HWND PSTR CALLBACK WrToBusAndRdFrBus oops moi oes a DE al ZA HWND DWORD LONG HANDLE char char 5 LRESULT CALLBACK SetProReg LPSTR secstr LPSTR keystr LPSTR txtstr long lResult 0 HKEY hkGlobal 0 DWORD dwDispo
66. 1000 bytes in DataSrc to transmite to instrument through GPIB CONTROLLER Wait TicketTime To setup the additional delay time after the data are output from communication port each time time unit is 1 1000 seconds it is necessary for time to match the requirement for an interval of time between periods of instrument receiving data from GPIB CONTROLLER each time for example 50 it means 50 mili seconds DevAddress The value of instrument GPIB ADDRESS hComm the handle of communication port Open method HANDLE hComm CreateFile COM3 128000 N 8 1 GENERIC READIGENERIC WRITE 0 NULL OPEN EXISTING 0 NULL Close method CloseHandle hfile Page 98 void IEEEBDataTransfer HANDLE hComm char DataSrc int nBytesTransfer int Wait TicketTime char DevAddress HGLOBAL helobal LPSTR gbuf char codebuf 256 int i j glen DWORD nBytesWrite dwTime helobal GlobalAl loc GHND nBytesTransfer 240 gbuf LPSTR GlobalLock hglobal j l while 1 if j gt nBytesTransfer break j 10 glen 0 gbuf glent gbuf gl en 0x30 i i nBytesTrans fer while 1 gbuf glent i j 0x30 izi4j if j 1 break else j 10 memcpy gbuf DataSrc nBytesTrans fer gbuf glen glen nBytesTransfer glen for i 0 i 200 if glen i lt 200 1 1 nBytesWri tezwsprint f codebuf SEND d DevAddress memcpy codebuf nBytesWrite 1 nBytesWrite 1 memcpy co
67. 28 SOUR POW LEV 55 SOUR POW LEV 1 55 00 SEND 28 SOUR FREQ 55E6 SOUR FREQ 1 55000000 0 SEND 28 SOUR FREQ 99E6 SOUR FREQ 1 99000000 0 SEND 28 SOUR AM EXT COUP AC OPC 1 1 SEND 28 SOUR FREQ 100E6 SOUR FREQ 1 100000000 0 SEND 28 SOUR POW LEV 20 SOUR POW LEV 1 20 00 097 gt SEND 28 SOUR FREQ 200E6 SOUR POW LEV 10 SOUR FREO 1 lt 200000000 0 Page 88 GPIB UTILITY of GPIB CONTROLLER with KI GRUAO1 R2 001 gt Findlisten lt 24 25 26 27 002 gt Findlisten 24 25 26 27 lt ZZ18ZZ19ZZ1AZZ1B 003 gt PIO 26 27 FFOO lt 255 00 004 gt SEND 24 ABCDEFGHIJKLMNOPORSTUVWXYZ1234567890 lt ABCDEFGHIJKLMNOPORSTUVWXYZ1234567890 005 gt SEND 25 ABCDEFGHIJKLMNOPORSTUVWXYZ1234567890 lt KBCDEFGHIJKLMNOPORSTUVWXYZ1234567890 006 gt SEND 26 FF lt F 007 gt SEND 27 00 lt 0 008 gt SEND 25 1234567890 lt 009 gt SPOLL 25 lt 80 010 gt SEND 25 lt 1234567890 011 gt SEND 24 1234567890 012 gt SPOLL 24 lt 80 013 gt SEND 24 lt 1234567890 014 gt SEND 24 ABCDEFGHIJKLMNOPORSTUVWXYZ1234567890 lt ABCDEFGHI JKLMNOPQRSTUVWXYZ1 234567890 015 gt SEND 25 1234567890 016 gt SPOLL 25 lt 80 017 gt SEND 25 lt 1234567890 018 gt PIO 27 26 OOFF lt 00 255 019 gt SEND 24 ABCDEFGHIJKLMNOPORSTUVWXYZ1234567890 lt ABCDEFGHIJKLMNOPQRSTUVWXYZ1 234567890 020 gt SEND 25
68. 3 Size of input buffer 748 Communication procotol Handshake none Baudrate 2400 9600 default 14400 19200 28800 38400 57600 115200 128000 Parity none Bit No 8 Stop Bit No 1 Serial RS232 protocol for the Input Interface of USB COMn 128000 n 8 1 and None Handshake Page 13 ee mm Boen rere 0 1524 54 72506 m ee 0000009990008 a AAN meeececesecese and RS232 PORT and Digital stere ER noooooooovo oooooooono s bo 3 3 ww ggcio Rr ece oss wu g0SZ2 S Z06 1 59 67418 11 57855 MM a 7mm The Electrical specification of KI GX1201 Power voltage Input from External Power voltage from DC 6 8V to DC 7 5V Power current from DC 200 mA to DC 250 mA Input Interface RS232 Output Interface IEEE488 GPIB CONTROLLER GPIB SOCKET of type male Support to GPIB CONTROLLER Function SHI AHI L4 T6 Cl C3 C26 Unsupport to GPIB CONTROLLER Message TCT Usable GPIB Address for external instrument from 1 to 30 Serial RS232 protocol for the Input Interface of RS232 COMn 128000 n 8 1 and None Handshake Page 14 EKI 2 55 28 meeeee 57 34914 46 68291 mm 65 Tam Gens 68 to 7 5 Vdc Center RS232 to GPIB Controller KI GX1 201 EB conn 4 46 82338 mm 55mm The Electrical specification of KI GX3201 Power voltage Input from External er Power voltage from DC 6 8V to DC 7 5V Power current from DC 200 mA to DC
69. 3 GPIB CONTROLLER will read the data in output buffer of instrument A7 and transform the data into Hex format which will be transmitted back to PC Exam Send 4 7 IDN READ 7 4 Rp Agilent Technologies 34410A MY47013754 2 35 2 35 0 09 46 09 HEWLETTPACKARD 6611C 0 A 01 03 Description 1 PC give the command Send 4 7 IDN READ 7 4 and Od and Oa to GPIB CONTROLLER 2 The Instruction of IDN will be transmitted to instrument A4 and A7 by GPIB CONTROLLER 3 GPIB CONTROLLER will read the data in output buffer of instrument A7 and transmite the data back to PC 4 GPIB CONTROLLER will read the data in output buffer of instrument A4 and transmite the data back to PC Exam SEND 7 TRIG SOUR BUS Send 7 INIT MsgTRG 7 Send 7 FEIC Read 7 Page 68 Rp 1 38483849E 04 Description 1 4 5 PC give the command SEND 7 TRIG SOUR BUS Send 7 INIT MseTRG 7 Send 7 FETC Read 7 and Od and 0a o GPIB CONTROLLER The instruction of TRIG SOUR BUS will be transmitted to instrument A7 by GPIB CONTROLLER The instruction of INIT will be transmitted to instrument A7 by GPIB CONTROLLER The Message of IEEE488 1 GET will be transmitted to instrument A7 by GPIB CONTROLLER GPIB CONTROLLER will read the data in output buffer of instrument A7 and transmite the data back to PC Exam SEND 9 DISP LABL RAIEEEB
70. 3C Agilent Technologies 7 HEWLETT PACKARD 8753D Agilent Technologies 8 HEWLETT PACKARD 54520A Agilent Technologies 9 E4418A Agilent Technologies 10 HEWLETT PACKARD 54820A Agilent Technologies 11 HP8591EM Agilent Technologies 12 33220A Agilent Technologies 13 E5515C Agilent Technologies 14 HP81101A Agilent Technologies 15 HP6623A Agilent Technologies 16 Hewlett Packard E4402B Agilent Technologies 17 HEWLETT PACKARD E3632A Agilent Technologies 18 HEWLETT PACKARD 34401A Agilent Technologies 19 HEWLETT PACKARD 83620A Agilent Technologies 20 HEWLETT PACKARD 8720D Agilent Technologies 21 HEWLETT PACKARD 8648D Agilent Technologies 22 HEWLETT PACKARD E3631A Agilent Technologies 23 R3131 ADVANTEST 24 R3162 ADVANTEST 25 R3273 ADVANTEST 26 MT9810A ANRITSU 27 MODEL 2000 KEITHLEY INSTRUMENTS INC 28 2031 MARCONI INSTRUMENTS 29 RVD ROHDE amp SCHWARZ 30 SMEO3 ROHDE amp SCHWARZ 31 SMTO6 ROHDE amp SCHWARZ 32 TDS 220 TEKTRONIX 33 AFG3102 TEKTRONIX 34 PPT 1830 GOOD WILL 35 4235 WAYNE KERR 5 2 Procotol rule for command a Each of instruments connected to the same GPIB CONTROLLER must be configured to have different addresses for GPIB of instrument b The parameter of each instruction must be less than 228 bytes c The length of each Command must be less than 1024 bytes d The parameter pieces of a Command must not be more than 40 pieces e The maximum length of programming for iaB is 10238 bytes f The communication p
71. 4 ReadFile hComm rbuf comstat cbInQue amp nBytesRead NULL amp amp nBy tesRead rbu wsp for if me wsprintf f nBytesRead 0 n nBytesRead rintf buf s rbuf i 0 i i gt nBytesRead break f buf i r amp amp buf i n RdDataStr strlen RdDataStr ge buf i nReceiveH buf i 1 r amp amp buf i n M goto COMMANDOK else if buf i n goto COMMANDOK Jeon dwTime GetTickCount Nait_TicketTime inue COMMANDOK if S opTest StopTes t 0 Pos Message hWnd WM_SYSCOMMAND SC_CLOSE 0 return 0 return nReceive if StopTest StopTest 0 Pos tMessage hWnd WM_SYSCOMMAND SC_CLOSE 0 return 0 return 0 Page 95 The application example for above sub program Exam SEND 19 IDN Rp ADVANTEST R3131 22286039 B02 WriteAndReadBus 1000 hComm SEND 19 IDN r n RdDataStr ADVANTEST R3131 22286039 B02 The instruction of SEND 19 IDN will be transmitted to instrument A19 through ki usb gpib controller after sub program execute completely and then the response from instrument A19 ADVANTEST R3131 22286039 B02 will be read and saved in RdDataStr Exam SEND 17 FORM DATA ASC CALC1 DATA SDAT Rp 1 00489401832E 000 1 14720556199E 002 1 00375867860E 00 WriteAndReadBus 100
72. 4 bytes of Block Data Exam TestSys Rp 04 0 07 0 09 0 Description 0 is sent from A4 A7 and A9 to PC it is meaning that instrument A4 A7 and A9 is ok Exam TestSys Rp 043007300930 Description The character of 30 is sent from A4 A7 and A9 to PC it is meaning that instrument A4 A7 and A9 is ok Hex 30 Binary 0 1 PC give the command TestSys and Od and 0a to GPIB CONTROLLER The instruction of tst will be transmitted to instrument A4 A7 and A9 by GPIB CONTROLLER GPIB CONTROLLER will read the data in the output buffer of instrument A4 and stop reading until EOI signal is received The the data obtained from item 3 will be interpreted to Hex Format and then transmitted to PC by GPIB CONTROLLER 5 GPIB CONTROLLER will read the data in the output buffer o f T H G o I T t f instrument A7 and stop reading until EOI signal is eceived he the data obtained from item 5 will be interpreted to ex Format and then transmitted to PC by GPIB CONTROLLER PIB CONTROLLER will read the data in the output buffer f instrument A9 and stop reading until EOI signal is received he the data obtained from item 7 will be interpreted to ex Format added with characters of Od 0a at the rear and then ransmitted to PC by GPIB CONTROLLER Examples of Model HP81101A Exam SEND 10 IDN Rp HEWLETT PACKARD HP81101A DE41B01746 REV 01 11 00 Exam SEND 10 SYST PRES SYST VERS SYST WARN COUN
73. 40 byte or more will be transmitted to the instruction A4 hrough GPIB CONTROLLER by PC HEWLETT PACKARD 33220A Function Generator work described as below SENDI 4 DATA DAC VOLATILE 2047 1536 1024 512 0 512 1536 2047 and Od and 0a to GPIB CONTROLLER 2 The instruction of DATA DAC VOLATILE 2047 1536 1024 512 0 512 1536 2047 3 PC give command will be transmitted to instrument A4 by GPIB CONTROLLER SENDI 4 0 512 1536 2047 512 1536 2047 1047 1236 1124 402 0 and 0d and 4 Data 0 512 0a to GPIB CONTROLLE 1536 2047 512 1536 2047 1047 1236 1124 402 0 will be transmitted to instrument A4 by GPIB CONTROLLER 5 PC give command SENDI 4 51 and Od and to GPIB CONTROLLER 6 Data 512 11 2 1136 1547 0 712 1236 1447 112 Oa 36 1547 0 712 1236 1447 112 will be transmitted to instrument A4 by GPIB CONTROLLER 7 PC give command SEND 4 1236 1047 947 136 1624 4627 312 447 192 1536 1147 and Od and 8 Data 1236 1 will be added 0a to GPIB CONTROLLER 047 947 136 1624 4627 312 447 192 1536 1147 with a signal of EOI by GPIB CONTROLLER 9 Data and EOI obtained from item 8 will be transmitted to instrument ith Key Symbol re not wholly Qe ag nd instrumen ready JP P will mean PIB CONTROLLE will be automat instrument A4 and instrumen Q Exam A4 by GPIB CONTROLLE
74. 41433F Rp MEAS AC MEAS AC MEAS AC MEAS AC MEAS AC Exam ArySet 08000000313233343536373854 ArySet ArySet_ Rp 12345678 8 5 4 9 Instruction Default Terminator Configuration SetPMT 1 default value of Program Message Terminator PMT configured 2 default value of Program Message Terminator PMT queried 3 default value of Program Message Terminator PMT both configured and queried SetRDT 1 default value of Response Data Terminator RDT configured 2 default value of Response Data Terminator RDT queried 3 default value of Response Data Terminator RDT both configured and queried Syntax Key Word Key Symbol Parameter Parameter Set PMT EOC dStr SetRDT EOC dStr Exam SetPMT Od0a Description PC configure the PMT default value of GPIB CONTROLLER to 0d0a Exam SetPMT 0a Rp 0A Description 1 PC configure the PMT default value of GPIB CONTROLLER to 0a 2 The PMT default value of GPIB CONTROLLER is read back by PC Exam Se t PMT Description PC configure the PMT default value of GPIB CONTROLLER Page 72 to DABE DABE is default Power On PMT value by PC Exam SetPMT Rp Description The response to PC from GPIB CONTROLLER is null beca DABE which is default PMT value for powered On of GP Exam SetRDT 0a Description PC configure the RDT default value of GPIB CONTROLLE to 0a Exam SetRDT Od Exam SetRDT Od0
75. 46 8233B mm ITI A m Roi socket male e OOOOOOOOOOOH Z mosocooooo NHanosunene gt USB to GPIB Controller converter mj po eeeeeoece seeeessese gt x 2 i is z wile KI 6B1201 Ed 2 i KI ork Office www phkaku con 3 De 3 len jez 3 si EIN 4 a z o e S Sg Meeeseses Ka 3 EEn JES gt 7 D D sv G 3 Had een g 3 e r S d eeooeonm 3 55 97074 23 41169 mm The Electrical specification of KI GB1201X Power voltage DC 5V Using the power of USB PORT Power current DC 200 mA typical and DC 300 mA Max Input Interface USB 2 0 Output Interface IEBE488 GPIB CONTROLLER socket male and the Digital Input and Output port Support to GPIB CONTROLLER Function SHI AH LA T6 Cl C3 C26 Unsupport to GPIB CONTROLLER Message TCT Usable GPIB Address for external instrument from 1 to 29 Non GPIB CONTROLLER Function for gpib address 30 SH AH TE LE One 2 bit Digital Output Ports Control pin It is the RTS and DTR pin of the Input Interface of USB Output current 3 mA Max Every Pin of Portx Output voltage 3 3 V No Load the electrical impedance is 1K ohm Note Each output of these two pin is linked through a 1K ohm resistor One 4 bit Digital Input Ports Control pin Two bits is the RI and DSR pin for the Input Interface of USB and the other two bits is the GPIB primary address 30 with secondary address 6 and 7 Iutput voltage TT
76. 8123E 03 4 42670484E 03 3 71256154E Description HSE OO OOHOH yg 1 PC give the command SEND 7 CONF VOLT DC 10 0 1 TRIG COUN 500 INIT FETC and 0d and 0a to GPIB CONTROLLER he instruction of CONF VOLT DC 10 0 1 TRIG COUN 500 will be ransmitted to A7 by GPIB CONTROLLER he instruction of INIT will be transmitted to A7 by PIB CONTROLLER he instruction of FETC will be transmitted to A7 by PIB CONTROLLER PIB CONTROLLER will read the data in the output buffer f instrument A7 and stop reading until EOI signal is received PIB CONTROLLER will delete the EOS End of String added ith the data obtained from item 5 he data left from item 6 will be added with Od 0a at the rear and then transmitted back to PC by GPIB CONTROLLER 500 Readings total 16001 bytes Exam Send 7 CONF VOLT DC TRIG SOUR BUS INIT MsgTRG 7 Send 7 FETC Rp 2D322E3131313037383236452D30340A Description 1 PC give the command and Od and 0a to GPIB CONTROLLER by PC Gi T GE T t T Send 7 CONF VOLT DC TRIG SOUR BUS INIT MsgTRG 7 Send 7 FETC PIB CONTROLLER will transmite the instruction of CONF VOLT DC to instrument A7 PIB CONTROLLER will transmite the instruction of TRIG SOUR BUS to instrument A7 he instruction INIT will be transmitted to instrument A7 by PIB CONTROLLER he signal of IEEE488 1 Message GET will be transmitted o instrument A7
77. 9909 KI Work Office KA OBRO A MALE 000000090008 CEATA The Electrical specification of 55 97074 23 41169 mm KI GC3201 Power voltage DC 5V Using the power of USB PORT Power current DC 200 mA typical DC 300 mA Max Input Interface USB 2 0 Output Interface IEEE488 GPIB CONTROLLER socket male Page 12 and RS232 and Digital Output port Support to GPIB CONTROLLER Function SHI AHI LA T6 Cl C3 C26 Unsupport to GPIB CONTROLLER Message TCT Usable GPIB Address for external instrument from 1 to 29 Non GPIB CONTROLLER Function for gpib address 30 SH AH TE LE One 2 bit Digital Output Port Control pin It is the RTS and DIR pin of the Input Interface of USB Output current 3 mA Max Every Pin of Portx Output voltage 3 3 V No Load the electrical impedance is 1K ohm Note Each output of these two pin is linked through a 1K ohm resistor One 2 bit Digital Input Port Control pin It is the RI and DSR pin of the Input Interface of USB lutput voltage TTL Note Each output of these two pin is linked through a 1K ohm resistor Two 8 bit Digital Output Port with the function of latch Port address of PORTx and y Address primary 30 secondary 4 and 5 Output current 3 mA Max Every Pin of Portx Output voltage zv Two RS232 Port Drived by IC of st3232ctr Port address of PORTa and b Address primary 30 secondary 2 and 3 Method of connector DTE RXD Pin2 TXD Pin
78. Address The value of instrument GPIB ADDRESS hComm the handle of communication port Open method HANDLE hComm CreateFile COM3 128000 N 8 1 GENERIC_READ GENERIC_WRITE 0 NULL OPEN EXISTING 0 NULL Close method CloseHandle hfile void IEEEBHexDataTransfer HANDLE hComm char DataSrc int nBytesTransfer int Wait TicketTime char DevAddress HGLOBAL hglobal LPSTR gbuf char codebuf 256 int i j glen DWORD nBytesWrite dwTime Page 100 Char Hex 11260 12 ON BI TAM B CI ZB EVE helobal GlobalAl loc GHND nBytesTransfer 2 240 gbuf LPSTR GlobalLock helobal izl while l if j gt nBytesTrans fer break j 10 glen 0 gbuf glent J gbuf gl ent 0x30 i i nBytesTrans fer while 1 gbuf glent i j 0x30 izi j if j 1 break else j 10 for iz0 nBytesTransfer gt i i 2 gbuf i Hex DataSrc i 2 16 sbuf i41 lt Hex DataSrc i 2 16 gbuf glen glen nBytesTransfer 2 glen for i 0 i 200 if glen i lt 200 if i nBytesWrite wsprint f codebuf SENDA d DevAddress memcpy codebuf nBytesWrite 1 nBytesWrite 1 memcpy codebuf nBytesWrite gbuf glen i nBytesWrite glen i memcpy codebuf nBytesWrite r n 3 nBytesWrite 3 else nBytesWri teswsprintf codebuf SENDI d DevAddress memcpy codebuf nBytesWrite 1 nBytesWrite 1 memcpy codebuf nBytesWrite gbuf 200 nBytesWr i te 200 gbuf
79. B CONTROLLER 5 the data obtained from instruments AAn for taking action Page 32 Exam PP 28 ESE 1 P Rp 00 Description iz va 3 4 pit Exam PP 28 CLS ESE 1 P Rp 1 Descrip 1 VA 3 Desc 1 2 3 4 Exam PP Rp 10 Descr 1 PC give GPIB CO 2 PPR5 sense 0 The IEEE488 by PC t The data obtained from instruments AAn for taking action 3 PC give ins The The of item 4 will be transmitted back to PC through GPIB CONTROLLER because ist value is 0 and PPR3 is sense 0 the data obtained from item 4 will be 04 PC give instruction ESE GPIB CONTROLLER Instrument A28 PPR3 sense will 13 throug ruction CLS to AAn The function of IEEE488 Parellel by PC through GPIB CONTROLLER The data obtained from ins will be transmitted back because ist value is 0 obtained from item 4 wil RE 32 be 0 ion PC give instruc GPIB CONTROLLER Instrument A28 PPR5 sense PC give instruction OPC to AAn function of IEEE488 Parellel by PC through GPIB CONTROLLER data obtained from instrumen of item 4 will be transmit because ist value is 1 ob ion ESE and PP RE 3215 SE ription PC give instruction Instrument A28 will be configur PPR5 sense 1 15 through GPIB COl The function of IEEE488 Parellel by PC through GPIB CONTROLLER The data obtained from instrument of ite
80. CONTROLLER 2 the data obtained from instruments A7 A9 A6 A4 and A2 for aking ation of item l will be transmitted back to PC hrough GPIB CONTROLLER Exam SPOLLA 7 9 6 4 Rp 20410048 Description 1 The function of IEEE488 Serial Polled to A7 A9 A6 A4 and A2 disregarded SRO signal will be executed by PC through GPIB CONTROLLER 2 The data obtained from instruments A7 A9 A6 A4 and A2 for execution of item l will be transmitted back to PC with Hex format through GPIB CONTROLLER Exam SPOLL Rp 07 32 09 161 Description 1 The function of IEEE488 Serial Polled to AAn will be executed regarded SRO signal by PC through GPIB CONTROLLER 2 The data obtained from instruments AAn for execution of item 1 will be transmitted back to PC through GPIB CONTROLLER Exam SPOLL Rp 0400072009A1 Description 1 The function of IEEE488 Serial Polled to AAn will be executed by PC disregarded SRO signal through GPIB CONTROLLER 2 The data obtained from instruments AAn for execution of item l will be transmitted back to PC with Hex format through GPIB CONTROLLER Exam PP 28 ESE 1 PRE 32 03 PP CLS Rp 04 Description 1 PC give instruction ESE 1 PRE 32 to A28 through GPIB CONTROLLER 2 Instrument A28 will be configured to the mode of PPR3 sense 0 03 through GPIB CONTROLLER by PC 3 PC give instruction CLS to AAn through GPIB CONTROLLER 4 The function of IEEE488 Parellel Polled will be executed by PC through GPI
81. CONTROLLER Exam MssREN 9 7 4 Description PC send IEEE488 1 REN to A9 A7 and A4 through GPIB CONTROLLER Exam Ms gREN Description PC send IEEE488 1 LLO to AAn through GPIB CONTROLLER Exam Ms gRE Description PC send IEEE488 1 REN to AAn through GPIB CONTROLLER Exam MsgTRG 9 7 Description PC send IEEE488 1 GET to A9 and A7 through GPIB CONTROLLER Exam SEND 7 9 CONF VOLT DC TRIG SOUR BUS INIT MsgTRG 7 9 Send 7 9 FETC Rp 1 84852040E 04 1 84804040E 04 Description a Instrument A7 and A9 are AGILENT 34410A b Instrument A7 and A9 are configured as state of DC VOLTAGE MEASUREMENT by the instrction of CONF VOLT DC c The TRIGGER SOURCE of Instrument A7 and A9 are configured as the signal of GPIB BUS d Instrument A7 and A9 are configured as State of waiting for trig by he instrction of INIT e GPIB CONTROLLER will transmite signal of trig to instrument A7 and A9 at the same time when receiving instruction of MsgTRG 7 1l from PC Once A7 receive the signal of trig Analog to Digital Converting of A7 will be executed and data obtained from Analog to Digital Converting will be saved to the output buffer of A7 Once A9 receive the signal of trig Analog to Digital Converting of A9 will be executed and data obtained from Analog to Digital Converting will be saved to the output buffer of 49 f The instruction of Send 7 11 FETC will make GPIB CONTROLLER do actions 1 Read data from the output buffer of A7 and s
82. D1 gI tem hWnd ID EDITBOX EM SETSEL nlen nlen SendMessage GetDlgItem hWnd ID_EDITBOX EM_REPLACESEL 0 LPARAM inbuf 5 PRA NE AAR o oe le oe EEEE oe oe oe se SEJE de oe oe oe se se Je de oe oe oe oe oe SE ee ae ae oe oe oe se SE SEE oe oe OCC TK oko according to the regulation of Hp662xa current calibration in Hp662xa user manual pc communicate with Hp662xa and 34410a through lt b gt ki usb gpib controller lt b gt which make Hp662xa and 34410a do actions for requirement 2A PR oe oe oe IE RER ak oe oe oe oo SEJE Je oe oe oe oe se oe JE Je ene oe oe oe se ee Je sede oe oe se SE SE Je de oe oe ae eek sprintf inbuf SEND d M ILO d SEND d MEAS ADDRESS662XA channel ADDRESS34410A WrToBusAndRdFrBus hWnd Wait_TicketTime ID_EDITBOX hComm inbuf outbuf Vol tLowzatof outbuf sprintf inbuf Gs r n out buf nlen SendMessage GetD1 gItem hWnd ID EDITBOX WM_GETTEXTLENGTH 0 0 SendMessage Page 111 GetD1 gI tem hWnd ID EDITBOX EM SETSEL nlen nlen SendMessage GetDlgItem hWnd ID EDITBOX EM REPLACESEL 0 LPARAM inbuf sprintf inbuf SEND d IHI d SEND d MEAS r n ADDRESS662XA channel ADDRESS34410A nlen SendMessage GetD1 gItem hWnd ID_EDITBOX WM_GETTEXTLENGTH 0 0 SendMessage GetD1 gI tem hWnd ID EDITBOX EM SETSEL nlen nlen SendMessage GetDlgIte
83. E488 Serial Poll executed to AAn through the SPOLL GPIB CONTROLLER signal SRO is regarded result read from AAn will be sent to PC he process of IEEE488 Serial Poll executed to A2 and A7 from PC SPOLL 2 7 hrough the GPIB CONTROLLER signal SRO is disregarded result read From A2 and A7 will be sent to PC The process of IEEE488 Serial Poll executed to AAn from PC through the PIB CONTROLLER signal SRO is regarded result read from AAn will be ent to PC The process of IEEE488 Serial Poll executed to A2 and A7 from PC SPOLL 2 7 hrough the GPIB CONTROLLER signal SRO is regarded result read from A2 and A7 will be sent to PC The process of IEEE488 Serial Poll executed to A2 and A7 from PC SPOLL 2 7 hrough GPIB CONTROLLER signal SRO is disregarded result read from A2 and A7 will be sent to PC with Hex format The process of IEEE488 Serial Poll executed to AAn from PC through the n SE Her OH SPOLL GPIB CONTROLLER signal SRQ is disregarded result read from AAn will be sent to PC with Hex forma PP Signal of IEEE488 PPU message sent to AAn from PC through the GPIB CONTROLLER configuration of PP within AAn will be deleted ignal of IEEE488 PPD message sent to A6 and A5 from PC through the PIB CONTROLLER configuration of PP for A6 and A5 will be deleted he signal of IEEE488 PPC and PPE message is sent to A6 A3 AS and A2 from PC through the GPIB CONTROLLER
84. EEB An dSO dSn IEEEB An dSO dSn IEEEB gt An dSO dSn IEEEB lt An dSO dSn TEEEB An TEEEB lt An TransCeiv AAn dSO dSn Page 26 ARBITRARY BLEN An ARBITRARY BLEN An ARBITRARY BLEN An l l ARBITRARY BLEN An dSO dSn l l AgiETB An dSO dSn AgiETB An dSO dSn AgiETB 4 An dSO dSn AgiETBA An dSO dSn AgiETB An dSO dSn AgiETB lt An IEEEB An dSO dSn TEEEB An dSO dSn IEEEB 4 An dSO dSn IEEEB _ An dS0 dSn IEEEB An dSO dSn TEEEB lt An dS0 dSn Send dSO dSn Send gt dSO dSn Sendi dS0 dSn Send AAn Send dS0 dSn TransCeiv AAn dSO dSn TestSys TransCeiv AAn dSO dSn TransCeiv AAn dSO dSn TransCeiv AAn dSO dSn TransCeiv AAn dSO dSn TransCeiv AAn dSO dSn TransCeiv gt AAn dSO dSn TransCeiv gt AAn dSO dSn TransCeiv AAn dSO dSn Instruction TransCeiv AAn dSO dSn TransCeiv AAn dSO dSn TransCeiv AAn dSO dSn Read AAn dSO dSn Read AAn Read AAn dSO dSn Read AAn Read AAn dSO dSn Read AAn Read AAn dSO dSn Read AAn Read AAn dSO dSn Read AAn Read AAn dSO dSn Read AAn Read AAn dSO dSn Read AAn I Read AAn dSO dSn Read AAn Read AAn dSO dSn Read AAn Read AAn dSO dSn Read AAn Read dSO dSn Read Read dSO dSn Read Read dSO dSn Read Read dSO dSn Read Read dSO
85. EQ 500 FM DEV 250 DATA CAT 0a ER he instruction of FM INT FUNC SIN will be transmitted to Al4 by PIB CONTROLLER he instruction of FM INT FREQ 500 will be transmitted to A14 by D ER Tj DEV 250 will be transmitted to Al4 by he output buffer of instrument Al will IB CONTROLLER B CONTROLLER will delete the EOS End of String added obtained from item 8 from item 9 will be added with Od 0a at the rear smitted back to PC by GPIB CONTROLLER Exam SEND 1 DATA DAC VOLATILE 2047 1536 1024 512 0 512 1536 2047 Exam SEND 1 DATA DAC VOLATILE 216 O7FFO600040002000000FEOOFAOOF801 Exam SEND lt 1 DISP TEXT 33120a Func Gen SYSTem BEEPer Exam SEND FUNC USER SWE TIME SWE STAT TRIG SOUR SYST ERR Rp EXP_RISE 1 Ja SEJI 0 IMM 0 No error Exam Transmit 40 or more value o A4 as below InstructiOn o f ne 33220a SENDI 4 DATA DAC VOLATILE 2047 1536 1024 512 0 512 1536 2047 0 512 0 SENDI 4 1536 2047 512 1536 2047 1047 1236 1124 402 0 512 1136 1547 0 SEND 4 712 1236 1447 112 1236 1047 947 136 1624 462 7 312 447192 0 Description Data of 40 byte or more will be transmitted to the instrument A4 through GPIB CONTROLLER by PC instruction of HEWLETT PACKARD 33220A Function Generator The process of work described as below 1 PC give the Command and Od and SENDI 4 DATA DAC
86. EWLETT PACKARD 6611C 0 A 01 03 015 gt Send 4 idn SEND 4 lt HEWLETT PACKARD 6611C 0 A 01 03 Page 92 Sample APP for the GPIB application of GPIB CONTROLLER pede Sub program is used for the data from the output of communication port these data will be transmitted to instrument through GPIB CONTROLLER in the same way the text data in communication port responded from instrument will be read through GPIB CONTROLLER and added with characters of 0d 0a in the rear hWnd The handle of main window WrDataStr Address of buffer is used to save the data which will be outpput from the communication port Wait_TicketTime The time setup to read the input data continuously from communication port unit is 1 1000 second for example 3000 waiting for data over 3 second it mean that bus is error and the procedure for WriteAndReadBus will be withdrawn RdDataStr Address of buffer is used to save the data which are received from communication port return number bytes of data received from communication port eeen int CALLBACK WriteAndReadBus DWORD Wait TicketTime HANDLE hComm char WrDataStr char RdDataStr MSG Message int i n nReceive char buf 1024 rbuf 1024 DWORD dwTime nBytesRead PEREPERE oe oe oe OK oe A ode de oe ode ode oe oe oe oe ode o A oe IR OR OK o OK PC transmite the contents of WrDataStr to instrumene 34410a through GPIB CONTROLLER FR FR IR 2 REIHE I A RE I RI I FENERE REE
87. Findlisten Procedure of IEEE488 regard to GPIB Address 7 4 6 and 9 3 The results obtain from item 2 will be recorded to IDAT and transmitted back to PC Exam Findlisten Rp 0001 0101 0201 0301 Description 1 PC will transmite instruction FindListen to GPIB CONTROLLER 2 GPIB CONTROLLER will excute Findlisten Procedure of IEEE488 regard to GPIB Address 1 to 30 3 The results 0001 0101 0201 0301 obtain from item 2 will be recorded to IDAT and transmitted back to PC Exam Findlisten Exam Findlisten 1 0201 The meaning of 0001 is Primary Address The meaning of 0101 is Primary Address The meaning of 0201 is Primary Address The meaning of 0301 is Primary Address and Secondary Addres and Secondary Addres and Secondary Addres and Secondary Addres IH See ee IH Rp zz04zz07zz09 Description 1 PC will transmite instruction FindListen to GPIB CONTROLLER 2 GPIB CONTROLLER will excute Findlisten Procedure of IEEE488 regard to GPIB Address 1 to 30 3 The results obtain from item 2 will be recorded to IDAT and transmitted in hex format back to PC The meaning of zz04 is Primary Address lt 4 and no Secondary Addres The meaning of zz07 is Primary Address 7 and no Secondary Addres The meaning of zz09 is Primary Address 9 and no Secondary Addres Rp 00010101020103010201 Description 1 PC will transmite instruction Findlisten 1 0201 to GPIB CONTROLLER 2 GPIB CONTROLLER
88. GPIB CONTROLLER by PC The number bytes of data read will be detected by the GPIB CONTROLLER according to he block head of data automatically Exam AgiETB 16 FORMI OUTPDATA Rp A Bibi re EE ed NE dies Buses Kids Iris X Be Description PC give the command AgiETB 16 FORML OUTPDATA and Od and 0a to GPIB CONTROLLER 2 The instruction of FORMI will be transmitted to Al6 by GPIB CONTROLLER Page 43 3 The instruction of OUTPDATA will be transmitted to Al6 by GPIB CONTROLLER 4 GPIB CONTROLLER will read the data in the output buffer of instrument Al6 and stop reading until EOI signal is received 5 The data of 1210 Byte obtained from item 4 will be ransmitted to PC by GPIB CONTROLLER ARBITRARY a Parameter dSO dSn in the instruction sent to An through GPIB CONTROLLER by PC b The result of any format of data read from An will be sent to PC number of reading data will be decided by Parameter BLEN c in various format of data Parameter BLEN is able to decide on reading data from one or more times to complete Exam ARBITRARY 1024 16 FORMI OUTPDATA Rp 4A p P EE OE ARENA Pdre Names ne n Description 1 PC give the command ARBITRARY 1024 16 FORMI OUTPDATA and Od and 0a to GPIB CONTROLLER 2 The instruction of FORM3 will be transmitted to Al6 by GPIB CONTROLLER 3 The instruction of OUTPDATA will be
89. HANDLE hComm LONG ID EDITBOX int i nlen char buf 256 inbuf 256 outbuf 256 DWORD dwTime nBytesWrite char cpybuf 1024 float VoltLow VoltHigh Ini tCommPort hWnd param SetWindowText GetDlgItem hWnd IDC_EDIT1 Updat eWindow GetD1 gI t em hWnd IDC_EDIT1 PREME A AR oe oe A BH Edo oe oe oe oe oe SE 2 oe oe AEE ae ae oe oe oe ACE ae ae oe oe ACCC A oe oe oe k Ekk ok configuration made as below HP662xa configured to MODI 34410a configured to volt dc auto range drikka sprintf inbuf SEND d CMOD 1 SEND d V conf volt de auto r n ADDRESS662XA ADDRESS34410A X nlen SendMessage GetD1 gIt em hWnd ID_EDITBOX WM_GETTEXTLENGTH 0 0 SendMessage GetDlgItem hWnd ID EDITBOX EM SETSEL 0 nlen J SendMessage GetD1 gI t em hWnd ID EDITBOX EM_REPLACESEL 0 LPARAM inbuf WriteFile Page 110 hComm inbuf strlen inbuf amp nBytesWrite NULL pees the contents of data displayed in title bar of main window are the data sent from pc to Hp662xa and 34410a through lt b gt ki usb gpib controller lt b gt 2A PR FR A oe oe SEJE oe oe oe oe oo SEJE A oe oe oe oe se CA Je de oe oe oe se se oe Je a 2 oe oe oe EEE EREEREER EEEk sprintf inbuf SEND d M ILO d SEND d MEAS r n ADDRESS662XA channel ADDRESS34410A nlen SendMessage GetD1 gItem hWnd ID_EDITBOX WM_GETTEXTLENGTH 0 0 SendMessage Get
90. L Note Each output of these four pin is linked through a IK ohm resistor Two 8 bit Digital Output Port with the function of latch Port address of PORTx and PORTy Address primary 30 secondary 1 and 4 Page 10 Output current 3 mA Max Every Pin of Porta and Portb Output voltage IN One 8 bit TIL Digital 1 O port Port address of Portz Address primary 30 secondary 5 Output Voltage 5 V Max Note This multiple function port can also be customized as the SPI and I2C controller of the ADC DAC and EEPROM chip and have the GPIB address with primary 30 and secondary from 10 to 30 based on the type of chip for example Address primary 30 and secondary 10 will be configured as AD5302ARMZ Address primary 30 and secondary 11 will be configured as AD5304BRM eter Serial RS232 protocol for the Input Interface of USB COMn 128000 n 8 1 and None Handshake s 55 lam 045 82338 mm 000000000000 meeeeseseseee Hosoososoco USB to GPIB Port and Digital Input Output and VO Port KI GB1201 KI GB1201X SOSSSSSOSS 99999999 uwf cezez c eeazvov 00 WW 60LO9 UU 960 65 UW 6799 9 H6bCLS ww zegsric cggegiz e PE The Electrical specification of KI GB1201R Power voltage DC SV Using the power of USB PORT Power current DC 200 mA typical and DC 300 mA Max Input Interface USB 2 0 Output Interface IEEE488 GPIB CONTROLLER socket male and RS232 Port and Digital Output and Input Control pin
91. LT AC will be transmitted to instrument A7 by GPIB CONTROLLER 3 GPIB CONTROLLER will read the data in output buffer of instrument A7 and stop reading until EOI signal is received by GPIB CONTROLLER 4 The data obtained from item 3 above mentioned will be interpreted to Hex format and added with Od 0a at the rear and then transmitted back to PC by GPIB CONTROLLER J Key Symbol SEND added with KeySymbol Exam Send MEAS VOLT AC Rp 1 86898354E 03 description 1 PC transmite command Send 7 MEAS VOLT AC Ja 0d Je 0a to GPIB CONTROLLER 2 GPIB CONTROLLER transmiteinstruction MEAS VOLT AC to instrument A7 3 GPIB CONTROLLER read data from the output buffer of A7 until the signal of EOI is received 4 GPIB CONTROLLER transmite data obtained from item 3 and 0d and 0a back to PC Page 42 Separate Description of instructions SEND a dSO dSn sent to An or AAn b The data of IEEE488 ARBITRARY ASCII format will be read from An or AAn Through GPIB CONTROLLER by PC if Key Symbol is not used in instruction EOS only will be deleted from data added with EOS and replaced by or Od 0a c SEND instruction with Key Symbol amp will have the same function as the instruction TRANSCEIV d If the instruction of SEND have Key Symbol the function would be the same as TRANSCEIV of instruction but after the last block data of the instruction
92. Mes sage wParam lt lt 0x1b StopTestzl else if Message message lt WM RBUTTONDOWN amp amp Message hwnd GetD1gI tem hWnd IDC BUTTON3 Page 118 to set up the baudrate of communication port for rs232 EERE oe ne JE 2 oe oe oe se oe JE JE oe oe oe oe se oe JE ene oe oe oe se se ae a oe oe oe oe SE E de oe oe oe eek GetWi ndowRect GetDIgI tem hWnd IDC BUTTON3 amp btnRect TrackPopupMenu menuportbaud TPM_LEFTALIGNITPM RIGHTBUTTON btnRect left btnRect bottom 1 0 hWnd NULL else if Message message WM_LBUTTONDOWN amp amp Message hwnd GetD1gIt em hWnd IDC_BUTTON3 pees to set up the port number of communication port for rs232 derde GetWindowRect GetDlgItem hWnd IDC BUTTON3 amp btnRect menupor t Get SubMenu LoadMenu HINSTANCE Ge t WindowLong hWnd GWL_HINSTANCE MAKEINTRESOURCE IDC_HP662XACAL 2 ys TrackPopupMenu menuport TPM LEFTALIGNI TPM RIGHTBUTTON btnRect left btnRect bottom 1 0 hWnd NULL IE else TranslateMessage amp Message DispatchMessage amp Message if haccel NULL TranslateAccelerator hWnd haccel amp Message FRR PRA A A HR oe oe oe HH HH oe oe oe AEE Je ene oe AACE de oe oe oe CC ae de oe oe CC A oe oe OO CC same situation as above pc used the ways of background processing to poll the communication Page 119 port once there are the data responded f
93. N3 JE RER RR RER EHER RER RR RR RR RE IE IE IE RR RR oe oe oe oe oe oe k o JE ak ak ak oe oe oe oe oe oe ZA FAK SK akk Baudrate that is used for rs232 communication port must configuried as 128000 when to use lt b gt ki usb gpib controller lt b gt HR PAF ne oe oe oe SEJE oe 2 A oe oe oe JE Ee oe oe oe oe se SEJE Je de oe oe oe se se se le Je dene oe oe se GetWindowRect GetDlgItem hWnd IDC BUTTON3 amp btnRect TrackPopupMenu menuportbaud TPM LEFTALIGNI TPM RIGHTBUTTON btnRect left btnRect bottom 1 0 hWnd NULL Page 130 J else if Message message WM_LBUTTONDOWN amp amp Message hwnd GetD1 gI tem hWnd IDC BUTTON8 GetWindowText GetDlgItem hWnd IDC FILENAME File Place Csn sizeof File Place Csn J CheckPower hWnd hComm IDC_EDIT1 else if Message message WM_LBUTTONDOWN amp amp Message hwnd GetD1 gI tem hWnd IDC VCAL VCal hWnd hComm IDC EDIT1 else if Message message WM_LBUTTONDOWN amp amp Message hwnd GetD1 gI tem hWnd IDC_ICAL ICal hWnd hComm IDC_EDIT1 else if Message mes sage WM RBUTTONDOWN amp amp Message hwnd GetD1 gI t em hWnd IDC_SELOUTP programs will designate channel no of Hp662xa which is adjusted by pc through lt b gt ki usb gpib controller lt b gt GetWindowText GetDlgItem hWnd IDC_SELOUTP buf sizeof buf wsprintf
94. NGTH 0 0 SendMessage GetDlgItem hWnd ID EDITBOX EM SETSEL 0 nlen SendMessage GetDlgItem hWnd ID EDITBOX EM_REPLACESEL 0 LPARAM inbuf WriteFile hComm inbuf strlen inbuf amp nBytesWrite NULL lt font gt PEF RO ER EHER HR HR RR RR oe o A FA CH akk ak oe oe oe oe oe oe oe FA EE ak oe oe oe oe oe oe oe oe TA ZA KK OK the contents of data displayed in title bar of main window are the data sent from pc to Hp662xa and 34410a through lt b gt ki usb gpib controller lt b gt BIER 3 ok ok ok oe oe oe oe oe oe oe oe oe TEE ak ak ak ak oe oe oe oe oe oe kkk IE EE oe oe oe oe oe oe oe oe oe oe o SK SKOK SK ak ak ak sprintf inbuf SEND d M VLO d SEND d MEAS r n ADDRESS662XA channel ADDRESS34410A Js nlen SendMessage GetD1 gIt em hWnd ID EDITBOX WM_GETTEXTLENGTH 0 0 SendMessage GetDlgItem hWnd ID EDITBOX EM SETSEL nlen nlen SendMessage Page 106 GetDlgItem hWnd ID EDITBOX EM REPLACESEL 0 LPARAM inbuf according to the regulation of HP662xa voltage calibration in HP662xa user manual pc communicate with Hp662xa and 34410a through lt b gt ki usb gpib controller lt b gt which make Hp662xa and 34410a do actions for reguirement sprintf inbuf SEND d M VLO d SEND d MEAS ADDRESS662XA channel ADDRESS34410A WrToBusAndRdFrBus hWnd Wait TicketTime ID EDITBOX hComm inbuf out buf VoltL
95. ONTROLLER SEND 7 MEAS SEND 11 MEAS SEND 14 MEAS Instruction of MEAS will be transmited to Digit Multimeter of address 7 and then ll and then 14 throuth GPIB CONTROLLER 4 Intelligent operation for Delay Time The not necessary Delay Time will be excluded for example SEND 7 17 23 24 MEAS AC 500 Description GPIB CONTROLLER will transmite instruction MEAS AC to instrument of Address 7 Address 17 Address 23 and Address 24 at a same time asa Page 6 and then take a delay of 500ms and then seguencially read data from the instruments Output Buffer of Address 7 Address 17 Address 23 and Address 24 and send the data back to PC The delay time of 500ms before GPIB CONTROLLER reading data from the Output Buffer of Address 7 is necessary but the delay time of 500ms before reading that of Address 17 Address 23 and Address 24 are not necessary and the taking of those not necessary delay time will be canceled automatically 5 Have controller function for multiple kinds of interface RS232 GPIB and the design of application program for GPIB CONTROLLER will be easy The interface of RS232 will usually be used by the project of electric experiment most especially the instrument and the supplement circuit board which is only with the interface of RS232 KI GB1201 or KI GCx201 series of GPIB CONTROLLER have multiple kinds of controller functions such
96. R he command Send mentioned above the data of item 1 3 5 is added in the rear it will mean that these data ransmitted to the instrument through PIB CONTROLLER there are some data left in PC without ransmission yet therefore the Handshak between GPIB CONTROLLER A4 are not stopped after item2 4 6 are completed he command Send of the final item 7 without adding Key Symbol hat the data in PC are already transmitted to completely these data through GPIB CONTROLLER ically added with EOI signal and transmitted to he action of Handshak between GPIB CONTROLLER A4 will be stopped by EOI signal SEND added with KeySymbol GPIB CONTROLLER send SIN ROM Encoded data of wave to Agilent 33220A The SIN ROM Encoded data convert to Hex format and then transmitted to instrument A4 Agilent 33220A through GPIB CONTROLLER by PC 0 490 3826 4275 7071 7409 9238 945 980 1467 1950 2429 2902 3368 4713 5141 5555 5956 6343 6715 7130 8032 8314 8577 8819 9039 9569 9700 9807 9891 9951 9987 Page 37 9999 9987 9051 9891 9807 9700 9569 9415 9238 9039 8819 8577 8314 8032 7730 7409 1071 6715 6343 5956 5555 514l 4713 4275 3826 3368 2902 2429 1950 1467 980 490 0 490 980 1467 1950 2429 2902 3368 3826 4275 4713 5141 5555 5956 6343 6715 7071 7409 7730 8032 8314
97. R EREE EE SE JESE JESENSKE HOJE IR OR OEEO nReceive 0 if WrDataStr wsprintf rbuf s WrDataStr WriteFile hComm rbuf strlen rbuf knBytesWri te NULL dwTime GetTickCount Wait_TicketTime RdDataSt r 0 while 1 if GetTickCount gt dwT ime if StopTest Page 93 StopTest 0 Pos tMes sage hWnd WM_SYSCOMMAND SC_CLOSE 0 return NULL SARA HS A AA AR AA A A K ode I ode E k IR A AK PC will execute the work for requirement with method of background processing to maintain window operation Neo je A A A A OR IR A A Je oe JESE if PeekMessage amp Message NULL 0 0 PM_REMOVE if essage message WM_NCLBUTTONDOWN amp amp lessage wParam 0x14 yl lessage message WM_SYSCOMMAND amp amp essage wParame SC CLOSE Il essage message WM_KEYDOWN amp amp LOWORD Message wParam 0x1b StopTes t else TranslateMessage amp Message DispatchMessage kMessage i f haccel lt NULL TranslateAccelerator hWnd haccel amp Message Same situation as mentioned above PC also take the method of background processing to poll the communication port the data will be responded to PC from instrument through GPIB CONTROLLER PC will save these data in the address of RdDataStr NOE OK AOR A OA A OR A odo Eo A A I if GetCommMask hComm amp dwEvent ClearCommError hComm amp dwError amp coms tat if Page 9
98. RAM LPSTR Fi le_Place_Csn EEE OO BCS SEE IORI CSSS A AC see skse sesa sesedel Page 124 main window procedure called by subprogram DialogBox hWnd handle of main window message value identifying the window message wParam first message parameter lParam second message parameter LRESULT CALLBACK WindowsProc HWND hWnd UINT message WPARAM wParam LPARAM lParam int i nCX nCY RECT btnRect newrect rect MSG Message char ptr sptr sptr2 path 512 CurDirl 512 inipath 512 char irpath 512 fname 512 exename 512 title 512 irfname 512 char text 512 textbuf 512 ifname 512 buf 1024 switch message case WM_INITDIALOG HICON hicon LoadIcon hInst MAKEINTRESOURCE IDI HP662XACAL haccel LoadAccelerators HINSTANCE Ge t WindowLong hWnd GWL_HINSTANCE AKEINTRESOURCE IDC_HP662XACAL SetClassLong hWnd GCL_HICON LONG hicon br CreateSol idBrush COLORREF 0x00f fff80 brushbtn CreateSol idBrush COLORREF 13673215 brush HBRUSH Get StockObj ect HOLLOW_BRUSH brushstatic CreateSol idBrush COLORREF 65280 GetModuleFileName hInst exename sizeof exename b b Db 5 ptr amp exename strlen exename while 1 if ptr 11 ptr ptr break else ptr strcpy fname ptr ptr strstr fname if ptr ptr 0 strepy irpath exename sptr2 strstr irpath ptr if sptr2 NULL if sptr2 1 sptr2 1
99. Resul t RegSet ValueEx hkGlobal keystr 0 REG_SZ CONST BYTE defstr strlen defstr RegCloseKey hkGlobal return IResult esse a a O na ieee ri sub program is called by windows proc will be utilized to calibrate Hp662xa voltage accuracy and also take responsible for pc communication device which make communication and cooperate actions between 34410a and Hp662xa through lt b gt ki usb gpib controller lt b gt hWnd handle of main window hComm handle to communications device ID EDITBOX identifier of editbox control LRESULT CALLBACK VCal HWND hWnd HANDLE hComm LONG ID EDITBOX Page 105 int i nlen char buf 256 inbuf 256 outbuf 256 textbuf 1024 DWORD dwTime nBytesWrite float VoltLow VoltHigh Ini tCommPort hWnd param SetWindowText GetDlgItem hWnd IDC EDITI Updat eWindow GetDleltem hWnd IDC EDIT1 5 PRA NE Noe oe oe oe se oe JE 2 oe oe se SEJE de oe oe oe se se de oe oe oe oe SE SE Ee de oe oe oe SE SE SEJE oe oe oe oe o SK SEJE HH configuration made as below HP662xa configured to MODI 34410a configured to volt dc auto range BIER kok ok ok ak ak oe oe oe oe oe ok lll kkk ak ak ak ak aak oe oe oe oe oe kkk kkk ak ak ak oe oe ok oe RR ZA I akk ak sprintf inbuf SEND d CMOD 1 SEND d conf volt de auto r n ADDRESS662XA ADDRESS34410A nlen SendMessage GetD1 gIt em hWnd ID EDITBOX WM_GETTEXTLE
100. SENDI 4 DATA DAC VOLATILE SEND 4 999 1000 1001 1002 1003 10 04 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 Aria 143 amp nByteWrite NULL Exam Instruction of instrument 33120A Function Generator Page 38 SEND 1 DATA DAC VOLATILE 216 07FF0600040002000000FE0OFAOOF801 Description 1 PC give the command Send 1 DATA DAC VOLATILE 216 07 00F801 and 0d and 0a to GPIB CONTROLLER Code represented with format of Visual CH as below nByteWriteswsprintf codebuf SEND 1 DATA DAC VOLATILE 216 V 07FF0600040002000000FEOOFAOOF801 r n WriteFile hComm codebuf nByteWrite amp nByteWrite NULL The data of 07FF06 01 will be interpreted as the format binary by GPIB CONTROLLER The data of DATA DAC VOLATILE 216 and binary data obtained from item 2 will be transmitted to instrument Al8 by GPIB CONTROLLER B Key Symbol SEND added with KeySymbol With Key Symbol if the data is binary format which can be written into Hex format and saved in dStr The Key Symbol 4 added to the end of Key Word will make GPIB CONTROLLER translate the data of dStr into binary format before sending data to instrument and then the binary format data will be sent to instrument Exam SEND 7 4D4541533A41433F Rp 1 17373430E 06 Description 1 The data MEAS AC which is going to be transmitted will be written in Hex format 4D4541533A41433F 2 The da
101. SO dSn EOSO EOC dS0 dSn EOSO gt EOC dS0 dSn EOSO EOC TestSys AAn Send AAn dSO dSn Send AAn dSO dSn Send AAn dSO dSn Send AAn dSO dSn Send AAn dSO dSn Send gt dSO dSn TEEEidn TestSys AAn TestSys EOSO EOC AAn dS0 dSn EOSO EOC AAn dS0 dSn EOSO EOC AAn dSO dSn EOSO EOC dS0 dSn EOSO EOC AAn EOSOA EOC AAn dS0 dSn EOSO EOC AAn dSO dSn EOSO EOC AAn dS0 dSn EOSO EOC AAn dS0 dSn EOSO EOC AAn dS0 dSn EOSO EOC dS0 dSn EOSO gt EOC dS0 dSn EOSO EOC TEEEidn AAn IEEEidn AAn IEEEidn AAn IEEEidn AAn IEEEidn AAn IEEEidn AAn IEEEidn IEEEidn l TestSys ARBITRARY BLEN An dSO dSn ARBITRARY BLEN An dSO dSn ARBITRARY BLEN An ARBITRARY BLEN An dSO dSn ARBITRARY BLEN An dSO ARBITRARY BLEN An dSO dSn ARBITRARY BLEN An ARBITRARY BLEN An ARBITRARY BLEN An Instruction AgiETB An dSO dSn AgiETB An dSO dSn AgiETB gt An dSO dS AgiETB An dSO dSn AgiETB lt An dSO dSn AgiETB An AgiETB An Instruction IEEEB An dSO dSn IEEEB An dSO dSn IEEEB gt 4 An dSO dSn IEEEB An dSO dSn IEEEB lt An dSO dSn IEEEB_ An TEEEB _ An dSO dSn Instruction TransCeiv AAn dSO dS n n l dSn l AgiETB gt An dSO dSn AgiETB An dSO dSn AgiETB An dSO dSn AgiETB gt _ An dSO dSn AgiETB lt An dS0 dSn AgiETB An IEEEB gt An dSO dSn IE
102. Support to GPIB CONTROLLER Function SHI AH LA T6 Cl C3 C26 Unsupport to GPIB CONTROLLER Message TCT Usable GPIB Address for external instrument from 1 to 29 Page 11 Non GPIB CONTROLLER Function for gpib address 30 SH AH TE LE One 2 bit Digital Output Ports Control pin It is the RTS and DIR pin of the Input Interface of USB Output current 3 mA Max Every Pin of Portx Output voltage 3 3 V No Load the electrical impedance is IK ohm Note Each output of these two pin is linked through a IK ohm resistor One 2 bit Digital Iutput Por lutput voltage TTL Note Each iutput of these Two RS232 Ports Drived by I Port address Method of connector ts Control pin It is the RI and DSR pin of the Input Interface of USB wo pin is linked through a IK ohm resistor C of st3232ctr Address primary 30 secondary 2 and 3 It is DTE RXD Pin2 TXD Pin3 for PORTa 748 bytes default 14400 19200 28800 38400 57600 115200 128000 Size of input buffer Communication procotol Handshake none Baudrate 2400 9600 Parity none Bit No 8 Stop Bit No 1 Serial RS232 protocol for the Input Interface of USB COMn 128000 n 8 1 and None Handshake le 0 46 82338 mm ne 0 0 WW ECZEZ L EESL I X 60L08 tt 960S2 6S meeeseeeesese ne9990009 USB to GPIB and RS232 and Digital I O Controller Board KI GB1201R v uu au u 0 u2299 0909
103. TBW AAn dSO dSn I AgiETBWI dSO dSn AgiETBW gt dSO dSn AgiETBW AAn dSO dSn AgiETBW AAn dSO dSn AgiETBW gt AAn dSO dSn AgiETBW gt dSO dSn AgiETBW gt li dSO dSn AgiETBWIA dSO dSn AgiETBWI dSO dSn AgiETBW gt AAn dSO dSn Instruction TEEEBW AAn dSO dSn TEEEBWI AAn dSO dSn TEEEBW dSO dSn TEEEBW AAn dSO dSn IEEEBW AAn dSO dSn TEEEBW AAn dSO dSn l l TEEEBW gt dSO dSn IEEEBW AAn dSO dSn l l IEEEBW AAn dSO dSn IEEEBW gt AAn dSO dSn IEEEBWI dSO dSn l IEEEBW AAn dSO dSn TEEEBW gt dSO dSn IEEEBW gt AAn dSO dSn TEEEBW gt AAn dSO dSn TEEEBW gt dSO dSn l IEEEBYI 4 dSO dSn IEEEBWI dSO dSn Instruction MsgREN AAn MsgREN AAn MsgREN AAn MseREN MsgREN MseREN MsgTRG AAn MsgTRG MsgSDC AAn MsgSDC MsgDC MsgIFC Instruction AryAdd dStr AryAdd dStr AryAdd ArySet dStr ArySet dStr ArySet dStr AryAdd_ AryAdd ArySet dStr ArySet ArySet_ ArySet AryAdd dStr I AryAdd Instruction z SetPMT EOC dStr SetPMT EOC dStr SetPMT EOC SetPMT EOC SetPMT dStr SetPMT dStr SetPMT Instruction SetRDT EOC dStr SetRDT EOC dStr SetRDT EOC SetRDT EOC SetRDT dStr SetRDT dStr SetRDT Instruction PIO AAn I PIO AAn PIO AAn dStr PIOH AAn PIO AAn dStr 5 4 Description of Instructions 5 4 1 Instruction FindListen a An or AAn found from
104. TROLLER 2 The instruction of FORMI will be transmitted to Al6 by GPIB CONTROLLER 3 The instruction of OUTPDATA will be transmitted to A16 by GPIB CONTROLLER 4 GPIB CONTROLLER will read the data in output buffer of instrument Al6 and stop reading until EOI signal is received 5 GPIB CONTROLLER will transmite the data obtained from item 4 back to PC Exam AgiETB 16 FORMI OUTPDATA Rp A B4 B Mi ah Pw eG N East COLIS ea TE Hi Description 1 PC give the command AgiETB 16 FORMI OUTEDATA and Od and Oa to GPIB CONTROLLER 2 The instruction of FORMI will be transmitted to Al6 by GPIB CONTROLLER 3 The instruction of OUTPDATA will be transmitted to Al6 by GPIB CONTROLLER 4 GPIB CONTROLLER will read the data in output buffer of instrument Al6 and stop reading until EOI signal is received 5 GPIB CONTROLLER will transmite the data of 1210 bytes obtained from item 4 back to PC Exam SEND 16 FORM4 OUTPDATA Rp 1 034363000000000E 00 0 037231000000000E 01 1 031250000000000E400 Description 1 PC give the command SEND 16 FORM4 OUTPDATA and Od and Oa to GPIB CONTROLLER 2 The instruction of FORMI will be transmitted to Al6 by GPIB CONTROLLER 3 The instruction of OUTPDATA will be transmitted to Al6 by GPIB CONTROLLER 4 GPIB CONTROLLER will read the data in output buffer of instrument Al6 and stop reading until EOI signal is received 5 GPIB CONTROLLER will transmi
105. USB to GPIB CONTROLLER KI GC1201 KI GC3201 KI GB1201 KI GB1201X KI GB1201R and RS232 to GPIB CONTROLLER KI GX1201 KI GX3201 Operational Manual USB lt gt GPIB Functions held with IEEE488 1 and IEEE488 2 x Use taken of RS232 COM 128000 N 8 1 Application program written easily Driver installed simply Merit of swift response as GPIB KI Work Office http www phkaku com http en phkaku com e mail kitec phkaku com Page 1 The GPIB CONTROLLER of KI GC1201 KI GC3201 KI GB1201 KI GB1201X KI GB1201R KI GX1201 and KI GX3201 Call it as GPIB CONTROLLER below introduced as following CONTENTS The design concept for IEEE488 GPIB CONTROLLER sssccsssssscssssseseressssssesressssssaseseres The basie rule of GP B CONTROLER a nennen 2 Instruction is easier to understand and have powerful function 3 Instruments synchronous and sequential measurement can be made easy Synchronous measurement for multiple instruments cn SEND S 6 12 NO VSET Mt Dien na ee SEND 90 dol MA OMRAS sense Sequencial measurement for multiple instruments SEND 5 VSET 1 4 5 SEND 6 VSET 1 4 5 SEND 12 VSET 1 4 5 SEND 7 MEAS SEND 1l MEAS SEND 14 MEAS 4 Intelligent operation for Delay Time enake SEND 7 17 23 24 MEAS ACI BOO lv a ai 5 Have controller function for multiple kinds of interface RS232 GPIB 8 Both designing and testing are standardiz
106. a Rp OD OA Description use PMT is IB CONTROLLER R 1 PC configure the RDT as the default RDT value for GPIB CONTROLLER Od 0a 2 The RDT default value of GPIB CONTROLLER is read Exam Set RDT Description back by PC 1 PC configure the RDT as the default RDT value for GPIB CONTROLLER Od 0a Exam SetRDT Rp 0D OA Description PC read back the RDT value of GPIB CONTROLLER Exam SetRDT 22 Rp 16 Description 1 PC configure the RDT value of GPIB CONTROLLER a 2 The PMT value of GPIB CONTROLLER is read back b the 16 is Hex format of the 22 5 4 10 Instruction GpIO Board Configuration PIO 1 GplO Board Port Output is configured 2 GplO Board Port Output will be read and transmit Syntax s 224DABE PC ted to PC Key Word KeySymbol Paramter Parameter PIO LH AAn dStr Description INSTRUCTIONS ACTIONS PIO 1230801 The GpIO Board address primary l secondary 8 Output value will be configured to 123 PIO 801 The GpIO Board address primary l secondary 8 Output value will be read and transmitted Back to PC The GpIO Board address primary l secondary 8 Output value will be PIO 210801 configured as 21 first and then read and then transmitted back o PC PIO 801 The output value of GpIO Board address primary l secondary 8 will be read and converted to Hex format and then transmitted back to PC Page 73 PIO 301 401 601 GpIO Board add
107. and PP 6 3 52 the A6 will be configured to 13 PPR3 sense 13141516 the A3 will be configured to 14 PPR4 sense the AS will be configured to 15 PPR5 sense the A2 will be configured to 16 PPR6 sense The process of IEEE488 Parallel Poll executed to instrument AAn from m PP 6 5 Fan Se a PP PC through the GPIB CONTROLLER and the result from instrument will be sent to PC Exam Send 7 CLS ESE 1 SRE 96 Send 7 OPC SPOLL Rp 7 96 Description 1 PC give instruction CLS ESE 1 SRE 96 and OPC to A7 through GPIB CONTROLLER 2 The function of IEEE488 Serial Polled action regarded SRO signal to AAn will be executed by PC through GPIB CONTROLLER 3 the data obtained from instruments AAn for execution of Page 31 item 2 will be transmitted back to PC through GPIB CONTROLLER Exam Send 7 CLS ESE 1 SRE 96 Send 7 OPC SPOLL Rp 0760 Description 1 PC give instruction CLS ESE 1 SRE 96 and OPC to A7 through GPIB CONTROLLER 2 The IEEE488 Serial Polled action regarded SRO signal to AAn will be executed by PC through GPIB CONTROLLER 3 The data obtained from instruments AAn for execution of item 2 will be transmitted back to PC with Hex format through GPIB CONTROLLER Exam SPOLL 7 9 6 4 2 Rp 32 161 00 30 00 Description 1 The function of the IEEE488 Serial Polled toA7 A9 A6 A4 and A2 disregarded SRO signal will be executed by PC through GPIB
108. as interfaces GPIB RS232 and Digital input output and I O control pins and the hardware of GPIB CONTROLLER will be shared by all those interfaces The automatic test fixture may contain the instruments eguipments and supplementary circuit board with interfaces of GPIB or RS232 The PC application program design for that automatic test fixture will be difficult however it take the KI GB1201 or KI GCx201 series of GPIB CONTROLLER link the interface of GPIB RS232 and Digital input output and I O control pin and then get the control for all those interfaces through PC with a GPIB application program under this situation this GPIB application program design will have little restrictions and more supports on the selection of tool such as VISUAL CH C VISUAL BASIC and so forth and the whole process for it will become easy There is a project which link many devices with GPIB or RS232 interface and need external Control PIN From the point of view of the program design cost and the performance and efficient of hardware it should be a very good idea to use the KI GB1201 or KI GCx201 series of GPIB CONTROLLER for running the project for example as below a simple program of PC can control a Barcode reader with the RS232 and multiple instruments with the GPIB and support control pin for circuit board of private design through KI GB1201R Block diagram for the application of Barcode reader with KI GB1201R
109. ata in the output buffer of instrument A7 and stop reading until EOI signal is received 4 GPIB CONTROLLER will delete the EOS End of String added with the data obtained from item 3 5 The data left from item 4 will be added with Od 0a at the rear and then transmitted back to PC by GPIB CONTROLLER Exam Send gt 7 MEAS DC Rp 3 21000047E 05 Description 1 PC give the command Send gt 7 MEAS DC and Od and 0a to GPIB CONTROLLER 2 The instruction of MEAS DC will be transmitted to A7 by GPIB CONTROLLER 3 GPIB CONTROLLER will read the data in the output buffer of instrument A7 and stop reading until EOI signal is received 4 GPIB CONTROLLER will delete the EOS End of String added with the data obtained from item 3 5 The data left from item 4 will be added with Od 0a at the rear and then transmitted back to PC by GPIB CONTROLLER Examples of Model 34410a Exam SEND 7 IDN Rp Agilent Technologies 34410A MY47013754 2 35 2 35 0 09 46 09 Description 1 PC give the command Exam ARB Rp Agi Descri RHerQroQasdc SEND 7 IDN and Od and 0a o GPIB CONTROLLER he instruction of IDN will be transmitted to A7 by PIB CONTROLLER B CONTROLLER will read the data in the output buffer instrument A7 and stop reading until EOI signal is B CONTROLLER will delete the EOS End of String dded with the data obtained from item 3 he data left
110. ata obtained from item 3 5 The data left from item 4 will be added with characters of Od 0a at the rear and then transmitted to PC by GPIB CONTROLLER Examples of Model 34401a Exam FINDLISTEN Rp 07 Description 1 PC give the command FINDLISTEN 7 and Od and Oa 2 3 4 to GPIB CONTROLLER GPIB CONTROLLER execute ieee488 1 Findlisten procedure to A7 of gpib bus The data obtained from item 2 will be added with Od 0a in the rear by GPIB CONTROLLER The data obtained from item 3 will be transmitted back to PC by GPIB CONTROLLER Exam Send gt 7 MEAS DC Rp 3 21000047E 05 Desc 1 2 3 ription PC give the command Send 7 MEAS DC and 0d and 0a to GPIB CONTROLLER The instruction of MEAS DC will be transmitted to A7 by GPIB CONTROLLER GPIB CONTROLLER will read the data in the output buffer of instrument A7 and stop reading until EOI signal is Page 48 received 4 GPIB CONTROLLER will delete the EOS End of String 5 Exam SE map dded with the data obtained from item 3 he data left from item 4 will be added with Od 0a at the ear and then transmitted back to PC by GPIB CONTROLLER D 7 IDN Rp HEWLETT PACKARD 34401A 0 7 5 2 Descri pt ion 1 PC give the command Send 7 IDN and Od and 0a to GPIB CONTROLLER 2 The instruction of IDN will be transmitted to A7 by GPIB CONTROLLER 3 GPIB CONTROLLER will read the d
111. by GPIB CONTROLLER he instruction of FETC will be transmitted to instrument Page 52 A7 by GPIB CONTROLLER 7 GPIB CONTROLLER will read the data in the output buffer of instrument A7 and stop reading until EOI signal is received 8 GPIB CONTROLLER will delete the EOS End of String added with the data obtained from item 3 9 The result of data left from item 8 will be transformed to the Hex format 10 The Hex format of data obtained from item 9 and 0d and 0a will be transmitted back to PC Exam Send 7 CONF VOLT DC TRIG SOUR BUS INIT MsgTRG 7 Send 7 FETC Rp 2 11107826E 04 Description 1 PC give the command Send 7 CONF VOLT DC TRIG SOUR BUS INIT MseTRG 7 Send 7 FETC and Od and 0a to GPIB CONTROLLER by PC 2 GPIB CONTROLLER will transmite the instruction of CONF VOLT DC to instrument A7 3 GPIB CONTROLLER will transmite the instruction of TRIG SOUR BUS to instrument A7 4 The instruction INIT will be transmitted to instrument A7 by GPIB CONTROLLER 5 The signal of IEEE488 1 Message GET will be transmitted to instrument A7 by GPIB CONTROLLER 6 The instruction of FETC will be transmitted to instrument A7 by GPIB CONTROLLER 7 GPIB CONTROLLER will read the data in the output buffer of instrument A7 and stop reading until EOI signal is received 8 GPIB CONTROLLER will del
112. channelno s buf strlen 662x wsprintf modelno s buf modelno strlen 662x 0 if strcmp modelno 6621 amp amp Page 131 stremp modelno 6622 46 stremp modelno 6623 amp amp stremp modelno 6624 amp amp st remp modelno 6627 wsprint f modelno 6623 mode1 6623 if strcomp modelno 6621 stremp modelno 6622 ifC stremp channelno Chl wsprintf channelno Ch2 channel 2 else wsprintf channelno Chl channelzl else if stremp modelno 6624 1l stremp modelno 6627 if stremp channelno Chl wsprintf channelno Ch2 channel 2 else if stremp channelno Ch2 wsprintf channelno Ch3 channel 3 else if stremp channelno Ch3 wsprintf channelno Ch4 channel 4 else wsprintf channelno Chl Page 132 channel 1 else if stremp modelno 6623 1f stremp channelno Chl wsprintf channelno Ch2 channel 2 else if stremp channelno Ch2 wsprintf channelno Ch3 channel 3 else wsprintf channelno Chl channelzl wsprint f buf s s modelno channel no SetWindowText GetDlgItem h nd IDC_SELOUTP buf SetProReg irtool modelchannel buf else if Mes sage message WM_LBUTTONDOWN amp amp Message hwnd GetD1 gI tem hWnd IDC SELOUTP The programs make designation of model no
113. completely transmitted to instrument from PC through GPIB CONTROLLER no matter which include the character whether in the last block data or not GPIB CONTROLLER will read automatically the data from output buffer of instrument and send them back to PC e SEND instruction with Key Symbol It will make the dStr of instruction transformed into the block data type of IEEE488 DEFINITE ARBITRARY BLOCK and then transmite those data to instrument through GPIB CONTROLLER for example Instruction send 4 abcdefghij klmnopgrstuvwxyzl234567890 Description The IEEE488 DEFINITE ARBITRARY BLOCK data dStr of 236abcdefghijklmnopqrs tuvwxyz1234567890 will be transmitted to the instrument of address 4 and the 236 in dStr is the BLOCK HEAD of dStr SEND instruction with Key Symbol It will make the dStr of instruction transformed into the block data type of Agilent 8753ET Form 1 2 3 5 BLOCK and then transmite those data to instrument through GPIB CONTROLLER for example Instruction send 4 abcdefghij klmnopgrstuvwxyzl234567890 Description The Agilent 8753ET Form 1 2 3 5 BLOCK data dStr of A abcdefghijklmnopqrs tuvwxyz1234567890 will be transmitted to the instrument of address 4 and the A in dStr is the BLOCK HEAD of dStr AgiETB a Parameter dSO dSn in the instruction sent to An through GPIB CONTROLLER by PC b Data of Agilent 8753ET Form 1 2 3 5 BLOCK format are read from An through the
114. ction idn Please refer to item 5 4 2 can be used to confirm the correct connection between PC and GPIB CONTROLLER 3 GPIB CONTROLLER and Instrument Linking 3 1 GPIB CONTROLLER connect to PC and single GPIB INSTRUMENT 3 2 GPIB CONTROLLER connect to PC and multiple GPIB INSTRUMENTS note in order to minimize stress on the connector mountings the quantity and weight of stacking cable connector blocks should be careful 4 Choose the tool programs to design the application programs Tool programs can be used to desien the application program as following 1 VB Visual Basic 2 VCH Visual CH VC Visual CH 3 BORLAND CH 4 Latview Because Latview support controls for RS232 COMMUNICATION 5 Other programming tools which support RS232 Serial Port Communication can be taken Summary There are five steps for linking process of the PC drivers and GPIB CONTROLLER summarized as below Detail STEP Description referred to item 1 PC have USB interface 2 1 2 Operating system used with PC as reguirement notified 2 2 The USB plug of GPIB CONTROLLER must be directly linked to the 3 USB 2 3 socket of PC before installing driver 4 PC GPIB CONTROLLER and Instrument Linking 3 The instructions of TIDN and FindListen used to test the 9 3 c 5 linking of PC to GPIB CONTROLLER with instrument whether s operating smoothly or not 5 4 1 6 Application program designed with instruction
115. dSn Read Instruction z RdEOS EOC AAn dSO dSn RdEOS EOC AAn RdEOS EOC AAn dSO dSn RdEOS EOC AAn RdEOS EOC AAn dSO dSn RdEOS EOC AAn RdEOS EOC AAn dSO dSn RdEOS EOC AAn RdEOS EOC AAn dSO dSn RdEOS EOC AAn RdEOS EOC AAn dSO dSn RdEOS EOC RdEOS 4 EOC dSO dSn RdEOS EOC Instruction z RdAgiETB An dSO dSn RdAgiETB An dSO dSn RdAgiETB An dSO dSn RdAgiETB An dSO dSn RdAgiETB An dSO dSn RdAgiETB_ An dSO dSn Instruction RdIEEEB An dSO dSn RdIEBEB 4 An dSO dSn RdIEEEB An dSO dSn RdIEEEB An dSO dSn RdIEEEB An dSO dSn RdIEBEB An dSO dSn Instruction RdARBITRARY BLEN An dSO RdARBITRARY BLEN An dSO RdARBITRARY 4 BLEN An RdARBITRARY BLEN An dSO RdARBITRARY BLEN An dSO RdARBITRARY 4 BLEN An dSO dSn RdARBITRARY BLEN An RdARBITRARY BLEN An RdARBITRARY BLEN An RdARBITRARY BLEN An Instruction ARBITRARYW AAn dSO dSn ARBITRARYWI AAn dSO dSn ARBITRARYW AAn dSO dSn ARBITRARYW gt dSO dSn ARBITRARYW gt AAn dSO dSn RdEOS EOC AAn RdEOS EOC AAn dSO dSn RdEOS EOC AAn dSO dSn RdEOS EOC AAn RdEOS EOC AAn RdEOS 4 EOC AAn dSO dSn RdEOS EOC AAn dSO dSn RdEOS EOC AAn RdEOS EOC AAn RdEOS EOC dSO dSn RdEOS EOC dSO dSn RdEOS EOC RdEOS EOC RdEOS EOC dSO dSn RdEOS EOC dSO dSn RdEOS EOC RdAgiETB An RdAgiETB An dSO dSn RdAgiETB An RdAgiETB 4 An
116. debuf nBytesWrite gbuf glen i nBytesWrite glen i memcpy codebuf nBytesWrite r n 3 nBytesWritet 3 else nBytesWrite wsprint f codebuf SENDI d DevAddress memcpy codebuf nBytesWrite 1 nBytesWrite 1 memcpy codebuf nBytesWrite gbuf 200 nBytesWrite 200 gbuf 200 memcpy codebuf nBytesWrite r n 3 nBytesWritet 3 WriteFile hComm codebuf nBytesWrite amp nBytesWrite NULL if glen i lt 200 break dwTime GetTickCount Wait_TicketTime Page 99 while 1 if GetTickCount gt zdwTime break GlobalUnlock hglobal GlobalFree hglobal Subprogram is used for transforming the data in DataSrc into the format of IEEE488 DEFINITE ARBITRARY BLOCK LENGTH which will be encoded with Hex and then transmitted to instrument through GPIB CONTROLLER DataSrc Address of buffer to save the BLOCK DATA which will be output from communication port nBytesTransfer Number bytes of the BLOCK DATA for transmition in DataSrc for example 1000 it means that there are 1000 bytes in DataSrc to transmite to instrument through GPIB CONTROLLER Wait TicketTime To setup the additional delay time after the data are output from communication port each time time unit is 1 1000 seconds it is necessary for time to match the reguirement for an interval of time between periods of instrument receiving data from GPIB CONTROLLER each time for example 50 it means 50 mili seconds Dev
117. e read by GPIB CONTROLLER 5 GPIB CONTROLLER will transmite the Data Body of 1206 Bytes obtained from item 4 back to PC Exam Send 16 FORM2 OUTPDATA Rp HA Hie 2 00 Danen SE maaan DIO vl Er Description 1 PC give the command send 16 FORM2 OUTPDATA and Od and Oa to GPIB CONTROLLER 2 The instruction of FORMI will be transmitted to Al6 by GPIB CONTROLLER 3 The instruction of OUTPDATA will be transmitted to A16 by GPIB CONTROLLER 4 GPIB CONTROLLER will read the data in the output buffer of instrument Al6 and stop reading until EOI signal is received 5 GPIB CONTROLLER will transmite data of 1611 Byte obtained from item 4 back to PC Exam Send 16 FORM3 OUTPDATA OJ EE N z lin rand Brda Description 1 PC give the command send 16 FORM3 OUTPDATA and Od and Oa to GPIB CONTROLLER 2 The instruction of FORM3 will be transmitted to Al6 by GPIB CONTROLLER 3 The instruction of OUTPDATA will be transmitted to Al6 by GPIB CONTROLLER 4 GPIB CONTROLLER will read the data in the output buffer of instrument Al6 and stop reading until EOI signal is received 5 GPIB CONTROLLER will transmite the data of 3220 Byte obtained from item 4 back to PC Exam ARBITRARY 1024 16 FORMI OUTPDATA Rp A p P BASE Bd naar vn Description 1 PC give the command ARBITRARY 1024 16 FORMI OUTPEDATA and 0d and 0a to GPIB CONTROLLER 2 The instruction of FORM3 will be transmit
118. ed nnen The main functions for the KiGirax exe 9 The BLOCK DIAGRAM for KI GCx201 and KI GB1201 series GPIB CONTROLLER The specification of GEIB CONTROLLER zsssorsereerssnsroossnseossosensacrsnvensnsbiadssoenvensvensbenn The Electrical specification of KI GC1201 The Electrical specification of KI GB1201 The Electrical specification of KI GB1201X The Electrical specification of KI GB1201R The Electrical specification of KI GC3201 The Electrical specification of KI GX1201 The Electrical specification of KI GXB200 zena ee aken 1 Confirm as following items before GPIB CONTROLLER is used nnsenesenenssen 2 How to Comeet PC to GPIB CONTROLLER son ia GPIB CONTROLLER and the PC operation system 2 3 Driver Install U 1 VB Visual Basic 2 VCHH Visual CH VC Visual C 3 PORLAND ACHE ics es nero ee 4 Latview Because Latview support controls for RS232 COMMUNICATION 5 Other programming tools which support RS232 Serial Port Communication S Instruction ror GPUS CONTROLER 22er 3 2 Procotol rule for command Instruction is add with Key Symbol GPIB Address formateren 5 3 The Structure of GPIB CONTROLLER s Command neven enenereenn Escaped sequence rule for the input of GPIB CONTROLLER Block Data GPIB CONTROLLER instruction parameter DIyR DlyW DIyB SA Description Of Instructions sissende 5 4 1 Instruction FindListen Exam Fi
119. end them back to PC 2 Read data from the output buffer of A9 and send them back to PC 5 4 8 Instruction Internal Array Buf IO AryAdd Contents of dStr will be added to the end of iaB address ArySet a Instruction without Contents of iaB will be deleted and replaced by Block Data in dStr b Instruction with Block Data in dStr is Intel Hex Format The data in iaB would be replaced by the data in dStr if there are same address of the data in dStr and in iaB Syntax Key Word Key Symbol Parameter Page 71 AryAdd 1 2 4 used HexToBin will be execute dStr ArySet Mod buh dStr Exam ArySet abc etc Rp abc etc Description PC give the instruction with abc etc to GPIB CONTROLLER aber ete will be set up in the iaB of GPIB CONTROLLER the dStr contents of instruction at first and then contents of iaB will be transmitted to PC by GPIB CONTROLLER Exam AryAdd 12345678 Rp abcdefg12345678 Description Instruction with contents of iaB will be transmitted back to PC by GPIB CONTROLLER Exam ArySe Rp 15 Description Instruction with _ the number of data bytes in iaB will be transmitted back to PC by GPIB CONTROLLER Exam ArySet Description Instruction with the Contents of iaB in GPIB CONTROLLER will be deleted Exam ArySet 4D4541533A41433F4D4541533A41433F4D4541533A41433F4D4541533A41433F4D4541533A
120. ete the EOS End of String added with the data obtained from item 3 9 The result of the data left from item 8 and 0d and 0a will be transmitted back to PC Exam IEEEidn Rp Ol Agilent Technologies 33220A MY44046179 2 07 2 06 22 2 04 HEWLETT PACKARD 6611C 0 A 01 03 05 TEKTRONIX TDS 220 0 CF 91 1CT FV v2 03 TDS2CM CMV vl 04 06 WAYNE KERR 4235 0 1 85 07 Agilent Technologies 34410A MY47013754 2 35 2 35 0 09 46 09 08 ADVANTEST R3162 110600533 F04 09 AGILENT TECHNOLOGIES DSO X 2012A MY52132806 02 10 2012022200 10 ADVANTEST R3273 110501576 G02 11 HEWLETT PACKARD 54520A 0 00 13 01 10 02 10 01 01 12 ANRITSU MI9810A 0 V1 0 V2 0 13 Agilent Technologies E4418A A1 09 01 14 Agilent Technologies 8960 Series 10 E5515C GB45360238 A 08 14 15 HEWLETT PACKARD 54820A US40380133 A 04 50 17 Agilent Technologies E5071B MY42404423 A 06 50 18 Hewlett Packard E4402B US39441101 A 07 05 0 20 ROHDE amp SCHWARZ NRVD 100036 002 V1 52 V1 40 28 Rohde amp Schwarz SMT06 830723 003 4 11 Description 1 PC give the command IEEEidn and 0d and 0a to GPIB CONTROLLERC 2 The instruction of IDN will be transmitted simultaneously Page 53 to the whole instruments of AAn which are connected with GPIB CONTROLLER through gpib cable for example Al A4 A5 A6 A7 A8 A9 A10 A11 A12 A13 A14 A15 A17 A18 A20 A28 GPIB CONTROLLER transmite t
121. fer HANDLE hComm char DataSrc int nBytesTransfer int Wait TicketTime char DevAddress int i DWORD nBytesWrite dwTime char codebuf 256 HGLOBAL hglobal LPSTR gbuf sbufz LPSTR GlobalLock hglobal memcpy gbuf DataSrc nBytesTransfer for i 0 i 200 if nBytesTrans fer i lt 200 if 1i nBytesWrite wsprint f codebuf SEND d DevAddress memcpy codebuf nBytesWrite 1 nBytesWrite t 1 memcpy codebuf nBytesWrite gbuf nBytesTransfer i nBytesWrite nBytesTransfer i memcpy codebuf nBytesWrite r n 3 nBytesWrite t 3 else nBytesWrite wsprint f codebuf SENDI d DevAddress memcpy codebuf nBytesWrite 1 nBytesWrite 1 Page 97 memcpy codebuf nBytesWrite gbuf 200 nBytesWr i te 200 gbuf 200 memcpy codebuf nBytesWrite r n 3 nBytesWrite 3 hComm codebuf nBytesWrite KnBytesWri te NULL if nBytesTransfer i lt 200 break dwTime GetTickCount Wait_TicketTime while 1 if GetTickCount gt dwTime break GlobalUnlock hglobal GlobalFree hglobal Sub program is used for transforming the data in DataSrc into the format of IEEE488 DEFINITE ARBITRARY BLOCK LENGTH which will be transmitted to instrument through GPIB CONTROLLER DataSrc Address of buffer to save the BLOCK DATA which will be output from communication port nBytesTransfer Number bytes of the BLOCK DATA for transmition in DataSrc for example 1000 it means that there are
122. h Hex format through GPIB CONTROLLER It is necessary for PP to work correctly and so instrument must have the function for supporting parallel poll response 5 4 4 Instruction Transmi t and Receive 1 2 3 A There are 3 functions in this form of instructions listed as below Functionl dStr sent to instrument from PC through GPIB CONTROLLER for example SEND 3 vset 1 5 7 Function2 Data read by PC from output buffer of instrument through GPIB CONTROLLER will be transmitted back to PC or iaB of GPIB CONTROLLER for example SEND 7 Function3 there have both functions as above description of Functionl and Function2 Functionl executed first for example SEND 7 meas Key Symbol SEND added with KeySymbol Because maximum length of block data dStr restricted to 228 bytes in case there are large Block Data more than 228 bytes to be sent the function of Key Symbol can be used for sending these data to instrument with several times under the same instruction Exam Page 36 DI 4 DATA DAC DI 4 0 512 1 Uv nim nm Ho tutu w ty scription instruction of The procedure of 1 Pc give the Command VOLATILE 2047 1536 1024 512 0 512 1536 2047 536 2047 512 1536 2047 1047 1236 1124 402 0 DI 4 512 1136 1547 0 712 1236 1447 112 D 4 1236 1047 947 136 1624 4627 312 447 192 1536 1147 he data of
123. h are actual data transmitted from GPIB CONTROLLER to instrument 5 3 02 Key Word lt FindListen IDN I SPOLL PP SEND EOSO TRANSCEIV AgiETB ARBITRARY IEBEB TEEEidn TestSys AgiETBW READ RdEOS RdAgiETB RdARBITRARY RAIEEEB ARBITRARYW IEEEBW MsgREN Ms gTRG Ms gSDC l Ms gDC Msg IFC RESET AryAdd ArySet SetPMT SetRDT PIO Description GPIB CONTROLLER will decide to take any action in accordance with the Key Word every letter of Key Words is able to use the Capital or small letter at it s option There are no influence on the function of the Key Word for example SEND Cap idn Small FindListen Cap small 5 3 03 Key Symbol x iz non ye age Me Re g ng mn MAN pop p g p gt p meh poh L A 1 Lamda Description The command is given to GPIB CONTROLLER from PC some of additional action will be taken or not in accordance with Key Symbol in Command Each kind of Key Symbol is how to make the combination with Key Word which will be described in item of syntax 5 4 x and instruction 5 4 x in details 5 3 04 PARAMETER An AAn dStr dSO dSn aLO aLn aQ0 aQn DlyW DlyR DlyB BLEN Lamda An Number single of instrument address which must be one of number from 1 to 30 AAn An An Ext Lamda Description AAn represent the combination with null An ormult
124. hComm char WrDataStr char RdDataStr SG Message RECT btnRect int i n char buf 256 rbuf 1024 DWORD nBytesWrite nBytesRead dwEvent dwError dwTime 5 PRA A de oe oe oe oe HH oe oe oe oe se SEJE A de oe oe oe se se de oe oe oe oe oe se ea de oe oe oe so SEJE oe oe OC Kok pe send the contents of WrDataStr to 34410a multi meter through lt b gt GPIB GONTROLLER lt b gt MN Noe se oe SEJE Joe ok oe oe oe SEJE JE oe oe oe oe se SEJE Je ene oe oe oe se ee Je sede oe oe se SE SE 2A de oe oe oe So SEE kse 2 HO ACE SetWindowText hWnd WrDataStr wsprintf rbuf s r n WrDataStr WriteFile hComm rbuf strlen rbuf amp nBytesWrite NULL dwTime GetTickCount Wait_TicketTime RdDataStr 0 while 1 if GetTickCount gt dwTime re oplest tenen PostMessage hWnd WM SYSCOMMAND SC CLOSE 0 a NULL ME MEN A A oe oe oe oe oe oe oe ROTE SE oo oe oe oe oe oe oe oe oe FA ET EEE ak ak oe ak oe oe oe lok I ak ok ak ak ak kk pe used the ways of background processing to do works that maintain the window s operation for reguirement Dno oe oe oe oe oe oe oe lekke kkk ak ak ak ak oe oe oe oe oe oe oe o seno ok ak ak ak oe oe oe oe oe oe oe oe so I I ak ok ak aka dese se s 1f PeekMessage KMessage NULL 0 0 PM REMOVE if Message mes sage lt WM NCLBUTTONDOWN amp amp Mes sage wParam 0xl4 Mes sage mes sage WM SYSCOMMANDKAME s s age wParam SC_CLOSE Mes sage message WM_KEYDOWN amp amp LOWORD
125. hannelz2 else wsprintf channelno Chl channel 1 else if stremp modelno 6624 stremp modelno 6627 if stremp channelno Chl channel 1 else if stremp channelno Ch2 channel 2 else if strcmp channelno Ch3 channelz3 else if strcmp channelno Ch4 channelz4 else wsprintf channelno Chl channel 1 Page 128 else if stremp modelno 6623 if stremp channelno Chl channel 1 else if strcmp channelno Ch2 channel 2 else if stremp channelno Ch3 channelz3 else wsprintf channelno Chl channel 1 wsprintf buf s s modelno channelno SetWindowText GetDlgItem hWnd IDC_SELOUTP buf SetProReg irtool modelchannel buf wsprintf buf s s modelno channelno SetProReg irtool ModelChannel buf SetWindowText GetDlgItem hWnd IDC_SELOUTP buf wsprintf buf c temp listfile s rpt irtool GetProReg irtool OutFile File Place Csn buf SetProReg irtool OutFile File Place Csn SetWindowText GetDIgItem hWnd IDC FILENAME File Place Csn while 1 For the purpose of executing the action taken for our requirement and maintaining the necessary work of window operrtion during the special event or message happens the reentrance feature of application program and the background processing method of windows are used to achieve the pu
126. he 76364 bytes of data obtained from item 3 will be transmitted back to PC by GPIB CONTROLLER 10 bytes of BLOCK HEAD 800076354 will be included in the 76364 bytes of data Exam IEEEB 9 SYST SET Rp 10 Descr 16354 iption 1 PC give the command aad po TEEEB 9 SYST SET 1000a and 0d and 0a to GPIB CONTROLLER he instruction of SYST SET will be transmitted to A9 by PIB CONTROLLER PIB CONTROLLER will read the number of block Head count nd Block Body count of the Block Data from output buffer of nstrument A9 4 GPIB CONTROLLER will transmite the data obtained from item 3 will be transmitted back to PC Exam IEEEB lt 9 SYST SET Rp lt setup prod InfiniiVision ver 02 10 2012022200 srver 2 0 gt Descr iption 1 PC give the command TEEEB lt 9 SYST SET and Od and 0a o GPIB CONTROLLER 2 The instruction of SYST SET will be transmitted to A9 by Q PIB CONTROLLER Page 65 3 GPIB CONTROLLER will read the data from output buffer of instrument A9 when total byte number of receiving data are coincedental with the regulation of Block Head of Block Data obtained from instrument A9 GPIB CONTROLLER will stop reading data automacically The 76354 bytes of Block Data obtained from item 3 will be transmitted back to PC by GPIB CONTROLLER 10 bytes of BLOCK HEAD 800076354 will not be included in he 7635
127. he instruction of IDN simultaneously to all instruments it mean that the instruction of IDN is sent to all instruments with broadcasting only a time by GPIB CONTROLLER all instruments will receive the instruction simultaneously 3 GPIB CONTROLLER will read the data in the output buffer of instrument Al and stop reading until EOI signal is received 4 GPIB CONTROLLER will make the EOS End of String added with the data obtained from item 3 to be replaced with character of Od 0a 5 the data obtained from item 4 will be transmitted back to PC by GPIB CONTROLLER 6 GPIB CONTROLLER will read the data in the output buffer of instrument A4 and stop reading until EOI signal is received 7 GPIB CONTROLLER will make the the EOS End of String added with the data obtained from item 6 to be replaced with character of Od 0a 8 the data obtained from item 7 will be transmitted back to PC by GPIB CONTROLLER 9 GPIB CONTROLLER will read the data in the output buffer of instrument AS and stop reading until EOI signal is received 10 GPIB CONTROLLER will make the EOS End of String added with the data obtained from item 9 to be replace with character of Od 0a 11 the data obtained from item 10 will be transmitted back to PC by GPIB CONTROLLER ii GPIB CONTROLLER will read the data in the output buffer of instrument A28 and stop reading until EOI signal is received jj GPIB CONTROLLER will delete the EOS End of String added
128. he time After instruction given already from PC to instrument through GPIB CONTROLLER and the time before data read from the output buffer of instrument unit of timedelay is also one millisecond Description Delay time is that waiting time of GPIB CONTROLLER occurred between the time after GPIB CONTROLLER received Command from PC and the time before data transmitted to instrument or data read from instrument the length of time will be decided by DlyW or DIyR DlyB lt Lamda Number It is the coefficient of GPIB BUS POLLING time it is meaning that action will be taken of reading writing data from to instrument by PC through GPIB CONTROLLER and of polling continuously to instruments The value is 3000or 7000 default value 3000 is used without instruction of Testsys value 7000 is used with instruction of Testsys Description 1 Except Key Word the parameter of An dStr Key Symbol DIyW etc Are used only when to reguire from the instruction 2 The order or seguence among Key Word Key Symbol and Parameter must be in accordance with syntax stated above 3 Each instruction and syntax will be described in details as item 5 4 x below There are the lists of instruction structures prepared in accordance with BNF as below DlyR and DlyW and DlyB are omitted Instruction IDN Instruction FindListen AAn FindListen AAn FindListen AAn Instruction SPOLL AAn SPOLL AAn SPOLL AAn SPOLL AAn SPOLL
129. ich are output directly from SM59264 through IC CPLD LC 4128V 75T128C or FPGA LCMX0256 quickly will be proply processed by IC and then transmitting signal to GPIB BUS or receiving signal from GPIB BUS according to the result obtained from the IC mentioned above For working on the Operation System of PC only the driver of IC CP2102 USB to UART Converter is sufficient he insturctions of High Level TEXT Type is applied here are many PROGRAMMING TOOL for designing the application program of he KI GCx201 and KI GB120lseries GPIB CONTROLLER such as VISUAL CH VISUAL BASIC VISUAL CH LabVIEW 3 Instruments synchronous and sequential measurement can be made easy through GPIB CONTROLLER Synchronous measurement for multiple instruments For example SEND 5 6 12 VSET 1 4 5 Instruction of VSET 1 4 5 will be transmited to POWER SUPPLY of address 5 6 and 12 throuth GPIB CONTROLLER at a same time Program is simple for example the program code for the format of VISUAL CH as below WriteFile hComm SEND 5 6 12 VSET 1 4 5 r n 26 6nByteWri te NULL SEND 7 11 14 MEAS Instruction of MEAS will be transmited to Digit Multimeter of address 7 11 and 14 throuth GPIB CONTROLLER at a same time Seguencial measurement for multiple instruments For example SEND 5 VSET 1 4 5 SEND 6 VSET 1 4 5 SEND 12 VSET 1 4 5 Instruction of VSET 1 4 5 will be transmited to POWER SUPPLY of address 5 and then 6 and then 12 throuth GPIB C
130. ies 34410A MY47013754 2 35 2 35 0 09 46 09 09 AGILENT TECHNOLOGIES DSO X 2012A MY52132806 02 10 2012022200 17 Agilent Technologies Description E5071B MY42404423 A 06 50 PC give the instruction AAn through GPIB CONTROLLER the Key Symbol added on the rear of Key Word will the have function as below 1 PC read the data of the output buffer of instrument AAn through GPIB CONTROLLER 2 the number of each Gpib address for each instrument An will be added in the front of the data which are read from output buffer of each instrument 3 Od 0a will be added at the rear of the data which are read from output buffer of each instrument An 4 All of the address value the data and the Od 0a obtained Page 40 wholly from item 2 and 3 above mentioned will be sent back to PC through F Key Symbol SEND added with KeySymbol Exam Send 22 TDF M TRA Rp 5625 6636 6161 3446 1226 1264 1136 1294 1134 1087 1309 1239 1182 Description 1 PC give the Command Send 22 TDF M TRA and Od and Oa to GPIB CONTROLLER 2 Instruction TDF M will be transmitted to A22 by GPIB CONTROLLER 3 Instruction TRA will be transmitted to A22 by GPIB CONTROLLER 4 The data in output buffer of instrument A22 will be read by GPIB CONTROLLER 5 The data obtained from item 4 will be transmitted back to PC by GPIB CONTROLLER G Key Symbol SEND added with KeySymbol Exam Send 18 TP
131. instrument as below 1 If instrument is with function for T and L of IEEE488 1 instruction for the primary address will be accepted and secondary address will be discarded by the instrument 2 If instrument is with function for TE and LE of IEEE488 1 instruction for both both primary and secondary address will be accepted by the instrument GPIB Address format Example for address for GPIB of instrument set up as below yt 1 Number f Address of GPIB Data of PIO Secondary Primary 417 0 4 17 1551204 155 12 4 9 0 0 9 5 3 The Structure of GPIB CONTROLLER s Command Following are the basic structure of the GPIB CONTROLLER Command discribed with BNE Backus Normal Form 5 3 01 Command in Description The format which is accepted by GPIB CONTROLLER is the Command all of the data transmitted to GPIB CONTROLLER From PC must be in accordance with the regulation of command CMD Ext Semicolon Instruction CMD Ext Instruction Key Word Key Symbol Ext PARAM EXT Description Instruction will be described in details as item 5 4 x below Instruction CrLf Instruction CMD EXT CrLf Lamda Lamda KySym_Ext iz Key Symbol KySym Ext Lamda PARAM_EXT PARAMETER PARAM EXT Lamda CrLf iz Od Oa Od 0a Oa 0d An_Ext iz An An Ext Lamda dStr Ext iz dStrdStr Ext Lamda Semi colon im 3 Lamda nothing NULL Page 22 MS Unit as time delay measured by 1 millisecond about
132. iple An Command is given to GPIB CONTROLLER from PC if Command do not designate the PARAMETER of Instrument address GPIB CONTROLLER would transmit the Block Data in Command to all of the instruments addresses connected with GPIB CONTROLLER i e AAn equal to all of the instruments addresses connected with GPIB CONTROLLER aLO aLn Combination of null or One more addresses of listener instrument An a00 aQn Combination of null or One more instrument addresses whose ROS signal is activated Description Command is given to GPIB CONTROLLER from PC GPIB CONTROLLER will decide to Communicate with instrument in accordance with the An within Command dStr Block Data enclosed with single quotation mark in head and rear of Block Data i e Block Data Description Command is given to GPIB CONTROLLER from PC the Block Data within the Command are transmitted to instrument from PC through GPIB CONTROLLER dSO dSn dStr Ext Lamda Description Null or one more dStr combined BLEN Lamda Page 24 Number Number of byte of data saved in output buffer of instrument GPIB CONTROLLER instruction parameter DIyR DlyW DlyB DlyW Lamda Number There are time delay occurred between the time after Command given to GPIB CONTROLLER from PC and the time Before Block Data transmitted to instrument from GPIB CONTROLLER Unit of time delay is one millisecond DIyR Lamda Number There are time delay occurred between t
133. k to PC by GPIB CONTROLLER PHe QrogQggydac he instruction of OUTP NORM STAT will be transmitted to 10 by GPIB CONTROLLER PIB CONTROLLER will read the data in the output buffer f instrument AlO and stop reading until EOI signal is eceived PIB CONTROLLER will delete the EOS End of String dded with the data obtained from item f he data left from item g will be added with characters of Od 0a the rear and then transmitted to PC by GPIB CONTROLLER Exam SEND 10 DISP WIND STAT OFF DISP WIND STAT ON Exam Send 10 SOUR FREQ AUTO ONCE ARM SOUR INT CURR OFFS CURR CURR HIGH CURR LOW CURR LIM Rp 0 0000E 00 2 0000E 02 1 0000E 02 1 0000E 02 1 0000E 02 Exam SEND 10 VOLT OFFS VOLT HIGH VOLT LOW VOLT LIM VOLT LIM LOW VOLT LIM STAT Rp 0 0000E 00 5 0000E 01 5 0000E 01 5 0000E 01 5 0000E 01 0 5 4 5 Instructions Receive and Transmit There are 3 functions for this kinds of instructions Function PC read data from instrument through GPIB CONTROLLER and sent back to PC Exam READ 7 Function2 PC send data to instrument through GPIB CONTROLLER Exam READ 7 ISET 1 0 6 Function3 It is with both Functionl and Function2 Functionl will be executed at first Exam READ 7 VSET 1 2 7 Separate description of instructions g h Je Oso Page 67 READ Text format data
134. ll not be stopped The command Send 4 for item 7 mentioned above will not be added with Key Symbol of in the rear this means that the data are completely sent from PC and the data item 8 are transmitted o instrument A4 through GPIB CONTROLLER and the handshake action between GPIB CONTROLLER and instrument will be stopped by the signal of EOI Examples of Model HP6623A Exam SEND 5 PON 1 DSP 1 UNMASK 1 255 OCP 1 1 OVRST 1 OVSET 1 5 Ri pP SRO 1 ID HP6623A Exam SEND 5 VSET 1 3 VSET 1 VOUT 1 Ri p 2 999 3 001 Examples of Model E4402B Exam Send 1 IDN Ri p Hewlett Packard E4402B US39441101 A 07 05 0 Exam Send 18 DISP WIND TRAC Y SCAL PDIV 5 SENS FEED AREF sens freg cent R pP Seach O HO oP ew 5 00000000E 007 Description PC give the command Send 18 DISP WIND TRAC Y SCAL PDIV 5 SENS FEED AREF sens freg cent and 0d and 0a to GPIB CONTROLLER he instruction of DISP WIND TRAC Y SCAL PDIV 5 will be ransmitted to instrument Al8 by GPIB CONTROLLER he instruction of SENS FEED AREF will be transmitted to nstrument Al8 by GPIB CONTROLLER he instruction of sens freg cent will be transmitted to instrument A18 by GPIB CONTROLLER PIB CONTROLLER will read the data in the output buffer f instrument Al8 and stop reading until EOI signal is eceived PIB CONTROLLER will delete the EOS End of String
135. ltiple USB Extension Socket are used it will make USB Bus Power Voltage dropped down once Bus Power voltage is decreasing to less than 4 8 volt interface could not operate usually So avoid dropping over 0 2 volt for voltage value on cable as possible suggest that the length of cable is shorter than that required and the diameter of cable wire is as bigger as possible 2 3 1 Choose the installation of the driver Download the GPIB CONTROLLER Driver The driver setup in compliance with the operating system used by PC For example E Driver CP210x VCP Win XPS2K3Vista 7 CP210x_VCP_Win_XP_S2K3_Vista_7 exe 2 3 2 Confirm the result of installing driver Download KIGirax exe 1 Restart PC and check items in order as below Start gt Set S gt Control Panel C gt System gt Hard ware gt Device manager gt Port COM and LPT gt Silicon Labs Cp210x USB to UART Bridge COMn indicated as procedure above the driver is already installed successfully Page 18 2 Other items a PC is restarted after the driver set up already and will appear the strings of COMn n which is the last letter of COMn to stand for one of number from l to 256 and will be regarded as ID No of New Communication Port to be set up b In case the driver stated as item 2 3 1 was already installed in PC because other application programs also needed to use this driver this step item 3 1 can be omitted c The instru
136. m 3 will be transmitted bac through GPIB CONTROLLER because ist value is obtained from item 2 28 CLS ESE 1 PRI will iption instruction CLS ESE 1 TROLLER Instrument A28 will be conf igured 05 through GPIB CONT Parellel Polled action h GPIB CONTROLLER hroug rument o PC t and PP 00 TUE PRE 32 to A28 through will be configured to the mode of 15 through GPIB CO ed bac D RE 32 13 PP CLS PRE 32 to A28 through be configured to the mode of h GPIB CO TROLLER by PC through GPIB CONTROLLER Polled action will be executed s A28 for execution of item 2 hrough GPIB CONTROLLER R3 is sense l the data P 28 OPC TROLLER by PC through GPIB CONT Polled will be ex ROLLER ecuted s A28 for taking action k to PC through GPIB CONTROLLER R5 is sense l the data ained from item 2 will be 10 Exam PP 28 CLS ESE 1 P Rp 00 PH ESE 1 PRE 32 to A28 through GPIB CONTROLLER ed to the mode of TROLLER by PC Polled will be executed s AAn for taking action k to PC with Hex format 0 and PPR5 is sense l the data be 00 E 32 05 PP PRE 32 to A28 through to the mode of ROLLER by PC will be executed Page 33 of item 3 will be transmitted back to PC with Hex format through GPIB CONTROLLER because ist value is 0 and PPRS is sense 0 the data obtained from item 2 will be 10 Exam PP 5 SRO 2
137. m hWnd ID_EDITBOX EM_REPLACESEL 0 LPARAM inbuf sprintf inbuf SEND d IHI d SEND d MEAS ADDRESS662XA channel ADDRESS34410A WrToBusAndRdFrBus hWnd Wait_TicketTime ID_EDITBOX hComm inbuf outbuf VoltHigh atof outbuf sprintf inbuf Gs r n out buf nlen SendMessage GetD1 gIt em hWnd ID EDITBOX WM_GETTEXTLENGTH 0 0 SendMessage GetDIgItem hWnd ID EDITBOX EM SETSEL nlen nlen SendMes sage GetDlgItem hWnd ID_EDITBOX EM_REPLACESEL 0 LPARAM inbuf Page 112 sprintf inbuf SEND d IDATA d f f r n ADDRESS662XA channel Vol tLow Vol tHigh nlen SendMessage GetDlgI tem hWnd ID_EDITBOX WM_GETTEXTLENGTH 0 0 SendMessage GetD1 gI tem hWnd ID EDITBOX EM SETSEL nlen nlen SendMessage GetDlgItem hWnd ID EDITBOX EM_REPLACESEL 0 LPARAM inbuf nl a dee ee inbuf SEND d CMOD O r n ADDRESS662XA E ON ieee essage bead een RES n essage GetD1 gIt em hWnd ID EDITBOX EM_REPLACESEL 0 LPARAM inbuf a E A A A ene A EEE ON nt lek stee Page 113 SendMessage GetDlgItem hWnd ID_EDITBOX EM_REPLACESEL O LPARAM ICal ok J return OL PERRA ED DE A oe oe de oe oe A HH SE ak ak ak oe oe oe oe oe oe k k k lok ak oe oe oe oe oe oe kkk ZA 3K ak akk sub program is called by windows proc and executed to make
138. mstat goto quit if SetCommState hComm amp cc dcb FALSE goto ERRRIN quit SetupComm hComm BUFSIZE BUFSIZE SetCommMask hComm EV RXCHAR ClearCommEr ror hComm amp dwError amp coms tat return subprogram utilized to save the file name and path of test report for the data of measuring results for instance c temp listfile 34410aCheck66l1c rpt LRESULT CALLBACK SelOutFile HWND hWnd HANDLE hFile char inipath 256 ext 256 SendBuf 1024 ptr multptr int i j n DWORD nByteWrite HANDLE hfile char buf 256 OPENFILENAME FAR ofn memset amp ofn 0 sizeof OPENFILENAME char pathbuf 256 mkdirbuf 256 dirbuf 256 zfname 256 GetProReg irtool SelectFileShowIpath inipath c temp SetCurrentDirectory inipath Page 122 memset zfname 0 sizeof zfname GetProReg irtool OutFile zfname rpt wsprintf buf s zfname GetFullPathName buf si zeof z fname z fname NULL ptr strstr zfname if ptr sprintf ext s ptr if ptr sprintf SendBuf hs files s slrpt files rpt rptl All files I 1 ptr l ptr l ptr l else strcpy SendBuf rpt files rpt l rptl All files 1 11 for izstrlen SendBuf i gt lt 0 1 i f SendBuf i SendBuf i 0 ofn 1StructSize sizeof OPENFILENAME ofn hwndOwner NULL ofn lpstrFilter LPSTR SendBuf ofn nFilterIndex 1 ofn lps
139. nd bis EM ase Exam FindListen 7 4 6 9 Exam Findlisten Exam Findlisten Exam Findlisten 1 0201 5 4 2 Instruction Idn Exam idn E E T Exam idn this is a message for good reading ene 5 4 3 Instruction StatUS BYt Oceni ia ea Instruction SPOLL with or without Key Symbol 4 or Exam Send 7 CLS ESE 1 SRE 96 Send 7 OPC SPOLL Exam SPOLL 7 9 6 A Dana re GPIBECONTROLLER driver imStALVAV TOM evan ekipni ea en esse 3 GPIB CONTROLLER and Instrument Linki sscsscscossssesassessscysssssnsscsassesssassobssscensicsorsesessass COS OOOHOGOGOOGOOGOONOGOUMWM 1 30 Exams S POLLE OVO vereren era ea ev ai ednini Exam SPOLU carens Exam PP 28 ESE J PRE 32 VOB LPP ALO aeri cern Teose PEIEE E A EPEE 32 Exam Pee 5 ORO 2 OO te EN A emee 34 Exame PPF S SRO DV 18 O an att 34 Exam PP 28 OPC 12 PP 5 SRO 2 18 PPH ir 34 Exam SEND 28 OPC SEND 5 SRO 2 PP 1118 36 Exam SEND 28 OPC SEND 5 SRQ 2 PP 1112 36 5 4 4 Instruction Transmi t and Receive wie 36 SEND added with KeySymbol behe sa 36 SEND added with KeySymbol au VEE GPIB CONTROLLER send SIN ROM Encoded data of wave to Agilent 33220A 37 SEND added with KeySymbol N sauer 39 SEND added with KeySymbo ga m 40 SEND added with KeySymbol 40 Exam Send
140. nection of Multiple GPIB INSTRUMENT is not included in the accessories of GPIB CONTROLLER Please purchase it from other professional manufacturer How to Connect PC to GPIB CONTROLLER 2 1 PC with its accessories must support USB interface 2 2 The combination of PC operating system and driver should be compatible GPIB CONTROLLER and the PC operation system The operating systems 1 9 listed as below are all applicable to the GPIB CONTROLLER It is necessary to confirm that A PC with its accessories has to support the USB interface B Operating system used by PC has to support USB interface C Driver installed in PC is required to match the operating system and GPIB CONTROLLER connecting with PC In case the operating system used with PC is one of operating systems stated as below it is applicable for GPIB CONTROLLER 1 Microsoft Windows 98 2 Windows 2000 3 Windows XP 4 Windows SE 5 Windows CE50 CE60 6 Window Vista Page 17 7 Windows 7 8 Windows 8 9 MAC 0S 9 10 MAC 0S X 11 Linux 2 40 3 xx The usb side of GPIB CONTROLLER for PC utilize Usb_Default ID Vendor ID 10C4 Product ID EA60 supplied by the manufacturer of the IC CP2102 SILICON LABORATORIES the driver which take use for PC to be installed the operating systems as listed above will be also supplied SILICON LABORATORIES and has been burned in CD attached as accessories of GPIB CONTROLLER If there are an announcemen
141. ng until EOI signal is received 5 GPIB CONTROLLER will transmite data of 8085 bytes obtained from item 4 back to PC Exam Send idn Rp 04 HEWLETT PACKARD 6611C 0 A 01 03 07 Agilent Technologies 34410A MY47013754 2 35 2 35 0 09 46 09 09 AGILENT TECHNOLOGIES DSO X 2012A MY52132806 02 10 2012022200 17 Agilent Technologies E5071B MY42404423 A 06 50 Description PC give the instruction of idn to instruments AAn through GPIB CONTROLLER the KeyWord of Send is added with a Key Symbol of of which function described as below 1 PC will read output buffer data of instruments AAn through PIB CONTROLLER he value of the each GPIB Address of instrument An will be dded with the data in the front which is read from output ffer of each instrument through GPIB CONTROLLER he character of Od 0a will be added at the rear of the data hich are read from the output buffer of each instrument An ll of the address value data and character of Od 0a b r 2 s ained from item 2 and 3 above mentioned will be ansmi tted back to PC through GPIB CONTROLLER Examples of Model 6611C Exam SEND idn Rp HEWLETT PACKARD 6611C 0 A 01 03 Agilent Technologies MY47013754 344104 2 35 2 35 0 09 46 09 AGILENT TECHNOLOGIES DSO X2012A Ww Ors HO Page 62 MY52132806 02 10 2012022200 Description 1 PC give the command SEND idn and Od and Oa o GPIB CONTROLLER 2 The instruction of idn
142. nse 18 through GPIB CONTROLLER by PC 3 The IEEE488 Parellel Polled action will be executed by PC through GPIB CONTROLLER 4 The data obtained from instruments AAn for taking action of item 3 will be transmitted back to PC with Hex format through GPIB CONTROLLER Exam PP 28 OPC 12 PP 5 SRO 2 18 PP Rp 82 Page 34 Description PC give instruction OPC to A28 through GPIB CONTROLLER PC give instruction SRO 2 to A5 through GPIB CONTROLLER Instrument A28 will be configured to the mode of PPR2 and sense 1 12 through GPIB CONTROLLER by PC Instrument A5 will be configured to the mode of PPR8 and sense 18 through GPIB CONTROLLER by PC l 2 Ir 4 The IEEE488 Parellel Polled action will be executed by PC through GPIB CONTROLLER The data ob ain of item 5 will through GPIB CONTROLLER Exam PP 28 OPC 12 Rp 42 Description 1 2 3 4 PC give ins PC give ins ruc ruc ed from instruments AAn for taking action be transmitted back to PC with Hex format PP 5 SRO 2 17 PP ion OPC to A28 through GPIB CONTROLLER ion SRO 2 to AS through GPIB CONTROLLER Instrument A28 will be configured to the mode of PPR2 and sense 1 12 through GPIB CONTROLLER by PC Instrument A5 will be configured to the mode of PPR7 and sense 1 17 through GPIB CONTROLLER by PC
143. nstruction to GPIB CONTROLLER 2 To receive data from GPIB CONTROLLER and show the a tribute about the received data as follows on the main window of KiGirax exe a Quantities for the received data it will be used to check the Quantities for the BLOCK Data b The hex code of Check Sum for the received data It can be used to get the message whether the received data is ok or not ok c The codes of ANSI ASCII and Hex for received data 3 To execute the global test procedure together with single or multiple instruments for GPIB CONTROLLER 9 The BLOCK DIAGRAM for KI GCx201 and KI GB1201 series GPIB CONTROLLER and the Operation of GPIB CONTROLLER Visual Serial Communication PORT are described as follows The PC driver of CP2102 will make a Visual Serial Communication PORT of COMn 12800 n 8 1 for PC Operation System and the design of the PC application program for the GPIB CONTROLLER is same with that for the Serial Port of RS232 KI GCx201 and KI GB1201 series at 741C373 TSSOP GREHE Predictive Parser To compile Serial Tokens Buffer Scanner Making the Serial Tokens through LALR parser according to the data input from Rs232 Buffer Sn75160 75161 Output driving of Timing Control m and make Serial Actions the Gpib Bus and Sm59264 of MPU 8051 Data Bus line p2 102 ST3232CTR MPU 8051 and ST3232CTR TSSOP LC423 LCMNO256 The Usb vs Rs232 The data communicating and C
144. nt A7 5 GPIB CO ROLLER will delete the EOS End of String added with the data obtained from item 4 6 The data lef and then tran Exam Send 7 CLS Rp 1 40907418E 0 from item 5 will be added with Od 0a at the rear smitted back to PC by GPIB CONTROLLER MEAS DC 4 Description 1 PC give the command Send 7 CLS MEAS DC and Od and 0a to GPIB CONTROLLER 2 The instruction of CLS will be transmitted to A7 by GPIB CONTROLLER 3 The instruction of MEAS DC will be transmitted to A7 by GPIB CONTROLLER 4 GPIB CONTROLLER will read the data in the output buffer of instrument A7 and stop reading until EOI signal is received 5 GPIB CONTROLLER will delete the EOS End of String added with the data obtained from item 4 6 The data left from item 5 will be added with Od 0a at the rear and then transmitted back to PC by GPIB CONTROLLER Exam Send 7 IDN Rp Agilent Techn Exam Send 7 MEAS VOLT AC Rp 2B312E383638393 Description 1 PC give the to GPIB CONTROLLER 2 The instruct GPIB CONTROLLER di of instrumen 4 G with the da 5 The data lef 6 The data of transmitted Exam Send 7 4 id Rp Agilent Techn PACKARD 661 1C Description 1 PC give the PIB CONTROLLER will read the data in the output buffer t A7 and stop reading until EOI signal is received PIB CONTROLLER will delete the EOS
145. oe oe oe oe oe oe oe FA oe kak kk kkk okk f typeoftest 0 m m sprintf Page 115 inbuf SEND d M VSET d f SEND d MEAS ADDRESS662XA channel test point i ADDRESS34410A WrToBusAndRdFrBus hWnd Wait_TicketTime ID EDITBOX hComm inbuf outbuf IE textbuf 0 while strlen textbuf lt 9 strcat textbuf sprintf textbuf strlen textbuf INPUT 3 3f test point i ys else sprintf inbuf SEND d VSET d f SEND d MEAS ADDRESS662XA channel test3 point i ADDRESS34410A WrToBusAndRdFrBus hWnd Wait_TicketTime ID EDITBOX hComm inbuf out buf textbuf 0 while strlen textbuf lt 9 strcat textbuf sprintf textbuf strlen textbuf INPUT 3 3f test3 point i whi le strlen textbuf lt 31 strcat textbuf sprint f textbuf strlen textbuf OUTPUT s outbuf w hile strlen textbuf lt 63 strcat textbuf for combination with format of testing report pc read he value of measurement A from 34410a meter and VOLT value B given to Hp662xa from pc and the accurate value C B A B calculating from A and B and then he value A B C will be made into arrangement as well as formulation to display in the main window of edit box and sent to the file of testing report at the same time if typeoftest 3 sprint f textbuf strlen textbuf ACCURACY 3 3f M r n Page 116 atof outbuf
146. of GPIB 4 5 CONTROLLER 5 Instruction for GPIB CONTROLLER The list of abbreviation common words Abbreviation Description Rem Action taken to translate data byte of dStr from Hex HezToBin format into Binary format Block Data given from PC will be sent to instrument by T Block Data GPrB CONTROLLER T Block Message ae from PC will be sent to instrument by Page 19 t is Internal Device Address Table for GPIB CONTROLLER IDAT With the Findlisten instruction the addresses of all he instruments connected with GPIB CONTROLLER through GPIB CABLE will be registered in IDAT iaB t is internal array buffer of GPIB CONTROLLER Maximum bytes of buffer size to be programmed are 10238 bytes Ist EEE488 1 message of individual status bit such as PPRI PPR2 PPR3 PPR4 PPR5 PPR6 PPR7 PPR8 5 1 Instruments utilized for testing Instruments Model No listed below are used as the basic standard test eguipments for all of the examples as taken below item 5 2 If the other instruments Model No are utilized please refer to the User Manual for those instruments Instrument Model No akers 1 34410a Agilent Technologies 2 HEWLETT PACKARD 6611C Agilent Technologies 3 DSOX2012A Agilent Technologies 4 ES071IB Agilent Technologies 5 HEWLETT PACKARD 8752A Agilent Technologies 6 HEWLETT PACKARD 875
147. of String added ith the data obtained from item 3 3 4 5 Pp JH lt OHOMOO nd then transmitted back to PC by GPIB CONTROLLER Examples of Model TEKTRONIX AFG3102 Exam SEND 3 IDN Rp TEKTRONIX AFG3102 C011603 SCPI 99 0 FV 1 2 1 Examples of Model Hewlett Packard 8648D Exam SEND 6 IDN Rp Hewlett Packard 8648D 3847M00189 B 04 09 Examples of Model HEWLETT PACKARD E3631A Exam SEND 7 IDN Rp HEWLETT PACKARD E3631A 0 2 1 5 0 1 0 Examples of Model WAYNE KERR 4235 Exam SEND 6 IDN Rp WAYNE KERR 4235 0 1 85 Examples of Model RODE NRVD Exam SEND 24 IDN Rp ROH ERSCHWARZ NRVD 100035 002 V1 52 V1 40 Examples of Model ADVANTEST R3162 Exam SEND 10 IDN Rp ADVANTEST R3162 120301463 F05 Examples of Model HEWLETT PACKARD 83620A Exam SEND 19 IDN Rp HEWLETT PACKARD 83620A 3420A02158 05 APR 94 Examples of Model MARCONI INSTRUMENTS 2031 Exam SEND 19 IDN Rp MARCONI INSTRUMENTS 2031 119851047 9 02 Examples of Model SMEO3 Exam SEND 28 IDN Rp Rohde amp Schwarz SME03 835328 017 4 11 Examples of Model SMTO6 Exam SEND 28 IDN Rp Rohde amp Schwarz SMT06 830723 003 4 11 Exam SEND 28 SOUR Rp 99999990 0 o En go es T he data left from item 4 will be added with Od 0a at the rear FREQ 100E6 SOUR POW LIM 16 dBm SOUR FREQ Exam SEND 28 SOUR FREQ 200E6 SOUR SOUR POW LIM 10
148. ontrols of the Conversion and driving for the input and output IEE 488 Function Output line driving of RS232 ports and Gpib Bus To link with To link with the equipments or instruments PC which have RS232 interface Page 8 To support Control PIN for testing board To link with equipments or instruments which have GPIB interface The specification of GPIB CONTROLLER The Electrical specification of KI GC1201 Power voltage DC 5V Using the power of USB PORT Power current DC 200 mA typical and DC 250 mA Max Input Interface USB 2 0 Output Interface IEBE488 GPIB CONTROLLER GPIB SOCKET of type male Support to GPIB CONTROLLER Function SHI AHI L4 T6 Cl C3 C26 Unsupport to GPIB CONTROLLER Message TCT Usable GPIB Address for external instrument from 1 to 30 Serial RS232 protocol for the Input Interface of USB COMn 128000 n 8 1 and None Handshake The Electrical specification of KI GB1201 Power voltage DC 5V Using the power of USB PORT Power current DC 200 mA typical and DC 250 mA Max Input Interface USB 2 0 Output Interface IEEE488 GPIB CONTROLLER GPIB SOCKET of type male Support to GPIB CONTROLLER Function SHI AHI L4 T6 Cl C3 C26 Unsupport to GPIB CONTROLLER Message TCT Usable GPIB Address for external instrument from 1 to 30 Serial RS232 protocol for the Input Interface of USB COMn 128000 n 8 1 and None Handshake Page 9 ra 55 lam gt 0
149. ow atof outbuf sprintf inbuf s r n outbuf nlen SendMessage GetDlgItem hWnd ID EDITBOX WM_GETTEXTLENGTH 0 0 SendMessage GetD1 gI tem hWnd ID EDITBOX EM SETSEL nlen nlen SendMessage GetDlgItem hWnd ID_EDITBOX EM_REPLACESEL 0 LPARAM inbuf sprintf inbuf SEND d VHI d SEND d MEAS r n ADDRESS662XA channel ADDRESS34410A Js nlen SendMessage GetD1 gIt em hWnd ID EDITBOX WM_GETTEXTLENGTH 0 0 SendMessage GetDlgItem hWnd ID EDITBOX EM SETSEL nlen nlen SendMessage Page 107 GetDlgItem hWnd ID_EDITBOX EM_REPLACESEL 0 LPARAM inbuf sprintf inbuf SEND d VHI d SEND d MEAS ADDRESS662XA channel ADDRESS34410A WrToBusAndRdFrBus hWnd Wait_TicketTime ID_EDITBOX hComm inbuf outbuf VoltHigh atof outbuf sprintf inbuf Gs r n out buf nlen SendMessage GetD1 gIt em hWnd ID EDITBOX WM_GETTEXTLENGTH 0 0 SendMessage GetDlgItem hWnd ID EDITBOX EM SETSEL nlen nlen SendMessage GetDlgItem hWnd ID EDITBOX EM REPLACESEL 0 LPARAM inbuf sprintf inbuf SEND d VDATA d f f r n ADDRESS662XA channel Vol tLow Vol tHigh nlen SendMessage GetD1 gIt em hWnd ID EDITBOX WM_GETTEXTLENGTH 0 0 SendMessage GetD1 gI tem hWnd ID EDITBOX EM SETSEL nlen nlen Js SendMessage
150. polling GPIB BUS through GPIB CONTROLLER and GPIB cable will be registered to the IDAT If instruction added with Key Symbol is used addresses of An or AAn will be sent to PC b The connection of GPIB CONTROLLER with PC and all instruments must be set up already before starting to use GPIB CONTROLLER c The design of application program Firmware Versions 2 1 or previous It is necessary to save numbers of AAn in IDAT of GPIB CONTROLLER by Sending findlisten or RESET instruction at first to GPIB CONTROLLER Fi rmware Versions 2 2 or further While the USB connector of the GPIB CONTROLLER and PC are linking PIUG OUT and then PLUG IN GPIB CONTROLLER will execute the i o nstruction of Findlisten to save numbers of AAn in the IDAT and pen the connection of GPIB CONTROLLER and AAn automatically Syntax Key Word Key Symbol Parameter FindListen 7 Command FINDLISTEN Key Symbol FINDLISTEN AAn Key Symbol FINDLISTEN Lamda Page 28 AAn An AAn Lamda Exam FindListen Description 1 PC will transmite instruction Findlisten to GPIB CONTROLLER 2 GPIB CONTROLLER will excute Findlisten Procedure of IEEE488 regard to GPIB Address 1 to 30 3 The results obtain from item 2 will be recorded to IDAT Exam FindListen 7 4 6 9 Rp 07 04 09 Description 1 PC will transmite instruction FindListen 7 4 6 9 to GPIB CONTROLLER 2 GPIB CONTROLLER will excute
151. r Status is not Ready and Lock State GPIP CONTROLLER will transmite Od and Oa to PC 2 If IO Buffer Status is Ready and Lock State GPIP CONTROLLER will transmite 0 and Od and Oa and 0 and Od and Oa and all the data in IO Buffer and Od and Oa to PC 3 if all of the data in IO Buffer are already read by PC the IO Buffer will be cleared and IO Buffer Status will be set as Free State The data transmitted from GPIB CONTROLLER to the Barcode Reader through Rs232 Port The relation about EOI and Rs232 Port output data Od and Oa a If data is not with the signal of EOI GPIB CONTROLLER will transmite the data to Barcode Reader through Rs232 Port The number of data are not limitted If data is with the signal of EOI GPIB CONTROLLER will transmite the data Od and 0a to Barcode Reader through Rs232 Port example SENDI 230 id Description It is not with the signal of EOI example SEND 230 n Rp Rohde amp Schwarz SME03 835328 017 4 11 Description It is with the signal of EOI 6 2 1 The configuration for Data Flow Type a GPIB address for configuring the Data Flow Type Primary 30 and Secondary 30 b Instruction for configuring the Data Flow input 0 or 1 Exam SEND 3030 input 0 Description Configure the Data Flow Type for RS232 interface as Page 76 Default Data Flow Type Exam send 3030 inputzl Description
152. ress primary l secondary 4 will be configured to 3F 3F27F2 GpIO Board address primary l secondary 6 will be configured to 27 GpIO Board address primary l secondary 3 will be configured to F2 Ps GpIO Board Such as KI GRUAQI Exam Rp Description The port GPIB ADDRESS of GpIO Board are 24 25 26 and 27 Exam FINDLISTEN 24 25 26 27 PIO 26 27 3AFF Description Configuring the I O port of address 26 to be 3A Hex and address 27 to be FF Hex Exam Rp PIO 26 27 58 255 Description The input level of I O port for address 26 and 27 are 58 and 255 6 The KI GB1201X KI GB1201R KI GC3201 KI GC3201 and KI GX3201 Extend Function description 6 1 To setup the baudrate of RS232 interface a The GPIB address for the setting of baudrate Primary 30 and Secondary 30 b Instruction for setting baudrate baudratesBaudrate ID Baudrate ID Baudrate 0 2400 1 9600 default situation 2 14400 3 19200 4 28800 5 38400 6 57600 7 115200 8 128000 Exam send 3030 baudrate 2 Rp Description The baudrate of RS232 interface will be configured as 14400 Exam send 3030 baudrate 4 Rp BAUDRATE 28800 Description The baudrate of RS232 interface will be configured as 28800 and transmitted back to PC by GPIB CONTROLLER Note After the baudreate has been set the baudreate value will be saved in the fresh ROM of CPU 8051 and it will not be destroyed when the power of CPU
153. rom instrument to pc through lt b gt GPIB GONTROLLER lt b gt pc will read those data and save in buffer of RdDataStr if GetCommMask hComm amp dwEvent ClearCommError hComm amp dwError amp comstat if ReadFile hComm rbuf comstat cbInQue amp nBytesRead NULL amp amp nBytesRead rbuf nBytesRead lt 0 n lt nBytesRead wsprintf buf s rbuf for i 0 i lt nBytesRead iH if buf i r amp amp buf i n wsprintf RdDataStr strlen RdDataStr vee buf i X buf i 1 r amp amp buf i n goto COMMANDOK else if buf i n goto COMMANDOK continue COMMANDOK wsprintf buf s RdDataStr if StopTest StopCheck 1 StopTest 0 Pos tMessage hWnd WM_SYSCOMMAND SC_CLOSE 0 return NULL return LPSTR buf Page 120 if StopTest StopCheck 1 StopTest 0 Pos tMessage hWnd WM_SYSCOMMAND SC_CLOSE 0 return NULL return NULL EN In accordance with the contents of requirement from parameter the communication port pointed out by content of para will be configured to the format requested by para contents for instance when the content of para is com3 128000 n 8 1 it represents that communication port 3 will be configured to the format of baudrate 128000 no parity data 8bit stop lbit hWnd handle of main window 2 PI RR oe oe SC oe oe oe oe oe SE JE 2 oe oe oe se oe JE Je de oe oe oe se ea 2 oe oe
154. rotocol between PC and GPIB CONTROLLER is COM 128000 N 8 1 g A lot of block data can be read from An by various instructions as Page 20 below ARBITRARY or RdARBITRARY or AgiETB or RdAgiETB or IEEEB or RdIEEEB Instructions plus Key Symbol Please refer 5 4 6 and the example of model DXO X20 of Model 8753D for page 20 ions AgiETB or RdAgiETB lt are given from PC to GP data through GPIB CONTROLLER from output buffer Block Head such as instruction IEEEB lt details please refer to Example 8753D and examp the The Key example instruc Symbol or B 9 o Item 5 4 4 5 4 5 2A for page 22 As well as IEEEB or RdIEEEB added with CONTROLLER And then PC read of instrument except SYST SET of model DSOX2012A le DSOX2012A dStr dStr ther d 2 3 i inst are added with Key Symbol may have guery instruction and other have not in t functions between Key Symbol taken as below instruction of HP8591EM for description e are different Instructions SEND with Key Symbol or are different in the function for transmission of dStr described as below dStr 1 dStr 2 dStr n 2 dStr n 1 dStr n HexToBin on T Block Data N T Block Data HexToBin on T Block Data dStr 2 4E0I N T Block HexToBin on TB loci Data tko Data T Block Data E0I T Block Data T Block Data
155. rpose if PeekMessage amp Message NULL 0 0 PM_REMOVE if Page 129 Me s sage me s sage lt lt WM NCLBUTTONDOWNKAME s s age wPa r am 0x 14 Il Me s sage me s sage lt lt WM SYSCOMMANDKAME s sage wParam SC_CLOSE Mes sage message WM KEYDOWN amp amp LOWORD Mes sage wParam lt lt 0x1b PREME PRA A A A oe oe oe JE JE oe oe oe oe oe DE JE de oe oe oe se se SE Je de oe oe oe oe se se oe de oe oe oe SE SEJE oe oe OCC work done and close main window HPA OR oe oe oe oe IE JE oe ok oe oe ee A 2 oe oe oe se SE JE Je de oe oe oe se se lee de de oe oe se se SE SEJ de DeleteObj ect HBRUSH hbr DeleteObj ect HBRUSH hbrushbtn DeleteObj ect HBRUSH hbrush EndDialog hWnd LOWORD Message wParam PostQui tMessage 0 return TRUE else if Mes sage mes sage WM LBUTTONDOWN amp amp Message hwnd GetD1 gI tem hWnd IDC BUTTON3 78 75 RR RR EHER RR RR oe oe RR JE III RER oe oe oe oe oe oe FA FA k kk oe oe oe oe oe ZA k KK SK akk to set up communication port number done nese oe oe SE Je oe oe oe oe se oe JE JE oe oe oe oe se A A 2 oe oe oe oe se oe JE de oe oe oe oe se SE se Je oe oe oe oe SE GetWindowRect GetDlgItem hWnd IDC BUTTON3 amp btnRect TrackPopupMenu menuport TPM LEFTALIGNI TPM RIGHTBUTTON btnRect left btnRect bottom 1 0 hWnd NULL else if Message message WM_RBUTTONDOWN amp amp Message hwnd GetD1 gI tem hWnd IDC BUTTO
156. s referred to item 2 2 2 Efficient upward in data process IEEE488 1 communicating protocol used by the GPIB BUS side of GPIB CONTROLLER have the merits as below a The data can be transmitted fast to each instrument from PC and also data in the output buffer of each instrument can be transmitted back to PC quickly b Multiple instruments can be efficiently controlled at the same times by PC through GPIB CONTROLLER 3 Application program can be designed with simplification GPIB CONTROLLER is inclusive of the functions of both IEEE488 1 and IEEE488 2 so it is not necessary for PC program designer to waste much time for making attention about the communication between USB and GPIB in addition there are the merits of RS232 as following a The RS232 is used very generally for communicating between PC and various instruments b There are many tool programs to support the design of RS232 s application program c The design of Application program of RS232 is simple Most of PC programmers have technology to easily write RS232 applications programs therefore the GPIB CONTROLLER is used to control many instruments to make full operation of the equipments and obtain performance for cost down Confirm as following items before GPIB CONTROLLER is used 1 1 The attached Accessories for GPIB CONTROLLER a The body of GPIB CONTROLLER Interface b CD copied with DATA 1 2 It is necessary for cable to link The GPIB CABLE used for con
157. se SE SE Je de oe oe oe void CALLBACK InitCommPort HWND hWnd char para define PORTCOUNT 256 char paraZip 32 ptr int i j DWORD dwError char ComText 256 PortText 256 BaudText 256 ClearCommError hComm amp dwError amp comstat CloseHandle hComm wsprintf PortText s para ptr strstr PortText if ptr ptr 0 for i 0 i lt strlen PortText i PortText i toupper PortText i ptr strstr PortText COM if ptr i atoi ptr 3 elsef return wsprintf ComText s para ptr strstr ComText if ptr ptr 0 else goto quit wsprintf paraZip s para hComm CreateFile ComText GENERIC_READ GENERIC_WRITE 0 NULL OPEN EXISTING 0 NULL i hComm lt INVALID HANDLE VALUE goto FINDPORT else Page 121 for jzl j lt lt PORICOUNT jA wsprintf PortText s paraZip 3 ptr strstr PortText if ptr ptr 0 wsprintf BaudText s ptr l i atoi PortText 1 i f i gt PORTCOUNT i l wsprintf ComText COM d i wsprintf paraZip COM d s i BaudText hComm CreateFile ComText GENERIC_READ GENERIC_WRITE 0 NULL OPEN_EXISTING 0 NULL i f hComm lt INVALID HANDLE VALUE goto FINDPORT if j PORTCOUNT goto quit FINDPORT strcpy param paraZip SetWindowText GetDlgItem h nd IDC_BUTTON3 param ifC Bui ldCommDCB param amp cc dcb FALSE ERRRIN ClearCommError hComm amp dwError amp co
158. sition lt REG CREATED NEW KEY char keybuf 256 section 256 wsprintf section Irtool s secstr lResult RegCreat eKeyEx HKEY_CURRENT_USER section 0 m gt 0 KEY ALL ACCESS NULL amp hkGlobal KdwDisposition i 1Resul t ERROR_SUCCESS IResul t RegSetValueEx Page 103 5 kGlobal keystr 0 REG_SZ CONST BYTE txtstr rlen txtstr va Jo RegCloseKey hkGlobal return IResult LRESULT CALLBACK GetProReg LPSTR secstr LPSTR keystr LPSTR txtstr LPSTR defstr long IResult lt 0 HKEY hkGlobal 0 DWORD dwDisposit ion lt REG CREATED NEW KEY dwTypesREG SZ dwData char section 256 keybuf 256 txtbuf 256 wsprintf section Irtool s secstr lResult RegOpenKeyEx HKEY_CURRENT_USER section 0 KEY_ALL_ACCESS amp hkGlobal dwData sizeof txtbuf if 1Resul t ERROR_SUCCESS IResul t RegQueryVal ueEx hkGlobal keystr 0 amp dwType BYTE txtbuf amp dwData if 1Resul t ERROR_SUCCESS amp amp dwType REG SZ RegCloseKey hkGlobal memcpy txtstr txtbuf dwData else memcpy txtstr defstr strlen defstr Page 104 goto REGDEFAULT else memcpy txtstr defstr strlen defstr REGDEFAULT lResult RegCreat eKeyEx HKEY CURRENT USER section 0 wn gt 0 KEY ALL ACCESS NULL amp hkGlobal amp dwDisposition i f 1Resul t ERROR_SUCCESS l
159. sting Page 114 will be configured to output on and 34410a meter configured to volt dc auto range BIER 3 ok ok ok ak ak oe oe oe oe oe oe A FA RR ak ak ak oe oe oe oe oe oe oe oe o o jo kkk ak ak ak oe oe oe oe kkk kkk KK sprintf inbuf SEND d OUT d 1 SEND d conf volt de auto ADDRESS662XA channel ADDRESS34410A WriteFile hComm inbuf strlen inbuf amp nByt eWrite NULL if model 6622 model 6623 amp amp channel 3 model 6624 amp amp channel 3 model 6624 amp amp channel 4 model 6627 typeoftest 3 else typeoftest 0 pees to establish new and empty file of testing report UN PR A oe oe SEJE Joe oe oe oe oe SEJE 2 oe oe oe se CA Je de oe oe oe se se se Je Joe de oe oe se SE SEJ de oe 2 OCCA sk oko hfile CreateFile File Place Csn GENERIC READIGENERIC WRITE 0 NULL CREATE ALWAYS FILE ATTRIBUTE NORMAL NULL SetFilePointer hfile 0 NULL FILE BEGIN CloseHandle hfile for i 0 i lt sizeof test sizeof float amp amp typeoftest 0 i lt sizeof test3 sizeof float amp amp typeoftest s i f StopCheck StopCheck 0 break premie pc give instruction send through GPIB GONTROLLER o send volt command of 66llc power supply to Hp662xa and also the value of measuring will be read from 34410a hrough lt b gt GPIB GONTROLLER lt b gt Dno ok ok oe oe oe oe oe oe oe A Jo kak ak oe oe oe oe oe oe k k ooo ak oe ak
160. t of new operating system except lists as above and also its new driver put out by SILICON LABORATORIES the information of new driver for the IC CP2102 would be taken please refer to its website and try to use the Key Word for Web Searching such as cp2102 driver download Restriction because the Vendor ID or Product ID for each of usb interface in a PC must be different therefore 1 if other usb interface with PC also take use for the Usb Default ID Vendor ID 10C4 Product ID EA60 supplied by SILICON LABORATORIES the other usb interface would be moved out and not work with GPIB CONTROLLER at the same time 2 Each one of PC is able to link with a GPIB CONTROLLER only Total gpib primary address used by multi instruments connected with GPIB CONTROLLER must not be more than 30 pieces of primary address in general an instrument needs a primary address only if it is necessary for gpib to control a lot of Digital IO PIN in order o reduce the consumption of primary address by utilizing secondary address Each primary address is able to control 30 secondary address and a secondary address may control 8 pieces of Digital IO PIN at east through the GPIO interface in a word a primary address is able to control 240 240 8 30 pieces of Digital IO PIN 2 3 Driver install GPIB CONTROLLER driver installation The USB plug of GPIB CONTROLLER is directly linked to the USB socket of PC in case additional USB Extension Cable or Mu
161. tE0I T Block Data HexToBin on T Block Data T Block Data HexToBin on T Block Data dStr 2 T Block HexToBin on m T Block DatatE0I Data T Block Data h If including many dStr are used in an instruction in which some of and other are not i e some of ruction Key Symbol Hex format will be automatically trans format which will be sent to instrumen can be used in at Instruction of the HP8591EM and33220A SEND 18 IB 7383961626 SEND 1 DATA DAC VOLATILE 216 07FF0600040002000000FE00FAOOF8OL Description Page 21 his situation examples and IZ SP 2MHZ RB 100KHZ CF rb ID in the same omatically ically from An a also read au be responded back to PC KHZ CF rb There are a l 00 ing to dStr without Key Symbol OOKHZ CF rb have the same OOKHZ CF rb hen data from instrument read are one more actions taken of s used for Key Symbol ex format are included in an his situation the data of ed into the data of binary f the function of Send 18 IP ID CF 300MHZ SP 2MHZ RB 100KHZ CF rb are same as Send 18 IP ID CF 300MH given to An and then data read automa way as CF and rb given to An d from An all of data read from An wil Send 18 IP CF 300MHZ SP 2MHZ RB 1 no action of reading data from An owi ON Send 18 IP CF 300MHZ SP 2MHZ RB 1 function as Send 18 IP CF 300MHZ SP 2MHZ RB
162. ta changed into Hex Format will become the contents as for parameter dStr of instruction 3 The instruction Key Word SEND is added with KeySymbol and in the rear Such as SEND 7 4D4541533A41433F 4 PC give the command SEND 7 4D4541533A41433F and Od and Oa to GPIB CONTROLLER 5 Hex format of data 4D4541533A41433F will be interpreted to binary format of MEAS AC by GPIB CONTROLLER automatically 6 Data MEAS AC obtained from Step 5 will be transmitted to instrument A7 by GPIB CONTROLLER 7 The output buffer data of instrument A7 will be read by GPIB CONTROLLER 8 GPIB CONTROLLER will delete the EOS End of String added with the data obtained from Step 7 9 the data left from Step 8 after deleting will be added with Od 0a at the rear and then transmitted back to PC by GPIB CONTROLLER C Difference between instruction with and Instruction without Page 39 E Key Symbol SEND added with KeySymbol 1 the instruction withou adding PC give the instruction to GPIB CONTROLLER that parameter of secondary address for the instruction is zero GPIB CONTROLLER will disregard the IEEE488 Message secondary address of SAO it means that GPIB CONTROLLER will not send the signal SAO to the instrument Example SEND 7 MEAS DC a PC give the instructi T on SEND 7 MEAS DC to GPIB CONTROLLER b GPIB CONTROLLER transmite IEEE488 Message
163. te the data of 10054 bytes obtained from item 4 back to PC Exam AgiETB 16 FORM4 OUTPDATA Rp 1 035217000000000E400 0 023804000000000E 01 Description 1 PC give the command AgiETB 16 FORM4 OUTPDATA and Od and 0a to GPIB CONTROLLER Page 61 2 The instruction of FORMI will be transmitted to Al6 by GPIB CONTROLLER 3 The instruction of OUTPDATA will be transmitted to Al6 by GPIB CONTROLLER 4 GPIB CONTROLLER will read the data of 10054 bytes in output buffer of instrument Al6 5 GPIB CONTROLLER will transmite the data of 10054 bytes obtained from item 4 back to PC Examples of Model E5071B Exam Findlisten 17 Rp 17 Exam SEND 17 IDN Rp Agilent Technologies E5071B MY42404423 A 06 50 Exam Send 18 VARDEF D ADDRESS O CLRDSP PUPA 100 180 TEXT Measurement MOVE D ADDRESS DA PUPA 100 100 TEXT Signal found Exam SEND 17 RST Exam SEND 17 FORM DATA ASC CALCI DATA SDAT Rp 1 00489401832E 000 1 14720556199E 002 1 00375867860E 000 Description 1 PC give the command SEND 17 FORM DATA ASC CALCI DATA SDAT and 0d and 0a to GPIB CONTROLLER 2 The instruction of FORM DATA ASC will be transmitted to A17 by GPIB CONTROLLER 3 The instruction of CALC1 DATA SDAT will be transmitted to Al7 by GPIB CONTROLLER 4 GPIB CONTROLLER will read the data in output buffer of instrument Al6 and stop readi
164. ted to Al6 by GPIB CONTROLLER 3 The instruction of OUTPDATA will be transmitted to Al6 by GPIB CONTROLLER 4 GPIB CONTROLLER will read the 1024 byte of data in output buffer of instrument A16 5 GPIB CONTROLLER will transmite the data obtained from item 4 back to PC Exam send 16 FORM4 OUTPDATA Rp 4 472656000000000E 01 1 134766000000000E400 1 377075000000 Description 1 PC give ARBIT o GPIB he ins PIB CO he ins y GPIB PIB CO f inst eceive PIB CO soo he command RARY 1024 16 FORM CONTROLLER truction of FORM4 TROLLER CONTROLLER TROLLER will read d OUTPDATA and Od and 0a will be transmitted to Al6 by he da truction of OUTPDATA will be transmitted to Al6 a in output buffer rument Al6 and stop reading until EOI signal is TROLLER will transmite the data obtained Page 60 from item 4 back to PC Examples of Model 8752a Exam Send 16 IDN Rp HEWLETT PACKARD 8752A 0 1 01 Exam SEND 16 FORMI OUTPDATA Rp 4A BE CA SO ae GE Prenar ES de Description 1 PC give the command SEND 16 FORMI OUTPDATA and 0d and Oa to GPIB CON
165. that is power supplier Hp662xa and also calibrated by pc through GPIB CONTROLLER GetWindowText GetDlgItem hWnd IDC SELOUTP buf sizeof buf wsprintf channelno s buf strlen 662x wsprint f modelno s buf modelno strlen 662x 0 if strcmp modelno 6621 wsprint f modelno 6622 mode1 6622 Page 133 else if strcmp modelno 6622 wsprint f modelno 6623 mode1 6623 else if stremp modelno 6623 wsprint f modelno 6624 mode 1 6624 else if strcmp modelno 6624 wsprint f modelno 6627 model 6627 else if strcmp modelno 6627 wsprint f modelno 6621 model 6621 else wsprint f modelno 6623 mode1 6623 if stremp modelno 6621 stremp modelno 6622 if stremp channelno Chl amp amp stremp channelno Ch2 wsprintf channelno Chl channelzl else if stremp modelno 6624 stremp modelno 6627 if strcmp channelno Chl amp Page 134 stremp channelno Ch2 44 stremp channelno Ch3 44 stremp channelno Ch4 wsprintf channelno Chl channel 1 else if stremp modelno 6623 if stremp channelno Chl 44 stremp channelno Ch2 44 stremp channelno Ch3 wsprintf channelno Chl channelzl wsprint f buf s s modelno channel no SetWindowText GetDlgItem hWnd IDC_SELOUTP buf
166. tr in instruction only would be sent to AAn through GPIB CONTROLLER if dStr are not used in the instruction given to GPIB CONTROLLER from PC but Key Symbol 6 are used the contents of IDAT would be sent to AAn through GPIB CONTROLLER Separate description of instructions Various format of Block Data sent to MAn from PC through K PRODUC a b IEEEBW IEEE488 DEFINITE LENGIH ARBITRARY BLOCK AgiETBW Agilent 8753ET Forml 2 3 5 Page 69 c ARBITRARYW Data of any format Syntax Key Word Key Symbol Param AgiETBW 1 lt gt 2 2 1 AAn dStr DlyW IEEEBW lt gt 4 0 4 1 4 AAn dStr DiyW ARBITRARYW lt gt 0 4 1 AAn dStr DlyW Command JEEEBW Key Symbol IEEEBW An DSOToDSnW Key Symbol IEEEBW P I lt I gt I BE ltl Command ARBITRARYW Key Symbol ARBITRARYW BLEN An DSOToDSnW Description BLEN is the data byte number to be transmitted to PC Key Symbol ARBITRARYW ez lt gt 8 17 Command AgiETBW Key Symbol AgiETBW An DSOToDSnW Key Symbol AgiETBW I lt I gt I JeI 7 AAn An AAn Lamda DSOToDSnW DSOToDSnW_R DlyW DlyW Lamda DSOToDSn_R dStr DSOToDSn_R Lamda Exam AgiETBWA 9 4D4541533A41433F Rp 1 17373430E 06 5 4 7 Instructions IEEE488 Message Separate Description of instructions MsgREN TEEE488 1 REN
167. trFile lt LPSTR zfname ofn nMaxFile sizeof zfname ofn nFileOffset 0 ofn lpstrFileTitle NULL ni l F l ofn nMaxFileTitle lt 0 ofn lpstrInitialDir NULL ofn Flags OFN_SHOWHELP IOFN_ENABLESIZING OFN_EXPLORER OFN_LONGNAMES ofn IpstrTitle select filename for list box items if GetOpenFileName amp ofn multptr zfname else return 0 wsprintf File_Place_Csn s multptr if _access File_Place_Csn 0 wsprintf pathbuf s File Place Csn ptr strrchr pathbuf if ptr ptr 0 if SetCurrentDirectory pathbuf Page 123 wsprintf mkdirbuf s pathbuf ptr strstr mkdirbuf if ptr NULL GetCurrentDirectory sizeof dirbuf dirbuf dirbuf 2 0 wsprintf mkdirbuf s dirbuf SetCurrentDi rectory mkdi rbuf wsprint f mkdirbuf s pathbuf else wsprintf dirbuf s mkdirbuf dirbuf 2 0 wsprint f mkdirbuf s di rbuf SetCurrentDi rectory mkdi rbuf ptr strstr pathbuf if ptr wsprint f mkdirbuf s ptr l if mkdirbuf wsprint f mkdirbuf strlen mkdirbuf ptr strtok mkdirbuf if ptr _mkdir ptr wsprintf dirbuftstrlen dirbuf s ptr while 1 ptr strtok NULL if ptr SetCurrentDi rectory dirbuf _mkdir ptr wsprintf dirbuftstrlen dirbuf s ptr continue else break SetProReg irtool OutFile File Place Csn SendD1 gI temMessage hWnd IDC_FILENAME WM_SETTEXT 0 LPA
168. ver 02 10 2012022200 Description 1 PC give the command data ARBITRARY 100 9 SYST SET and 0d and Oa to GPIB CONTROLLER 2 The instruction of SYST SET will be transmitted to A9 by GPIB CONTROLLER 3 GPIB CONTROLLER will read the foremost 100 bytes of data in output buffer of instrument A9 4 The 100 bytes of data obtained from item 3 will be transmitted back to PC by GPIB CONTROLLER Exam ARBITRARY 10240 9 Rp rol section Description 1 PC give the command data ARBITRARY 10240 9 and 0d and 0a to GPIB CONTROLLER 2 GPIB CONTROLLER will read the next 10240 bytes of data in output buffer of instrument A9 3 The 10240 bytes data obtained from item 2 will be transmitted back to PC by GPIB CONTROLLER Exam ARBITRARY 66024 9 Rp 800076354 lt setup prod InfiniiVision ver 02 10 2012022200 srver 2 0 gt Description 1 2 3 give the command ata ARBITRARY 66024 9 and 0d and 0a o GPIB CONTROLLER PIB CONTROLLER will read the next 66024 bytes of data n output buffer of instrument A9 h a a8 e 66024 bytes data obtained from item 2 will be transmitted ck to PC by GPIB CONTROLLER Ar Exam ARBITRARY 76354 SYST SET Rp 800076354 lt setup prod InfiniiVision ver 02 10 2012022200 srver 2 0 Description 1 PC give the command data ARBITRARY 76364 9 SYST SET and Od and 0a to GPIB CONTROLLER The
169. zel Exam SetPMT 0a gt 72 Exam Set PMT se 12 Exam Set PMT 19 Exam Set RDT nesi SAVA Exam SetRDT2 0a iin ita 713 5 4 10 en ee Board Configuration ss 73 Exam PIO 26 27 SABE ceceni innii i 74 Exam PIO 26 ja aen old 6 The KI GB1201X KI GB1201R KI GC3201 KI GC3201 and KI GX3201 Extend Function 74 6 1 To setup th Gaudrate of RS232 interac unread dd 74 Exam send 3030 baudratesi o 74 Exam Send 3030 eek selo 6 2 Description of Data Flow for the RS232 interface 18 The relation about EOI and Rs232 Port output data Od and Oa se 16 6 2 1 The configuration for Dat aah Ow TIDE arten tkn 76 Exam SEND 3030 inputso 76 Exam send 3030 inputs sommeren vet 6 3 The reading and writing for the interface of RS232 se DD Exam Send 230 SHDN aii nina eneen ss 1 6 4 The reading and writing for the interface of Digital I O port pesni Exam PIO 130 430 ZAE an en en dd Exam PIO 130 17 Exam PIO 1304 east engen ET 6 5 To control the digital input RI and DSR and output RTS and DTR 6 6 Digital I O port address Primary 30 Secondary 5 Exams PIO 530 JA out ii eenden see Exam PIO 530 anne k GPIB UTILITY of GPIB CONTROLLER with HP G623A 0s scssscsescassiscacasacccccsvesssnexsseseactvssacconssssnssssebsieans GPIB UTILITY of GPIB CONTROLLER with Agilent 34411 0A un GPIB UTILITY of GPIB

Download Pdf Manuals

image

Related Search

Related Contents

Nikon FM10 User's Manual  dossier - Herblay    WLAN 簡易取扱説明書  FA-5546-2 - BM  USER`S MANUAL  Electronic Catalog User Manual  EKB3W  Simucad Management Console (SMAN)  De'Longhi Utility Heater User's Manual  

Copyright © All rights reserved.
Failed to retrieve file