EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  <20182019  2020  2021  2022  2023  2024  Index 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  <20182019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: pvget -m timeout after first value
From: "Kasemir, Kay via Core-talk" <[email protected]>
To: EPICS Core Talk <[email protected]>
Date: Fri, 26 Oct 2018 19:13:11 +0000
Hi:

I'm using EPICS base 7.0.1.1 with either the result of

makeBaseApp.pl -t example example;  makeBaseApp.pl -i -t example example

or with the neutrons demo from

git clone https://github.com/kasemir/EPICSV4Sandbox.git
cd EPICSV4Sandbox/neutronsDemoServer
make
bin/$EPICS_HOST_ARCH/neutronServerMain


Using `pvget` always works fine, printing one value and then quitting.

But `pvget -m` will sometimes only show one value, and then print "Timeout" and quit:

pvget –m training:ai1
training:ai1                   4
Timeout

pvget –m -r 'field(time_of_flight, pixel)' neutrons
neutrons
structure 
    epics:nt/NTScalarArray:1.0 time_of_flight
        uint[] value [11561,11561,11561,11561,11561,11561,11561,11561,11561,11561]
    epics:nt/NTScalarArray:1.0 pixel
        uint[] value [115610,115610,115610,115610,115610,115610,115610,115610,115610,115610]
Timeout


It seems to take about 3 seconds, and indeed using the `-w` options allows to extend the time:

$ pvget -w 60 –m -r 'field(time_of_flight, pixel)' neutrons
neutrons
structure 
    epics:nt/NTScalarArray:1.0 time_of_flight
        uint[] value [52612,52612,52612,52612,52612,52612,52612,52612,52612,52612]
    epics:nt/NTScalarArray:1.0 pixel
        uint[] value [526120,526120,526120,526120,526120,526120,526120,526120,526120,526120]
<.. 60 seconds ..>
Timeout


The only clue:
This is in a Linux VM.
All's fine when directly in the VM, i.e. in VirtualBox.
But when I ssh into the VM from the host, I get these timeouts about half the time.

Note I'm not talking about pvget from the host to an IOC in the VM.
The IOC, custom PVA server and pvget are all inside the VM.
EPICS_PVA_ADDR_LIST=10.0.2.15
EPICS_PVA_AUTO_ADDR_LIST=NO 

At times where ssh-into-the-VM and then 'pvget -m' time out,
the same 'pvget -m' works fine in a terminal within the VM.

I understand that the UDP connection could be iffy,
but once it connects and gets the first value via TCP, why then timeout?
-Kay


Replies:
Re: pvget -m timeout after first value Michael Davidsaver

Navigate by Date:
Prev: group PV question Timo Korhonen
Next: Re: pvget -m timeout after first value Michael Davidsaver
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  <20182019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Which version are you using Re: group PV question Timo Korhonen
Next: Re: pvget -m timeout after first value Michael Davidsaver
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  <20182019  2020  2021  2022  2023  2024 
ANJ, 29 Oct 2018 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·