P1351ieee.wpd
5-1-10
GPIB PROGRAMMING EXAMPLES (continued)
3. EXAMPLE:
Setup a dual range P1351 Source to output 115 V on high range @50 Hz, and read back
what the actual voltage, current, and frequency being output is set at.
Transmit setup command:
FNC ACS :CHO SET VOLT 115 SET FREQ 50 SET VLT1 <cr><lf>
Transmit status command to request status response:
STA <cr><lf>
Talk address the P1351 Source to enable response:
<space><cr><lf>
: Positive response indicating status is OK.
Transmit output relay close command:
CLS :CHO <cr><lf>
Transmit status command to request status response:
STA <cr><lf>
Talk address the P1351 Source to enable response:
<space><cr><lf>
: Positive response indicating status is OK.
Transmit fetch volt command:
FTH VOLT <cr><lf>
Talk address the P1351 Source to enable response:
115.0 <cr><lf>
Transmit fetch current command:
FTH CURR <cr><lf>
Talk address the P1351 Source to enable response:
5.2 <cr><lf>
Transmit fetch frequency command:
FTH FREQ <cr><lf>
Talk address the P1351 Source to enable response:
50 <cr><lf>