Experimental Physics and
| |||||||||||||||||
|
My incoming image has a variable length from 10kB up to 46kB. So in my case how should I write the protocol? Maybe until the \n character? Remember you proposed setting a big timeout and a "" separator? Will that work? I have also found the %#s converter. Perhaps, try this? I am using RS232 rather than GPIB, but I wait ~ 10 seconds to get a 14-20kB file when getting the image by means of Python. On Wed, May 2, 2012 at 7:32 PM, Rod Nussbaumer <[email protected]> wrote: The %c converter should do it, along with a 'width' number of expected characters (nnn in the example below). If this is to read an unknown number of bytes, then the 'nnn' quantity will result in a timeout to terminate the read. You would want to use @readtimeout to set some reasonable number for that timeout. -- Best regards, Pavel Maslov, MS Controls Engineer at Pulsed power Lab Efremov Institute for Electro-Physical Apparatus St. Petersburg, Russia Mobile: +7 (951) 672 22 19 Landline: +7 (812) 461 01 01
| ||||||||||||||||
ANJ, 18 Nov 2013 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing · |