Experimental Physics and
| |||||||||||||||||
|
Hi Kay, Mark, Thanks for the help - so I've tried both approaches (using pcaspy to set up an IOC, and alternatively using HTTP in IPPortConfigure for my streamDevice application) and am running into a stumbling block with both.getData { out "GET /data"; in "%\$1[^\r\n]"; ExtraInput = Ignore; } ====device.db file=== record(waveform, "$(P)$(R)Data") { field(DESC, "Data array") field(DTYP, "stream") field(INP, "@devREDPITAYASTREAM.proto getData(20000) $(PORT) $(A)") field(PINI, "YES") field(FTVL, "CHAR") field(NELM, "32000") } For the pcaspy version, I have taken the tutorial file pysh.py, which creates an IOC that processes shell commands (https://code.google.com/p/pcaspy/source/browse/example/pysh.py) and modified the OUTPUT to be of datatype "char" with a large count. I have httpie installed, which is a library allowing me to run the command 'http 10.95.101.75/data' on the command line to retrieve the data. However, when I do 'caput MTEST:COMMMAND "http 10.95.101.75/data" and then 'caget MTEST:OUTPUT', I get an array of zeroes back. Does anything pop out as immediately suspicious? Thanks, Ana On Mon, Feb 9, 2015 at 12:58 PM, Kasemir, Kay <[email protected]> wrote: What Mark suggests could work, but the HTTP protocol is somewhat verbose and the exact response of the server could vary.
| ||||||||||||||||
ANJ, 16 Dec 2015 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing · |