Writing To The Display; Programming Status; Detecting Events Via Sro; Reading Specific Registers - Agilent Technologies E4356A Operating & Programming Manual

Telecommunications dc power supply
Table of Contents

Advertisement

You can remotely save and recall operating states. See *SAV and *RCL in "Chapter 7 - Language Dictionary" for the
parameters that are saved and recalled.
Note
When you turn the power supply on, it automatically retrieves the state stored in location 0. When a power
supply is delivered, this location contains the factory defaults (see *RST in Chapter 7).
OUTP OFF;VOLT:LEV 65;PROT 68
CURR:LEV 33;PROT:STAT ON
*SAV 2
*RCL 2

Writing to the Display

You can include messages to the front panel LCD in your programs. The description of DISP:TEXT in "Chapter 7 -
Language Dictionary" shows the number and types of permitted display characters. In order to write to the display, you
must first change it to text mode as shown in the following example:
DIS:MODE TEXT
RECALLED 2
DIS:MODE NORM

Programming Status

You can use status programming to make your program react to events within the power supply. Chapter 8 explains the
functions and bit configurations of all status registers. Refer to Figure 8-1 in that chapter while examining the examples
given here.

Detecting Events via SRO

Usually you will want the power supply to generate interrupts (assert SRQ) upon particular events. For this you must
selectively enable the appropriate status register bits. The following examples allow the power supply to assert SRQ under
selected conditions.
1. STAT:OPER:ENAB 1280;PTR 1280;*SRE 128
2. STAT:OPER:ENAB 1;PTR 1;NTR 1;*SRE 128
3. STAT:QUES 3;PTR 3;*SRE 128
4. STAT:OPER:ENAB 1280;PTR 1280;
STAT:QUES 3;PTR 3;*SRE 136

Reading Specific Registers

You can exercise program control without interrupts by reading specific registers.
STAT:OPER:1280;EVEN?
STAT:OPER:ENAB 1313;PTR 1313;EVEN?
STAT:OPER:ENAB?;EVENT?;:STAT:QUES:ENAB?;EVEN?;:*ESE?;*ESR?
54
Remote Programming
Program a desired operating state.
Save this state to location 2.
(Later) recall this same state.
Switch display to text mode.
Write "Recalled 2" to the display.
Return dispaly to its normal mode.
Assert SRQ when the unit switches between CV and CC modes.
Assert SRQ when the unit enters or leaves calibration mode.
Assert SRQ when the unit goes into overvoltage or overcurrent condition.
Assert SRQ under any event occurring in 1. or 3., above.
Enable only the CV and CC events and read their status.
Enable all conditions of the Operation Status register and read any
events.
Read which events are active and which events are enabled in the
Operation, Questionable, and Standard Event status registers.

Advertisement

Table of Contents
loading

Table of Contents