' T h e   p u r p o s e   o f   t h i s   S C P I   t e x t   f i l e   i s   t o   d e m o n s t r a t e   h o w   t o   g e n e r a t e   a n   
 
 ' a   l i s t   o f   v o l t a g e   l e v e l s   t h a t   c a n   b e   s t e p p e d   t h r o u g h   w i t h   a   t r i g g e r   s i g n a l   
 
 ' w i t h   t h e   A d v a n c e d   P o w e r   S y s t e m   N 7 9 0 0   s e r i e s   u s i n g   r e m o t e   c o m m a n d s .   L i s t   m o d e 
 
 ' c a n   b e   u s e d   t o   c r e a t e   v o l t a g e   o r   c u r r e n t   s t e p s   t h a t   c a n   b e   s t e p p e d   t h r o u g h 
 
 ' e i t h e r   b y   u s i n g   a   s e t   d w e l l   t i m e   f o r   e a c h   s t e p   o r   u s i n g   a   t r i g g e r .   T h e   
 
 ' t r i g g e r   m e t h o d   c o m m a n d s   w i l l   b e   s h o w n   i n   t h i s   e x a m p l e .   T h e   l i s t   f u n c t i o n 
 
 ' i s   a   u s e f u l   f e a t u r e   w h e n   i n c r e a s i n g   t e s t   t h r o u g h p u t   i s   c r i t i c a l 
 
 
 
 C o n n e c t   t o   t h e   N 7 9 0 0   d y n a m i c   D C   p o w e r   s u p p l y 
 
 
 
 ' r e s e t   t o   s t a r t   a t   k n o w n   s t a t e   
 
 * R S T 
 
 
 
 ' I d e n t i f y   t h e   N 7 9 0 0   y o u   a r e   c o n n e c t e d   
 
 * I D N ? 
 
 s t r i n g =   r e a d   s t r i n g 
 
 
 
 ' k e e p   t h e   o u t p u t   r e l a y s   c l o s e d 
 
 O U T P : R E L : L O C K   O N 
 
 
 
 ' s e t   v o l t a g e   l e v e l   t o   2 8 V ,   p o s i t i v e   c u r r e n t   l e v e l   t o   m a x i m u m ,   n e g a t i v e   c u r r e n t   l e v e l   t o   m i n ,   a n d   t u r n   o u t p u t   o n 
 
 V O L T   2 8 
 
 C U R R : L I M   M A X 
 
 C U R R : L I M : N E G   M I N 
 
 O U T P   O N 
 
 
 
 ' S e t   t h e   p o w e r   s u p p l y   t o   l i s t   m o d e   f o r   v o l t a g e .   A n d   s e t   t h e   r e p e a t   t o   i n i f i n i t e   t o   c y c l e   t h r o u g h   t h e   l i s t   
 
 ' o v e r   a n d   o v e r   a g a i n   
 
 V O L T : M O D E   L I S T 
 
 L I S T : C O U N   I N F ; 
 
 
 
 ' S p e c i f i e s   h o w   t h e   l i s t   r e s p o n d s   t o   t r i g g e r s .   O N C E   c a u s e s   t h e   o u t p u t   t o   r e m a i n   a t   t h e   p r e s e n t   s t e p   u n t i l   a   t r i g g e r 
 
 ' a d v a n c e s   i t   t o   t h e   n e x t   s t e p .   T r i g g e r s   t h a t   a r r i v e   d u r i n g   t h e   d w e l l   t i m e   a r e   i g n o r e d . 
 
 L I S T : S T E P   O N C E ; 
 
 
 
 ' C r e a t e   t h e   l i s t   o f   v o l t a g e   v a l u e s   ( t h e   l i s t   c o u l d   b e   u p   t o   5 1 2   s t e p s   l o n g 
 
 L I S T : V O L T   1 5 , 2 5 , 4 0 , 3 5 , 2 8 ; 
 
 
 
 ' S e t   t h e   d w e l l   t i m e   f o r   e a c h   v o l t a g e   l e v e l   i n   t h e   l i s t .   W e   w i l l   u s e   t r i g g e r s   t o   s t e p   t h r o u g h   t h e   l i s t ,   b u t 
 
 ' t h e   p o w e r   s u p p l y   w i l l   i g n o r e   t h e   t r i g g e r   u n t i l   t h e   d w e l l   t i m e   i s   c o m p l e t e 
 
 L I S T : D W E L L   . 0 0 1 , . 0 0 1 , . 0 0 1 , . 0 0 1 , . 0 0 1 ; 
 
 
 
 ' W h e n   t h e   l i s t   t e r m i n a t e s   t h e   v o l t a g e   w i l l   r e t u r n   t o   t h e   p r o g r a m m e d   v a l u e   o f   2 8 V 
 
 L I S T : T E R M : L A S T   O F F ; 
 
 
 
 ' S e t u p   t h e   t r i g g e r   t o   c o m e   f r o m   t h e   p r o g r a m m i n g   b u s   o r   r e m o t e   I O   c o n n e c t i o n   a n d   i n i t i a t e   t h e   l i s t   s o 
 
 ' i t   w i l l   m o v e   t o   t h e   n e x t   v a l u e   o n c e   a   t r i g g e r   i s   r e c e i v e d 
 
 T R I G : T R A N : S O U R   B U S ; 
 
 I N I T : T R A N ; 
 
 
 
 ' T o   a d v a n c e   t o   t h e   n e x t   v o l t a g e   l e v e l   i n   t h e   l i s t   s e n d   t h e   t r i g g e r   c o m m a n d 
 
 * T R G ; 
 
 