Index: trunk/Ohana/src/opihi/cmd.data/ps.c
===================================================================
--- trunk/Ohana/src/opihi/cmd.data/ps.c	(revision 2843)
+++ trunk/Ohana/src/opihi/cmd.data/ps.c	(revision 3692)
@@ -55,7 +55,11 @@
   }
   
-  if (RawImage) write (Source, "PSRW", 4); /* tell Ximage to ps the image */
-  if (NoScale)  write (Source, "PSNS", 4); /* tell Ximage to ps the image */
-  if (!RawImage && !NoScale) write (Source, "PSIT", 4); /* tell Ximage to ps the image */
+  /* tell Ximage/Xgraph to ps the image */
+  if (RawImage) SendGraphCommand (Source, 4, "PSRW"); 
+  if (NoScale)  SendGraphCommand (Source, 4, "PSNS");
+  if (!RawImage && !NoScale) SendGraphCommand (Source, 4, "PSIT");
+
+  /* I need to fix kapa and kii to read NBYTES, etc like other messages
+  SendGraphMessage (Source, "%s", filename); */
 
   sprintf (buffer, "LEN: %11d", strlen(filename));
