User`s guide
Table Of Contents
- Legal Notices
- Safety Notices
- In this Book
- Contents
- Quick Reference
- Installation
- Operating the Power Supply Locally
- Operating the Power Supply Remotely
- Language Reference
- SCPI Command Summary
- Calibration Commands
- Measure Commands
- Output Commands
- Source Commands
- [SOURce:]CURRent[:LEVel][:IMMediate][:AMPLitude]
|MIN|MAX [SOURce:]CURRent[:LEVel][:IMMediate][:AMPLitude]? [MIN|MAX][SOURce:]CURRent[:LEVel]:TRIGgered[:AMPLitude] |MIN|MAX [SOURce:]CURRent[:LEVel]:TRIGgered[:AMPLitude]? [MIN|MAX] - [SOURce:]CURRent:PROTection:STATe ON|OFF[SOURce:]CURRent:PROTection:STATe?
- [SOURce:]VOLTage[:LEVel][:IMMediate][:AMPLitude]
|MIN|MAX [SOURce:]VOLTage[:LEVel][:IMMediate][:AMPLitude]? [MIN|MAX][SOURce:]VOLTage[:LEVel]:TRIGgered[:AMPLitude] |MIN|MAX [SOURce:]VOLTage[:LEVel]:TRIGgered[:AMPLitude]? [MIN|MAX] - [SOURce:]VOLTage:LIMit:LOW
|MIN|MAX [SOURce:]VOLTage:LIMit:LOW? [MIN|MAX] - [SOURce:]VOLTage:PROTection:LEVel
|MIN|MAX[SOURce:]VOLTage:PROTection:LEVel? [MIN|MAX]
- [SOURce:]CURRent[:LEVel][:IMMediate][:AMPLitude]
- Status Commands
- STATus:PRESet
- STATus:OPERation[:EVENt]?
- STATus:OPERation:CONDition?
- STATus:OPERation:ENABle
STATus:OPERation:ENABle? - STATus:OPERation:NTR
STATus:OPERation:PTR STATus:OPERation:NTR? STATus:OPERation:PTR? - STATus:QUEStionable[:EVENt]?
- STATus:QUEStionable:CONDition?
- STATus:QUEStionable:ENABle
STATus:QUEStionable:ENABle? - STATus:QUEStionable:NTR
STATus:QUEStionable:PTR STATus:QUEStionable:NTR? STATus:QUEStionable:PTR? - *CLS
- *ESE*ESE?
- *ESR?
- *OPC*OPC?
- *SRE*SRE?
- *STB?
- *WAI
- System Commands
- Trigger Commands
- Programming Examples
- Specifications
- Verification and Calibration
- Verification
- Equipment Required
- Measurement Techniques
- Constant Voltage Tests
- Constant Current Tests
- Test Record Form – Agilent N5741A and N5761A
- Test Record Form – Agilent N5742A and N5762A
- Test Record Form – Agilent N5743A and N5763A
- Test Record Form – Agilent N5744A and N5764A
- Test Record Form – Agilent N5745A and N5765A
- Test Record Form – Agilent N5746A and N5766A
- Test Record Form – Agilent N5747A and N5767A
- Test Record Form – Agilent N5748A and N5768A
- Test Record Form – Agilent N5749A and N5769A
- Test Record Form – Agilent N5750A and N5770A
- Test Record Form – Agilent N5751A and N5771A
- Test Record Form – Agilent N5752A and N5772A
- Calibration
- Verification
- Service
- Compatibility
- Index
- Declaration of Conformity
6 Programming Examples
82 Series N5700 User’s Guide
Output Programming Example
This program sets the voltage, current, over-voltage, and the over-
current protection. It turns the output on and takes a voltage
measurement. When done, the program checks for instrument errors
and gives a message if there is an error.
Sub main_EZ()
Dim IDN As String
Dim IOaddress As String
Dim ErrString As String
' This variable controls the voltage
Dim VoltSetting As Double
' This variable measures the voltage
Dim measVolt As Double
' This variable controls the current
Dim CurrSetting As Double
' These variables control the over voltage protection settings
Dim overVoltSetting As Double
' These variables control the over current protection
Dim overCurrOn As Long
'These variable are neccessary 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.
IOaddress = "GPIB0::5::INSTR"
' Use the following line for LAN communication
' IOaddress="TCPIP0::141.25.36.214"
' Use the following line instead for USB communication
' IOaddress = "USB0::2391::1799::US00000002"
' Initialize the VISA COM communication
Set ioMgr = New AgilentRMLib.SRMCls
Set Instrument = New VisaComLib.FormattedIO488
Set Instrument.IO = ioMgr.Open(IOaddress)
VoltSetting = 3
CurrSetting = 1.5 ' amps
overVoltSetting = 10
overCurrOn = 1 '1 for on, 0 for off
With Instrument
' Send a power reset to the instrument
.WriteString "*RST"
' Query the instrument for the IDN string
.WriteString "*IDN?"
IDN = .ReadString
' Set the voltage
.WriteString "VOLT" & Str$(VoltSetting)