EasyManua.ls Logo

Keysight Technologies 6811C

Keysight Technologies 6811C
315 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Introduction to Programming 2
Keysight Models 6811C, 6812C, and 6813C Programming Guide 33
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
(Default - Baudrate: 9600, Parity: None)
'
' Send SCPI commands
*RST ' Resets the ac source
VOLT 60 ' Set voltage to 60 volts
FREQ 50 ' Set frequency to 50 hertz
OUTPUT ON ' Turn on the output
*IDN? ' Query the ac source identification string
[Wait for response]
MEAS:VOLT:AC? ' Query the ac source voltage

Table of Contents

Other manuals for Keysight Technologies 6811C

Related product manuals