P1351ieee.wpd
5-1-9
GPIB PROGRAMMING EXAMPLES
Examples of actual command strings transmissions and typical responses are outlined below.
All commands must be in upper case ASCII, lower case characters are ignored. All commands transmitted
to the P1351 must terminate with a carriage return <cr> and a line feed <lf>, as will all responses received
from the P1351.
IMPORTANT NOTE:
The EOI line of the GPIB controls MUST be asserted when transmitting the line feed
character, otherwise the P1351 Source will not recognize command reception and command processing will
not occur.
EXAMPLE 1:
Setup a single range P1351 Source to output 120 V @60 Hz, and close the output relay.
Transmit setup command:
FNC ACS :CHO SET VOLT 120 SET FREQ 60<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.
F07ACS00 (MOD) ILLEGAL VALUE <cr><lf>
: Negative response indicating error condition.
(Typically a negative response would only occur if an error existed in the entry or reception of the command
string, or the values entered were out of range of the P1351 Source).
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.
F07ACS00 (MOD) NO SETUP <cr><lf>
: Negative response indicating error condition.
(Negative response would only occur if invalid or no setup string had been transmitted prior to close
command).
EXAMPLE 2 :
Setup a dual range P1351 Source to output 30 V on low range @400 Hz.
Transmit setup command:
FNC ACS :CHO SET VOLT 30 SET FREQ 400 SET VLTO <cr><lf>
Transmit status command to request status response:
STA <cr><lf>
Talk adrress the P1351 Source to enable response:
<space><cr><lf>
: Positive response indicating status is OK.