IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 11, 2005, 10:37:51 AM (21 years ago)
Author:
eugene
Message:

moved kapa/kii communications to use SendGraphCommand functions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/cmd.data/tvcontour.c

    r2843 r3693  
    4545Nline ++; \
    4646if (Nline == 512) { \
    47   sprintf (line, "NLINES  %7d ", Nline); \
    48   write (Ximage, line, 16); \
     47  SendGraphCommand (Ximage, 16, "NLINES  %7d ", Nline); \
    4948  write (Ximage, buffer, Nline*128); \
    5049  bzero (buffer, 65536); \
     
    5756Nline ++; \
    5857if (Nline == 512) { \
    59   sprintf (line, "NLINES  %7d ", Nline); \
    60   write (Ximage, line, 16); \
     58  SendGraphCommand (Ximage, 16, "NLINES  %7d ", Nline); \
    6159  write (Ximage, buffer, Nline*128); \
    6260  bzero (buffer, 65536); \
     
    123121  }
    124122
    125   write (Ximage, "LOAD", 4); /* force Ximage to look for the incoming image */
    126   sprintf (line, "OVERLAY %7d ", n);
    127   write (Ximage, line, 16);
     123  SendGraphCommand (Ximage, 4, "LOAD"); /* force Ximage to look for the incoming image */
     124  SendGraphCommand (Ximage, 16, "OVERLAY %7d ", n);
    128125  ALLOCATE (buffer, char, 65536);  /* space for 512 lines of 128 bytes */
    129126  bzero (buffer, 65536);
     
    282279 
    283280  if (Nline > 0) {
    284     sprintf (line, "NLINES  %7d ", Nline);
    285     write (Ximage, line, 16);
     281    SendGraphCommand (Ximage, 16, "NLINES  %7d ", Nline);
    286282    write (Ximage, buffer, Nline*128);
    287283  }
    288284
    289285  free (buffer);
    290   sprintf (line, "DONE ");
    291   write (Ximage, line, 16);
    292   if (Npix != 1) {
    293     free (matrix);
    294   }
     286  SendGraphCommand (Ximage, 16, "DONE");
     287
     288  if (Npix != 1) free (matrix);
    295289  fprintf (stderr, "\n");
    296290  return (TRUE);
Note: See TracChangeset for help on using the changeset viewer.