Agilent Technologies FS2010 Manuel de service Page 146

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 396
  • Table des matières
  • DEPANNAGE
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 145
138 Agilent Signal Generators Programming Guide
Programming Examples
LAN Programming Interface Examples
{
commandInstrument(instSock, command);
}
}
else
{
/* read a line from <stdin> */
while ( gets(charBuf) != NULL )
{
if ( !strlen(charBuf) )
continue ;
if ( *charBuf == '#' || *charBuf == '!' )
continue ;
strcat(charBuf, "\n");
if (!quiet)
{
if (number)
{
char num[10];
sprintf(num,"%d: ",number);
fwrite(num, strlen(num), 1, stdout);
}
fwrite(charBuf, strlen(charBuf), 1, stdout) ;
fflush(stdout);
}
if ( isQuery(charBuf) )
{
long bufBytes;
/* Put the query response into the same buffer as the*/
/* command string appended after the null terminator.*/
bufBytes = queryInstrument(instSock, charBuf,
charBuf + strlen(charBuf) + 1,
INPUT_BUF_SIZE -strlen(charBuf) );
if (!quiet)
{
fwrite(" ", 2, 1, stdout) ;
Vue de la page 145
1 2 ... 141 142 143 144 145 146 147 148 149 150 151 ... 395 396

Commentaires sur ces manuels

Pas de commentaire