IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 15, 2007, 3:25:20 PM (19 years ago)
Author:
eugene
Message:

changed device numbers to device names; using inet sockets

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/kapa-mods-2007-05/Ohana/src/opihi/lib.data/PlotVectors.c

    r10795 r13391  
    11# include "display.h"
    22
    3 static int Xgraph;
     3static int kapa;
    44
    55int PrepPlotting (int Npts, Graphdata *graphmode) {
    66
    7   if (!GetGraph (NULL, &Xgraph, NULL)) return (FALSE);
     7  if (!GetGraph (NULL, &kapa, NULL)) return (FALSE);
    88 
    99  /* tell kapa to look for the incoming image */
    10   KiiSendCommand (Xgraph, 4, "PLOT");
     10  KiiSendCommand (kapa, 4, "PLOT");
    1111 
    12   /* send Xgraph the plot details */
    13   KiiSendMessage (Xgraph, "%8d %8d %d %d %d %d %d %f %f",
     12  /* send kapa the plot details */
     13  KiiSendMessage (kapa, "%8d %8d %d %d %d %d %d %f %f",
    1414                  Npts, graphmode[0].style,
    1515                  graphmode[0].ptype, graphmode[0].ltype,
    1616                  graphmode[0].etype, graphmode[0].ebar, graphmode[0].color,
    1717                  graphmode[0].lweight, graphmode[0].size);
    18   KiiSendMessage (Xgraph, "%g %g %g %g",
     18  KiiSendMessage (kapa, "%g %g %g %g",
    1919                  graphmode[0].xmin, graphmode[0].xmax,
    2020                  graphmode[0].ymin, graphmode[0].ymax);
     
    2727
    2828  Nbytes = Npts * sizeof (float);
    29   write (Xgraph, values, Nbytes);
     29  write (kapa, values, Nbytes);
    3030  return (TRUE);
    3131}
Note: See TracChangeset for help on using the changeset viewer.