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.astro/outline2.c

    r2843 r3693  
    316316  Nline = 0;
    317317 
    318   write (Ximage, "LOAD", 4); /* force Ximage to look for the incoming image */
    319   sprintf (line, "OVER %9d ", 0);
    320   write (Ximage, line, 16);
     318  SendGraphCommand (Ximage, 4, "LOAD");
     319  SendGraphCommand (Ximage, 16, "OVER %9d ", 0);
    321320 
    322321  dx = par[2];
     
    336335   
    337336    if (Nline >= 510) {
    338       sprintf (line, "NLINES  %7d ", Nline);
    339       write (Ximage, line, 16);
     337      SendGraphCommand (Ximage, 16, "NLINES  %7d ", Nline);
    340338      write (Ximage, buffer, Nline*128);
    341339      bzero (buffer, 65536);
     
    344342  }
    345343 
    346   sprintf (line, "NLINES  %7d ", Nline);
    347   write (Ximage, line, 16);
     344  SendGraphCommand (Ximage, 16, "NLINES  %7d ", Nline);
    348345  write (Ximage, buffer, Nline*128);
    349   sprintf (line, "DONE ");
    350   write (Ximage, line, 16);
     346  SendGraphCommand (Ximage, 16, "DONE");
     347
    351348  free (buffer);
    352349  free (line);
Note: See TracChangeset for help on using the changeset viewer.