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/load.c

    r2843 r3693  
    5555  Nline = 0;
    5656
    57   write (Ximage, "LOAD", 4); /* force Ximage to look for the incoming image */
    58   sprintf (line, "OVER %9d ", n);
    59   write (Ximage, line, 16);
     57  SendGraphCommand (Ximage, 4, "LOAD");
     58  SendGraphCommand (Ximage, 16, "OVER %9d ", n);
    6059 
    6160  for (n = 0; scan_line (f, line) != EOF;) {
     
    123122    Nline ++;
    124123    if (Nline == 512) {
    125       sprintf (line, "NLINES  %7d ", Nline);
    126       write (Ximage, line, 16);
     124      SendGraphCommand (Ximage, 16, "NLINES  %7d ", Nline);
    127125      write (Ximage, buffer, Nline*128);
    128126      bzero (buffer, 65536);
     
    131129  }
    132130
    133   sprintf (line, "NLINES  %7d ", Nline);
    134   write (Ximage, line, 16);
     131  SendGraphCommand (Ximage, 16, "NLINES  %7d ", Nline);
    135132  write (Ximage, buffer, Nline*128);
    136   sprintf (line, "DONE ");
    137   write (Ximage, line, 16);
     133  SendGraphCommand (Ximage, 16, "DONE");
    138134
    139135  free (buffer);
Note: See TracChangeset for help on using the changeset viewer.