EasyManuals Logo
Home>Agilent Technologies>Power Supply>N6751A

Agilent Technologies N6751A User Manual

Agilent Technologies N6751A
206 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
Page #110 background imageLoading...
Page #110 background image
7 Programming Examples
110 Series N6700 User’s Guide
Output Programming Example
This is a simple program that sets a voltage, current, over-voltage,
and the status of over-current protection. When done, the program
checks for instrument error and gives a message if there is an error.
Sub output_programming_example()
Dim IDN As String
Dim GPIBaddress As String
Dim ErrString As String
' This variable controls the channel number to be programmed
Dim channel As String
' This variable controls the voltage
Dim VoltSetting As Double
' This variable measures the voltage
Dim MeasureVoltString As String
' This variable controls the current
Dim CurrSetting As Double
' This variable controls the over voltage protection setting
Dim overVoltSetting As Double
'These variables are necessary to initialize the VISA COM.
Dim ioMgr As AgilentRMLib.SRMCls
Dim Instrument As VisaComLib.FormattedIO488
' The following command line provides the program with the VISA name of the
' interface that it will communicate with. It is currently set to use GPIB.
GPIBaddress = "GPIB0::5::INSTR"
' Use the following line instead for LAN communication
' TCPIPaddress="TCPIP0::141.25.36.214"
' Use the following line instead for USB communication
' USBaddress = "USB0::2391::1799::US00000002"
' Initialize the VISA COM communication
Set ioMgr = New AgilentRMLib.SRMCls
Set Instrument = New VisaComLib.FormattedIO488
Set Instrument.IO = ioMgr.Open(GPIBaddress)
' The next three command lines set the voltage, current, and over voltage
VoltSetting = 3
CurrSetting = 1.5 ' amps
overVoltSetting = 10
' This variable can be changed to program any channel in the mainframe
channel = "(@1)" ' channel 1
With Instrument
' Send a power reset to the instrument
.WriteString "*RST"
' Query the instrument for the IDN string
.WriteString "*IDN?"
IDN = .ReadString

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Agilent Technologies N6751A and is the answer not in the manual?

Agilent Technologies N6751A Specifications

General IconGeneral
BrandAgilent Technologies
ModelN6751A
CategoryPower Supply
LanguageEnglish

Related product manuals