beautypg.com

5 bop visa instrument driver, 6 rs232-c operation, 1 serial interface – KEPCO BOP 1KW-MG Operator Manual, Firmware Ver.2.38 to 2.47 User Manual

Page 112: Bop visa instrument driver -48, Rs232-c operation -48, Serial interface -48, R. 3.5.6

background image

3-48

BOP HIPWR 080709

3.5.5

BOP VISA INSTRUMENT DRIVER

The VISA instrument driver for the BOP power supply, available for download at www.kepco-
power.com/drivers.htm, simplifies programming with a VISA compatible GPIB controller.
Included are:

• source code (C) for all VISA functions (kp_bophi.c)

• a complete programming reference manual (kp_bophi.doc)

• a sample application of the VISA functions (written in C) which can be used to program

one or more BOP power supplies using a virtual front panel observed on a com-

puter monitor (kp_appl.c)

Although the software drivers supplied by Kepco are VISA compliant, they also require the
installation of the proper VISA driver from your GPIB card supplier. Many vendors supply this
software with the hardware; National Instruments (http://www.natinst.com) has the driver for
their cards available on the internet at a file transfer site (ftp://ftp.natinst.com — find the folder
for support and VISA drivers).

3.5.6

RS232-C OPERATION

The BOP may be operated via an RS232-C terminal, or from a PC using a terminal emulation
program. The default settings are as follows:

• Baud rate:

OFF

• Parity:

None

• Data Bits

8

• Stop Bits

1

• Prompt

DISABLE

• XON/XOFF

ENABLE

To change baud rate, or select prompt, echo or XON/XOFF, refer to PAR. 3.5.3.2 and Table 3-
16
.

3.5.6.1

SERIAL INTERFACE

The serial interface behaves like the GPIB interface in that the command is parsed after receiv-
ing a control character of either a Line Feed or Carriage Return. The serial interface supports six
special control characters. The six special control characters are:

Escape (1B

H

)

Causes the input buffer to be cleared. This character is used to ensure
that the buffer is empty when the host powers on since it is possible
that the TMA 4882-27 controller was previously powered on and
received some characters prior to the initialization of the host com-
puter.

Backspace (08

H

)

Causes the last character in the input buffer to be removed from the
input buffer queue.

Carriage Return (0D

H

)

Causes the input buffer to be parsed by the BOP.

Line Feed (0A

H

)

Causes the input buffer to be parsed by the BOP.