Chapter 4 Remote Interface Reference
Simplified Programming Overview
69
4
Reading a Query Response
Only the query comman ds (commands that end with “ ? ” ) will instruct the
power supply to send a re sponse message . Queries return either output values
or internal instru ment settings . For exampl e, the follow ing statements
executed from your computer will read the power supply’s error queue and
print the most recent error:
dimension statement Dimension string array (80 elements)
‘‘
SYST:ERR?
’’
Read error queue
bus enter statement Enter error string into computer
print statement Print error string
Selecting a Trigger Source
The power supply wi ll accept a ‘‘bus’’ (software) trigger or an immedi ate
internal trigger as a trigger source. By default, the ‘‘BUS’’ trigger source is
selected. If you want the power supply to use an immediate internal trigger,
you m ust select ‘‘
IMMediate
’’. F o r examp le , the f o l lo wi n g s t a t eme n t s
executed from your computer will set to an output of 3 V/1 A imm edi ately:
‘‘
VOLT:TRIG 3.0
’’
Set the triggered voltage level to 3.0 V
‘‘
CURR:TRIG 1.0
’’
Set the triggered current level to 1.0 A
‘‘
TRIG:SOUR IMM
’’
Select the immediate trigger as a source
‘‘
INIT
’’
Cause the trigger system to initiate