EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  <20152016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  <20152016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: using EPICS code with HTTP port
From: Jack <[email protected]>
To: [email protected]
Cc: tech-talk <[email protected]>
Date: Tue, 24 Feb 2015 08:56:27 +0100
Dear Ana,
I'm in the process to order the Red Pitaya kit, as soon as we have that, we could collaborate to you to develop an Epics interface to this object.
Keep in touch,
Best Regards,
-Mauro
________________________________________________________________________

Mauro Giacchini

Controls System Specialist
Istituto Nazionale di Fisica Nucleare - Laboratori Nazionali di Legnaro
V.le dell'Universita', 2
35020 LEGNARO (PD) - ITALY
Phone: +39.049.8068558


EPICS _at_ LNL http://www.lnl.infn.it/~epics/

...the first EPICS installation to the project SPES realized from the
scratch in ITALY is in production since begin 2010!!
________________________________________________________________________

On 2/9/2015 8:53 PM, Ana Malagon wrote:
Hi,

I'm trying to use EPICs with a digitizer (www.redpitaya.com) which has a web interface - I can get the information using curl to download the website information:


but I'm a little confused about how to integrate these commands in an ioc. I've set up a StreamDevice template, and I thought I might be able to just send the curl commands by putting them in a record:

record(bo, "$(P)$(R)Start")

{

    field(DESC, "Start App")

    field(DTYP, "stream")

    field(OUT, "@devREDPITAYASTREAM.proto startApp $(PORT) $(A)")

    field(ZNAM, "spectrum")

    #field(PINI, "YES")

    #field(VAL, "1")

}


record(waveform, "$(P)$(R)Data")

{

    field(DESC, "Data string")

    field(DTYP, "stream")

    field(INP,  "@devREDPITAYASTREAM.proto getData(20000) $(PORT) $(A)")

    field(PINI, "YES")

    field(FTVL, "CHAR")

    field(NELM, "32000")

}

with the corresponding entries in the .proto file being:

startApp {

    out "curl http://10.95.101.75/bazaar?start=%{spectrum}";

}

getData {

    out "curl http://10.95.101.75/data";

    in "%\$1[^\r\n]";

    ExtraInput = Ignore;

}

When I run st.cmd, the host is configured to be the IP address of the red pitaya itself, using the HTTP port of 80:

drvAsynIPPortConfigure("L0","10.95.101.75:80",0,0,0)

I'm not sure if this is the right thing to do? In any case, when running st.cmd with asynTraceMask enabled I get a continuous stream of "reads"

2015/02/09 11:48:23.530 10.95.101.75:80 read.

but it doesn't seem to respond to the commands I've made.

Does anyone have any feeling for using Epics with HTTP commands? 

Thanks!

Ana Malagon






This email has been checked for viruses by Avast antivirus software.
www.avast.com



References:
using EPICS code with HTTP port Ana Malagon

Navigate by Date:
Prev: Regarding EPICS EDM-1-12-98 Rahul Jain
Next: "epicsMutex pthread_mutex_unlock failed" with pyepics/pcaspy Jameson Graef Rollins
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  <20152016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: using EPICS code with HTTP port Dirk Zimoch
Next: CA Repeater: bind test err was "The operation completed successfully. " J. Lewis Muir
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  <20152016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 16 Dec 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·