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 171
r etu rn AT C_ ERROR_CMD_ WAIT;
st rcp y (re so ur ceNa me, s es sio nIn fo[in de x]. res ou rce Na me) ;
re turn VI_SUCCESS;
}
//= == == == == = == == == == = == == == == = == == == == = == == == = == == == == = == == == == = == == == == = == == ==
// F un ctio n: Wa it to co mminca te with in stru men t
// Purp os e: Th is fu nc tion waits for the pr evio us mimium d ela y to h ave
// o cc ure d b ef ore pr oce ed ing .
//= == == == == = == == == == = == == == == = == == == == = == == == = == == == == = == == == == = == == == == = == == ==
ViSta tus AT C_n xtCmdWa it (ViSes sio n in stHan dle )
{
in t ind ex ;
d ou ble de lay ;
// fin d ses sio n in de x
fo r (in de x = 0; in d ex < MAX_ SESSIONS; in de x+ +)
{
if (se ssio nI nfo [ind ex ].se ss ion == in stHan dle )
bre ak ;
}
// In va lid Se ssio n ab ort
if (in de x > = MAX_SESSIONS)
r etu rn AT C_ ERROR_CMD_ WAIT;
// Wa it u ntil th e min imum d ela y h as be en a chie ve d
d o {
d ela y = T imer() - se ss ion Info [ind ex ].st artT ime;
} wh ile (d ela y < se ss ion Inf o[in de x].c urWa itT ime );
re turn VI_SUCCESS;
}
//= == == == == = == == == == = == == == == = == == == == = == == == = == == == == = == == == == = == == == == = == == ==
// F un ctio n: L og la st c omman d t ran smiss ion
// Purp os e: Th is fu nc tion sto re s th e time r c ou nt whe n ca lled to in dic ate
// th e t ime whe n th e ins trume nt wa s la st c ommun ica te d with.
//= == == == == = == == == == = == == == == = == == == == = == == == = == == == == = == == == == = == == == == = == == ==
ViSta tus AT C_n xtCmdL og (ViSess ion in stHan dle , ViRe al6 4 wa itTo NxtCmd)
{
in t ind ex ;
// fin d ses sio n in de x
fo r (in de x = 0; in d ex < MAX_ SESSIONS; in de x+ +)
{
if (se ssio nI nfo [ind ex ].se ss ion == in stHan dle )
bre ak ;
}
// In va lid Se ssio n ab ort
if (in de x > = MAX_SESSIONS)
r etu rn AT C_ ERROR_CMD_ WAIT;
se ss ion Inf o[in de x].s tart Time = T imer ();
se ss ion Inf o[in de x].c urWa itT ime = wa itT oNxtCmd;
re turn VI_SUCCESS;
}
//= == == == == = == == == == = == == == == = == == == == = == == == = == == == == = == == == == = == == == == = == == ==
Содержание 138156
Страница 3: ......