Operation, Remote Operation
Examples
Rev. L0
ATC-5000NG ATC/DME Test Set Operation Manual
1-2-5
February 2020
Subject to Export Control. See Cover Page for details.
Page 151
} ty pATCGen Con figs ;
#ifd ef __ AT C_GLOBALS
st atic typ AT CGe n Co nfig s AT CGe nCon fig ; // c on fig p ar amet ers
#e lse // _ _ATCGEN_ GLOBAL S is n ot d efin ed
e xte rn ty pAT CGe nCon fig s ATCGen Con fig; // co nfig p ara mete rs
#e nd if // _ _AT CGEN_ GLOBAL S
//= == == == == = == == == == = == == == == = == == == == = == == == = == == == == = == == == == = == == == == = == == ==
//= GL OBAL USER- CAL LABL E FUNCT ION DECLARAT IONS ( Ex po rtab le Fu nc tion s) = == = == == =
//= == == == == = == == == == = == == == == = == == == == = == == == = == == == == = == == == == = == == == == = == == ==
AT C_EXT ViStatu s _ VI _F UNC ATC_in it (ViIn t16 AT CGen , ViCh ar AT CGe nT yp e[],
ViCha r ATCGen Pa rtNumb er [], ViCh ar AT CGe nBu s[],
ViCha r p rimary Ad dr[ ],ViCh ar s ec on da ryAd dr[]) ;
AT C_EXT ViStatu s _ VI _F UNC ATC_c los e (ViIn t16 ATCGen );
AT C_EXT ViStatu s _ VI _F UNC ATC_r ese t (ViIn t16 AT CGen );
AT C_EXT ViStatu s _ VI _F UNC ATC_write Ins trData (ViIn t16 AT CGen ,
ViString writeBu ffer ,
ViRea l64 waitT oNxtCmd );
AT C_EXT ViStatu s _ VI _F UNC ATC_r ea dIn strDa ta (ViIn t16 ATCGen ,
ViInt 32 nu mbe rBy tes To Rea d,
ViCha r _VI_ FAR rea dBu ffer[ ],
ViPInt3 2 n umByte sRe ad );
AT C_EXT ViStatu s _ VI _F UNC ATC_e rro rQue ry ( ViIn t16 ATCGen ,
ViInt3 2 * erro rCod e,
ViCh ar _VI_F AR me ss ag e[]) ;
#if d ef ine d(_ _c plu sp lus ) || de fine d( __ cp lusp lus __ )
}
#e nd if
#e nd if
//= == == == == = == == == == = == == == == = == == == == = == == == = == == == == = == == == == = == == == == = == == ==
//= == END INCL UDE F ILE = == == = == == == == = == == == == = == == == == = == == == == = == == == = == == == =
//= == == == == = == == == == = == == == == = == == == == = == == == = == == == == = == == == == = == == == == = == == ==
//= == == == == = == == == == = == == == == = == == == == = == == == = == == == == = == == == == = == == == == = == == ==
// T itle: ATC_Driv er. c
// Purp os e: Drive r fu nc tion s to co ntr ol th e AT C-5 0 00 NG u sin g
// GPIB, Et he rne t or Se ria l. Se ria l is n ot r ec ommen de d.
//
// Crea te d o n: 9 /1 1/2 01 8 a t 1 0:5 1 AM by VIAVI T es t Solu tion s.
// Cop yrig ht: VIAVI AvComm. All Righ ts Re se rve d.
//= == == == == = == == == == = == == == == = == == == == = == == == = == == == == = == == == == = == == == == = == == ==
#in clu de <u tility .h>
#in clu de <v isa .h>
#in clu de <fo rma tio.h >
#in clu de <to olb o x.h >
#in clu de "AT C_Driv er.h "
#d efin e WAI TT IME0 _0 1 0. 01 // Se co nd s wait t ime
#d efin e WAI TT IME0 _0 2 0. 02 // Se co nd s wait t ime
#d efin e WAI TT IME0 _0 3 0. 03 // Se co nd s wait t ime
Содержание 138156
Страница 3: ......