/ / C h e c k t o s e e i f t h e r e i s r o o m t o o p e n a n o t h e r s e s s i o n h a n d l e
f o r ( i n d e x = 0 ; i n d e x < M A X _ S E S S I O N S ; i n d e x + + )
{
i f ( s e s s i o n I n f o [ i n d e x ] . s e s s i o n = = 0 )
{
s t r c p y ( s e s s i o n I n f o [ i n d e x ] . r e s o u r c e N a m e , r e s o u r c e N a m e ) ;
s e s s i o n I n f o [ i n d e x ] . s e s s i o n
s e s s i o n I n f o [ i n d e x ] . c u r W a i t T i m e = W A I T T I M E 0 _ 0 2 ;
s e s s i o n I n f o [ i n d e x ] . s t a r t T i m e
r e t u r n V I _ S U C C E S S ;
}
}
/ / R e t u r n e r r o r
r e t u r n A T C _ E R R O R _ T O O _ M A N Y _ S E S S I O N S ;
}
/ / = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
/ / F u n c t i o n : R e m o v e s e s s i o n f r o m w a i t l i s t
/ / P u r p o s e : T h i s f u n c t i o n r e m o v e s t h e s e s s i o n f r o m t h e o p e n l i s t
/ / = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
V i S t a t u s A T C _ s e s s i o n I n f o C l o s e ( V i S e s s i o n i n s t H a n d l e )
{
i n t i n d e x ;
/ / f i n d s e s s i o n i n d e x
f o r ( i n d e x = 0 ; i n d e x < M A X _ S E S S I O N S ; i n d e x + + )
{
i f ( s e s s i o n I n f o [ i n d e x ] . s e s s i o n = = i n s t H a n d l e )
b r e a k ;
}
/ / S e s s i o n n o t o p e n a b o r t
i f ( i n d e x > = M A X _ S E S S I O N S )
r e t u r n A T C _ E R R O R _ C M D _ W A I T ;
s e s s i o n I n f o [ i n d e x ] . s e s s i o n
s e s s i o n I n f o [ i n d e x ] . c u r W a i t T i m e = 0 ;
s e s s i o n I n f o [ i n d e x ] . s t a r t T i m e
s t r c p y ( s e s s i o n I n f o [ i n d e x ] . r e s o u r c e N a m e , " " ) ;
r e t u r n V I _ S U C C E S S ;
}
/ / = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
/ / F u n c t i o n : G e t s e s s i o n f r o m w a i t l i s t
/ / P u r p o s e : T h i s f u n c t i o n g e t s t h e r e s o u r c e n a m e f r o m t h e o p e n l i s t
/ / = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
V i S t a t u s A T C _ s e s s i o n I n f o R e s o u r c e ( V i S e s s i o n i n s t H a n d l e , V i C h a r r e s o u r c e N a m e [ ] )
{
i n t i n d e x ;
/ / f i n d s e s s i o n i n d e x
f o r ( i n d e x = 0 ; i n d e x < M A X _ S E S S I O N S ; i n d e x + + )
{
i f ( s e s s i o n I n f o [ i n d e x ] . s e s s i o n = = i n s t H a n d l e )
b r e a k ;
}
/ / S e s s i o n n o t o p e n a b o r t
i f ( i n d e x > = M A X _ S E S S I O N S )
1-2-5
Page 170
= i n s t H a n d l e ;
= T i m e r ( ) ;
= 0 ;
= 0 ;
ATC-5000NG ATC/DME Test Set Operation Manual
Subject to Export Control. See Cover Page for details.
Operation, Remote Operation
Examples
Rev. L0
February 2020