Experimental Physics and
| |||||||||||||||||
|
Which IN converter should I use in the protocol file of StreamDevice? I have tried %u and it didn't work: record(waveform, "$(P)$(R)file") { field(DTYP, "stream") field(SCAN, "Passive") field(INP, "@devTPS20xx.proto PrtScr $(PORT) $(A)") field(NELM, "500000") field(FTVL, "UCHAR") } PrtScr { InTerminator = ""; ReplyTimeout = 15000; out "HARDCOPY START"; in "%u"; } L1 TPS2024B:file: Input "BM╩7<00><00><00><00><00><00>6<04><00><00>(<00><00><00>@<01>..." does not match format %u On Mon, Apr 30, 2012 at 12:24 AM, Rod Nussbaumer <[email protected]> wrote: In principle, you should be able to read the binary data just as if you were receiving a binary formatted waveform. The EPICS waveform record will need to be set to an unsigned char data type. The trick will be to properly handle ending the transmission. Since your Python code seems to use a timeout to determine the end of the file, you could do that in streamDevice, too, by setting ' InTerminator = "" ' & setting some reasonable number for the 'ReadTimeout' in the protocol for the image file reader. Perhaps Dirk can confirm this. -- 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 · |