
Advanced Topics
Using an External Computer to Control the Test Set
Write Commands:
info$=“refl_01” ‘command for reflection to port 1 length%=len(info$) ‘length of command HpibEoi(hHpib;7,0) 'disable EOI HpibEol(hHpib;7,””,0) 'disable EOL
HpibOutputs (hHpib;712,info$,length%)) 'send command to test set HpibEol(hHpib;7,chr$(13)+chr$(10),2)
HpibEoi(hHpib;7,1,)
| Read Commands: |
| info$=“id?” ‘command for test set identification. |
| length%=len(info$) ‘length of command |
| max.len% = 10 ‘max length data from id? or swxx? function. |
| infi$ = space$(max.len%) |
| HpibEoi(hHpib;7,0) 'disable EOI. |
| HpibEol(hHpib;7,””,0) 'disable EOL |
| HpibOutputs (hHpib;712,info$,length%)) 'send command to test set. |
| HpibEnters(hHpib%,712,infi$,max.len%) ‘get data from test set. |
| HpibEol(hHpib;7,chr$(13)+chr$(10),2) |
| chr$(13)+chr$(10). |
| HpibEoi(hHpib;7,1,) |
| returned byHpibOpen. |
| For more information on the EOI and EOL commands, refer to the |
NOTE | |
| programming library manual supplied with the 82335 interface. |
| Using HPVEE |
| If you are using HPVEE, be sure to set the Direct I/O in the Advance |
| Device Configuration so the Read Terminator and Write EOL Sequence |
| is set to “\n”. In the I/O Transaction make sure the EOL is ON. |
7 | Agilent Technologies Z5623A Option H48 |