T O D E T E R M I N E W H E N A C O M M A N D S E Q U E N C E I S C O M P L E T E; U S I N G * O P C T O S I G N A L W H E N D A T A I S I N T H E O U T P U T B U F F E - Agilent Technologies E3646A/47A User Manual

E364xa series. dual output dc power supplies
Table of Contents

Advertisement

Chapter 4 Remote Interface Reference
The SCPI Status Registers
To Determine When a Command Sequence is Completed
1
S e n d a d e v i c e c l e a r m e s s a g e t o c l e a r t h e p o w e r s u p p l y ' s o u t p u t b u f f e r
CLEAR 705
( e . g . ,
) .
2
C l e a r t h e e v e n t r e g i s t e r s w i t h t h e
E n a b l e t h e " o p e r a t i o n c o m p l e t e " b i t ( b i t 0 ) i n t h e S t a n d a r d E v e n t
3
r e g i s t e r b y e x e c u t i n g t h e
*OPC?
4
S e n d t h e
( o p e r a t i o n c o m p l e t e q u e r y ) c o m m a n d a n d e n t e r t h e
r e s u l t t o e n s u r e s y n c h r o n i z a t i o n .
5
E x e c u t e y o u r c o m m a n d s t r i n g t o p r o g r a m t h e d e s i r e d c o n f i g u r a t i o n ,
a n d t h e n e x e c u t e t h e
c o m m a n d . W h e n t h e c o m m a n d s e q u e n c e i s c o m p l e t e d , t h e " o p e r a t i o n
c o m p l e t e " b i t ( b i t 0 ) i s s e t i n t h e S t a n d a r d E v e n t r e g i s t e r .
U s e a s e r i a l p o l l t o c h e c k t o s e e w h e n b i t 5 ( s t a n d a r d e v e n t ) i s s e t i n t h e
6
S t a t u s B y t e s u m m a r y r e g i s t e r . Y o u c o u l d a l s o c o n f i g u r e t h e p o w e r
s u p p l y f o r a n S R Q i n t e r r u p t b y s e n d i n g
r e g i s t e r , b i t 5 ) .
Using *OPC to Signal When Data is in the Output Buffer
G e n e r a l l y , i t i s b e s t t o u s e t h e " o p e r a t i o n c o m p l e t e " b i t ( b i t 0 ) i n t h e S t a n d a r d
E v e n t r e g i s t e r t o s i g n a l w h e n a c o m m a n d s e q u e n c e i s c o m p l e t e d . T h i s b i t i s
s e t i n t h e r e g i s t e r a f t e r a n
*OPC
a f t e r a c o m m a n d w h i c h l o a d s a m e s s a g e i n t h e p o w e r s u p p l y ' s o u t p u t
b u f f e r ( q u e r y d a t a ) , y o u c a n u s e t h e " o p e r a t i o n c o m p l e t e " b i t t o d e t e r m i n e
w h e n t h e m e s s a g e i s a v a i l a b l e . H o w e v e r , i f t o o m a n y m e s s a g e s a r e g e n e r a t e d
*OPC
b e f o r e t h e
c o m m a n d e x e c u t e s ( s e q u e n t i a l l y ) , t h e o u t p u t b u f f e r w i l l f i l l
a n d t h e p o w e r s u p p l y w i l l s t o p p r o c e s s i n g c o m m a n d s .
*CLS
( c l e a r s t a t u s ) c o m m a n d .
*ESE 1
c o m m a n d .
*OPC
( o p e r a t i o n c o m p l e t e ) c o m m a n d a s t h e l a s t
*SRE 32
*OPC
c o m m a n d h a s b e e n e x e c u t e d . I f y o u s e n d
( S t a t u s B y t e e n a b l e
107
4

Advertisement

Table of Contents
loading

This manual is also suitable for:

E3648a/49a2110-10682110-10702110-04572110-0996

Table of Contents