Operation, Remote Operation
Examples
1-2-5
ATC-5000NG ATC/DME Test Set Operation Manual
Rev. L0
Page 156
Subject to Export Control. See Cover Page for details.
February 2020
VI_ATT R_ASRL _PARIT Y, VI_ASRL _PAR_ EVEN)) < 0)
re tur n ATC_ sta tus ;
}
else
AT C_s tatu s = ERR_ PARAMET ER8;
if (ATCGen Co nf ig.s top bits == 1 )
{
if ((AT C_ sta tus = viSetAttrib ute (ATCGen Ses sio n[(AT CGe n-1 )],
VI_ ATT R_ ASRL_ STOP_BIT S, VI_ ASRL_ ST OP_ONE)) < 0 )
re tur n ATC_ sta tus ;
}
else if (AT CGe nCon fig .sto pb its = = 2)
{
if ((AT C_ sta tus = viSetAttrib ute (ATCGen Ses sio n[(AT CGe n-1 )],
VI_ ATT R_ ASRL_ STOP_BIT S, VI_ ASRL_ ST OP_T WO) ) < 0)
re tur n ATC_ sta tus ;
}
else
AT C_s tatu s = ERR_ PARAMET ER8;
if ((ATC_ sta tus = v iSe tAttrib ute (ATCGen Se ss ion [(ATCGen -1) ],
VI_AT TR_ASRL _ FL OW_ CNT RL, VI_ ASRL_ FL OW_RT S_ CT S)) < 0)
ret urn ATC_s tatu s;
// Se t v aria ble so ot he r driv er ca lls won 't ba il o ut
AT CGe nCo nn ec t[(ATCGen -1)] = ON;
}
}
els e
{
ATC_ sta tus = ERR_PARAMET ER6 ; // set err or s tatu s c od e
}
}
els e if ( strc mp ("ETHERNET ", AT CGen De vic e[(AT CGe n-1 )].Bus ) = = 0 )
{ // Eth ern et
F mt (res ou rce , "T CPIP::%s: :20 01 ::SOCKET ",
AT CGe n De vic e[(AT CGe n-1 )].PriAdd r);
if ((AT C_ sta tu s = AT C_in itializ e (r es ou rce , VI_OF F,
VI_OF F, &ATCGen Se ss ion [(ATCGen -1 )])) < 0)
{
ATCGe nSes sio n[(AT CGe n-1 )] = 0;
}
els e
{
// Se t va riab le so oth er driv er c alls won 't ba il ou t
ATCGe nCon ne ct[( AT CGe n- 1)] = ON;
}
}
els e
ATC_s tat us = ERR_ PARAMET ER5 ;
}
}
re turn ATC_ sta tus ; // re tur n e rro r sta tus co de
}
//= == == == == = == == == == = == == == == = == == == == = == == == = == == == == = == == == == = == == == == = == == ==
// F un ctio n: Clo se
// Purp os e: Th is fu nc tion clo se s th e inst rume nt.
// Para mete r L ist: AT CGe n - Ge ne ra tor n umb er
// Retu rn Va lue s: Z e ro o n s uc ce ss , no n-z ero o the rwise
Summary of Contents for 138156
Page 3: ......