Operation, Remote Operation
Examples
1-2-5
ATC-5000NG ATC/DME Test Set Operation Manual
Rev. L0
Page 152
Subject to Export Control. See Cover Page for details.
February 2020
#d efin e WAI TT IME1 _0 0 1. // Se co nd s wait time
#d efin e WAI TT IME5 _0 0 5. // Se co nd s wait time
#d efin e WAI TT IME7 _0 0 7. // Se co nd s wait time
#d efin e WAI TT IME1 0_ 00 1 0. // Se con ds wait time
#d efin e TIME_OUT_ NORM_ VAL 3 00 0
#d efin e MAX_SESSIONS 2
stru ct {
ViSe ss ion se ss ion ;
ViRe al6 4 sta rtT ime ;
ViRe al6 4 cu rWaitT ime;
ViCh ar re so urc eName [40 ];
} se ss ion Inf o[MAX_ SESSIONS] = {{0 ,0,0 ,""},{0 ,0, 0,""}} ;
#d efin e BUFF ER_ SIZE 51 2L // F ile I/O b uff er s ize
//= == == == == = == == == == = == == == == = == == == == = == == == = == == == == = == == == == = == == == == = == == ==
//= Dr ive r Sp ec ific Erro r/Wa rnin g Co de s = = == == == == = == == == == = == == == == = == == == = =
//= == == == == = == == == == = == == == == = == == == == = == == == = == == == == = == == == == = == == == == = == == ==
#d efin e NOT _AVAIL ABL E 0x FF FF F C1 8 // Fu nc tion Not Av aila ble (- 10 00 )
#d efin e INVALID_ SELECTION 0 XF FF F FC17 // I nva lid de vice se lec ted ( -10 01 )
#d efin e NOT _INSTALL ED 0XF FF FF C16 // Dev ice Not in sta lled (-10 02 )
#d efin e ABORT _F L AG_ SET 0XF FF FF C15 // T es t Exec . Abo rt F lag Se t ( -10 03 )
#d efin e NOT _INIT IAL IZ ED 0 x3 FF FF C01 // In str umen t Not Inita ilize d Wa rn ing
#d efin e ERR_PARAMET ER1 0 XFF FF FC1 3 // Pa rame ter 1 Ou t-Of-Ran ge . (-1 00 5)
#d efin e ERR_PARAMET ER2 0 XFF FF FC1 2 // Pa rame ter 2 Ou t-Of-Ran ge . (-1 00 6)
#d efin e ERR_PARAMET ER3 0 XFF FF FC1 1 // Pa rame ter 3 Ou t-Of-Ran ge . (-1 00 7)
#d efin e ERR_PARAMET ER4 0 XFF FF FC1 0 // Pa rame ter 4 Ou t-Of-Ran ge . (-1 00 8)
#d efin e ERR_PARAMET ER5 0 XFF FF FC0 F // Pa ra me te r 5 Ou t-Of-Ran ge . (-1 00 9)
#d efin e ERR_PARAMET ER6 0 XFF FF FC0 E / / Pa ra mete r 6 Ou t-Of-Ran ge . (- 10 10 )
#d efin e ERR_PARAMET ER7 0 XFF FF FC0 D // Para mete r 7 Ou t-Of-Ran ge . (- 10 11 )
#d efin e ERR_PARAMET ER8 0 XFF FF FC0 C // Para mete r 8 Ou t-Of-Ran ge . (- 10 12 )
#d efin e ERR_PARAMET ER9 0 XFF FF FC0 B / / Pa ra mete r 9 Ou t-Of-Ran ge . (- 10 13 )
#d efin e ERR_PARAMET ER1 0 0XF FF FF C0A // Par amet er 1 0 Ou t-Of-Ran ge . (-1 01 4)
#d efin e ERR_PARAMET ER1 1 0XF FF FF C09 // Para mete r 1 1 Ou t-Of-Ran ge . (-1 01 5)
#d efin e NOT _SUPPORT ED 0XF FF FF C03 // Comma nd Not Sup po rte d. (-1 02 1)
#d efin e OPT ION_ MISSING 0 XF FF F FC02 // Op tion Not I nst alle d. (-1 02 2)
#d efin e WRONG_INSTRUMENT 0XF FF FF C01 // In co rrec t In stru men t (-10 23 )
#d efin e INVAL_ TERMINAT ION 0 XFF FF FC0 0 // Inv alid ter m cha ra cte r(s) . (-1 02 4)
ViSe ssio n ATCGe nSes sio n[MAX_ SESSIONS]; // ses sio n h an dle
stru ct de vice AT CGe nDev ice [MAX_SESSIONS] ; // d ev ice pa rame ter s
ViI nt1 6 ATCGen Con ne ct[MAX_SESSIONS];
//= == == == == = == == == == = == == == == = == == == == = == == == = == == == == = == == == == = == == == == = == == ==
//= INST RUMENT -DEPENDENT COMMAND ARRAYS
== == = == == == == = == == == == = == == == == = == == == =
//= == == == == = == == == == = == == == == = == == == == = == == == = == == == == = == == == == = == == == == = == == ==
ViI nt3 2 Equ al[ 20 ];
ViI nt3 2 Sep ar ato r[20 ];
ViI nt3 2 i;
ViI nt3 2 j;
ViI nt3 2 b yte sRea d;
ViCh ar Bu ffer[ 80 ];
ViCh ar Bu ffer1 [8 0];
ViCh ar Bu ffer2 [8 0];
ViCh ar Bu ffer3 [8 0];
Содержание 138156
Страница 3: ......