Download Print this page

Agilent Technologies E3632A User Manual page 109

Dc power supply
Hide thumbs Also See for E3632A:

Advertisement

Chapter 4 Remote Interface Reference
The SCPI Status Registers
C a u t i o n
T h e I E E E - 4 8 8 s t a n d a r d d o e s n o t e n s u r e s y n c h r o n i z a t i o n b e t w e e n y o u r b u s
c o n t r o l l e r p r o g r a m a n d t h e i n s t r u m e n t . U s e t h e
g u a r a n t e e t h a t c o m m a n d s p r e v i o u s l y s e n t t o t h e i n s t r u m e n t h a v e c o m p l e t e d .
E x e c u t i n g a s e r i a l p o l l b e f o r e a
c o m p l e t e d c a n c a u s e p r e v i o u s c o n d i t i o n s t o b e r e p o r t e d .
U s i n g * S T B ? t o R e a d t h e S t a t u s B y t e
T h e
p r o c e s s e d l i k e a n y o t h e r i n s t r u m e n t c o m m a n d . T h e
t h e s a m e r e s u l t a s a s e r i a l p o l l b u t t h e " r e q u e s t s e r v i c e " b i t ( b i t 6 )
T h e
i n t e r f a c e h a r d w a r e a n d w i l l b e e x e c u t e d
c o m p l e t e d . P o l l i n g i s n o t p o s s i b l e u s i n g t h e
*STB?
U s i n g t h e M e s s a g e A v a i l a b l e B i t ( M A V )
Y o u c a n u s e t h e S t a t u s B y t e " m e s s a g e a v a i l a b l e " b i t ( b i t 4 ) t o d e t e r m i n e w h e n
d a t a i s a v a i l a b l e t o r e a d i n t o y o u r b u s c o n t r o l l e r . T h e p o w e r s u p p l y
s u b s e q u e n t l y c l e a r s b i t 4
o u t p u t b u f f e r .
T o I n t e r r u p t Y o u r B u s C o n t r o l l e r U s i n g S R Q
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 ( e . g . ,
CLEAR 705
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
3
S e t u p t h e e n a b l e r e g i s t e r m a s k s . E x e c u t e t h e
S t a n d a r d E v e n t r e g i s t e r a n d t h e
4
S e n d t h e
e n s u r e s y n c h r o n i z a t i o n .
5
E n a b l e y o u r b u s c o n t r o l l e r ' s I E E E - 4 8 8 S R Q i n t e r r u p t .
106
*STB?
( S t a t u s B y t e q u e r y ) c o m m a n d i s s i m i l a r t o a s e r i a l p o l l b u t i t i s
*STB?
c o m m a n d i s n o t h a n d l e d a u t o m a t i c a l l y b y t h e I E E E - 4 8 8 b u s
c o m m a n d d o e s n o t c l e a r t h e 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 .
o n l y
) .
*OPC?
( 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
*OPC?
*RST, *CLS,
o r o t h e r c o m m a n d s h a v e
*STB?
o n l y
a f t e r p r e v i o u s c o m m a n d s h a v e
*STB?
c o m m a n d . E x e c u t i n g t h e
a f t e r a l l m e s s a g e s h a v e b e e n r e a d f r o m t h e
*CLS
( c l e a r s t a t u s ) c o m m a n d .
*ESE
c o m m a n d t o s e t u p t h e
*SRE
c o m m a n d f o r t h e S t a t u s B y t e .
c o m m a n d t o
c o m m a n d r e t u r n s
i s n o t
c l e a r e d .

Advertisement

loading