Rs-232 Programming Example - Keysight Technologies 6811C Programming Manual

Ac power solutions
Hide thumbs Also See for 6811C:
Table of Contents

Advertisement

RS-232 Programming Example

The following program illustrates how to program the ac source using RS-232 to
set the output voltage and frequency and to read back the model number and
output voltage.
' Program to write and read via RS232
' Configure serial port (e.g. COM1) for:
' Bits per second: select 9600 baud (or desired baudrate)
' Start bits: select 1
' Data bits: select 8
' Stop bits: select 2
' Parity: select None
' Flow control: select None
' Send line feed [Enter]
' Reserve 1000 character buffer for serial I/O
'
' Ensure identical baud and parity settings on ac source
'
' Send SCPI commands
*RST
VOLT 60
FREQ 50
OUTPUT ON
*IDN?
[Wait for response]
MEAS:VOLT:AC?
Keysight Models 6811C, 6812C, and 6813C Programming Guide
(Default - Baudrate: 9600, Parity: None)
' Resets the ac source
' Set voltage to 60 volts
' Set frequency to 50 hertz
' Turn on the output
' Query the ac source identification string
' Query the ac source voltage
Introduction to Programming
2
33

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

6812c6813c

Table of Contents