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  2015  2016  2017  2018  2019  <20202021  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  2015  2016  2017  2018  2019  <20202021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: RE: Inconsistency of image rate in ADVimba
From: Mark Rivers via Tech-talk <tech-talk at aps.anl.gov>
To: 'Jong Woo Kim' <Jong.Woo.Kim at asu.edu>
Cc: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Tue, 6 Oct 2020 18:40:27 +0000

Hi Jong Woo,

 

Ø  I found that I have multiple cameras and while I was monitoring streaming images with another camera (look at the followings. it is upper half) using matlab GUI, the array rate was too bad.

Ø  But as soon as I stopped it, it jumped to the level I expected.

Ø  Do I need to avoid using both cameras simultaneously? because it is a kind of limit of data transfer, right? 

 

If you are running 2 GigE cameras that share a single GigE network connection to your PC then you cannot run both cameras at their full rate.  That will exceed the GigE bandwidth limit.

 

You can use the screen below to control how much bandwidth each camera is allowed to use, in the StreamBytesPerSecond PV.

 

 

 

In the screen shot above it is set to 115,000,000.  With that setting I can run the camera at its full rate of 21 frames/s.  If I reduce that value to 60,000,000 then the camera automatically changes the maximum frame rate from 21 frames/s to 11 frames/s.  You can do that on the other camera as well.  If you do that then you should be able to run both cameras with a predictable frame rate, but one that is less than the maximum that each camera alone can run.

 

Mark

 

From: Jong Woo Kim <Jong.Woo.Kim at asu.edu>
Sent: Tuesday, October 6, 2020 11:48 AM
To: Mark Rivers <rivers at cars.uchicago.edu>
Subject: Re: Inconsistency of image rate in ADVimba

 

Dear Mark, 

 

I found that I have multiple cameras and while I was monitoring streaming images with another camera (look at the followings. it is upper half) using matlab GUI, the array rate was too bad. But as soon as I stopped it, it jumped to the level I expected. Do I need to avoid using both cameras simultaneously? because it is a kind of limit of data transfer, right? 

     

[jkim617@localhost ~]$ camonitor 13VMB1:cam1:ArrayRate_RBV
13VMB1:cam1:ArrayRate_RBV      2020-10-06 12:19:10.434605 0  
13VMB1:cam1:ArrayRate_RBV      2020-10-06 12:19:35.434525 1  
13VMB1:cam1:ArrayRate_RBV      2020-10-06 12:19:36.434558 6  
13VMB1:cam1:ArrayRate_RBV      2020-10-06 12:19:37.434523 3  
13VMB1:cam1:ArrayRate_RBV      2020-10-06 12:19:38.434525 7  
13VMB1:cam1:ArrayRate_RBV      2020-10-06 12:19:39.434562 3  
13VMB1:cam1:ArrayRate_RBV      2020-10-06 12:19:40.434557 6  
13VMB1:cam1:ArrayRate_RBV      2020-10-06 12:19:41.434526 7  
13VMB1:cam1:ArrayRate_RBV      2020-10-06 12:19:42.434575 3  
13VMB1:cam1:ArrayRate_RBV      2020-10-06 12:19:44.434572 2  
13VMB1:cam1:ArrayRate_RBV      2020-10-06 12:19:45.434558 5  
13VMB1:cam1:ArrayRate_RBV      2020-10-06 12:19:46.434592 22  
13VMB1:cam1:ArrayRate_RBV      2020-10-06 12:19:48.434561 21  
13VMB1:cam1:ArrayRate_RBV      2020-10-06 12:19:50.434528 22  
13VMB1:cam1:ArrayRate_RBV      2020-10-06 12:19:51.434527 21  
13VMB1:cam1:ArrayRate_RBV      2020-10-06 12:19:53.434550 22  
13VMB1:cam1:ArrayRate_RBV      2020-10-06 12:19:54.434563 21  
13VMB1:cam1:ArrayRate_RBV      2020-10-06 12:19:56.434524 22  
13VMB1:cam1:ArrayRate_RBV      2020-10-06 12:19:57.434592 21  
13VMB1:cam1:ArrayRate_RBV      2020-10-06 12:19:59.434525 22  
13VMB1:cam1:ArrayRate_RBV      2020-10-06 12:20:00.434562 21  
13VMB1:cam1:ArrayRate_RBV      2020-10-06 12:20:02.434529 22  
13VMB1:cam1:ArrayRate_RBV      2020-10-06 12:20:03.434528 21 

 

Sincerely,

Jong Woo


From: Jong Woo Kim <Jong.Woo.Kim at asu.edu>
Sent: Monday, October 5, 2020 4:43 PM
To: Mark Rivers <rivers at cars.uchicago.edu>
Subject: Re: Inconsistency of image rate in ADVimba

 

Dear Mark,

 

Thank you so much for your feedback! I’ll try and keep you posted. 

 

Best,

Jong Woo

 


From: Mark Rivers <rivers at cars.uchicago.edu>
Sent: Monday, October 5, 2020 4:39:01 PM
To: Jong Woo Kim <Jong.Woo.Kim at asu.edu>
Subject: Re: Inconsistency of image rate in ADVimba

 

The first problem I see is that you are converting the image from Mono8 to Mono16.  That does not make sense.  You should set ConvertImageFormat to None.


Please also update to the ADVimda R1-3.  It fixes a number of problems and provides good statistics in the upper right corner of that display.


Mark



________________________________
From: Jong Woo Kim <Jong.Woo.Kim at asu.edu>
Sent: Monday, October 5, 2020 6:32 PM
To: Mark Rivers
Subject: Re: Inconsistency of image rate in ADVimba

Hi Mark,

I attached a screenshot. The operating system is Linux (Centos 7) The version of ADGenICam and ADVimba are on the medm window. If I use "FixedRate" as a Trigger Source, Image rate is '0'. So, I used 'FreeRun'.
The error on the IOC console is as follows.
The answer to the question that another Mark asked is that it is public not a private network and the packet size is 1500. If I missed any info., let me know.

______________________________________________

2020/10/05 19:15:25.126 ADVimba::processFrame error GetReceiveStatus returned 0 frameStatus=-1
10-05-2020 19:15:25.127 [T] Trashed frame! 295,325 0
2020/10/05 19:15:25.127 ADVimba::processFrame error GetReceiveStatus returned 0 frameStatus=-1
10-05-2020 19:15:25.129 [T] Trashed frame! 296,345 0
2020/10/05 19:15:25.129 ADVimba::processFrame error GetReceiveStatus returned 0 frameStatus=-1
10-05-2020 19:15:25.130 [T] Trashed frame! 297,340 0
2020/10/05 19:15:25.130 ADVimba::processFrame error GetReceiveStatus returned 0 frameStatus=-1
10-05-2020 19:15:25.132 [T] Trashed frame! 298,330 0
2020/10/05 19:15:25.132 ADVimba::processFrame error GetReceiveStatus returned 0 frameStatus=-1
2020/10/05 19:15:25.250 ADVimba::processFrame error GetReceiveStatus returned 0 frameStatus=-1
2020/10/05 19:15:25.250 ADVimba::processFrame error calling VmbImageTransform, input pixel format=0x1080001, pixelLayout=0, status return=-17
2020/10/05 19:15:25.250 ADVimba::processFrame error calling VmbImageTransform, input pixel format=0x1080001, output pixel format=0x1100007 status return=-7

Best,
Jong Woo

________________________________
From: Mark Rivers <rivers at cars.uchicago.edu>
Sent: Monday, October 5, 2020 2:11 PM
To: Jong Woo Kim <Jong.Woo.Kim at asu.edu>
Cc: tech-talk at aps.anl.gov <tech-talk at aps.anl.gov>
Subject: RE: Inconsistency of image rate in ADVimba


Hi Jong Woo,



Ø  When I set the Frame rate to be 10 and ROI to be 2464x2056 (full image size), The image rate is sometimes 22 or 2 or 8. There is also no tendency with ROI. The camera is Mako



You need to provide some more information.

-          What operating system are you using, Linux or Windows?

-          What version of ADGenICam and ADVimba?

-          What is the value of TriggerMode and TriggerSource?

-          Are there any errors on the IOC console?



The easiest way to answer these questions is to attach a screen shot.  Here is a screen shot from ADVimba running my Manta G-507C, which is the same size as your Mako (2464 x 2056).  I am running it at the maximum specified frame rate of 21 frames/s.  The frame rate is very constant at 21 frames/s.



[cid:[email protected]]



Here is the output of camonitor on the frame rate PV (ArrayRate_RBV), labeled Image rate” on the screen.



corvette:Data/gpd_user/data> camonitor 13VMB1:cam1:ArrayRate_RBV

13VMB1:cam1:ArrayRate_RBV      2020-10-05 15:54:40.274092 21

13VMB1:cam1:ArrayRate_RBV      2020-10-05 15:59:12.274337 2

13VMB1:cam1:ArrayRate_RBV      2020-10-05 15:59:13.274473 0



I started camonitor 13 15:54 and the rate was 21.  I stopped the camera at 15:59, almost 5 minutes later, so the rate went to 0.  During those 5 minutes the value was 21, and never changed at all.



So this shows that ADVimba can run this camera at its maximum specified frame rate continuously with no variation.



If you are not getting this performance then we need to figure out if it is because you have set some PV incorrectly or if there is some other reason.



I recommend that you run the latest version of ADVimba, R1-3..  It provides very useful statistics in the upper-right part of this screen.  Note that in my case there are no packet error or frame errors.  It is important to see if you do have packet errors or frame errors.



Mark











From: Tech-talk <tech-talk-bounces at aps.anl.gov> On Behalf Of Jong Woo Kim via Tech-talk
Sent: Monday, October 5, 2020 3:32 PM
To: tech-talk at aps.anl.gov
Subject: Inconsistency of image rate in ADVimba



Hi,



I found that the Image rate (PV:13VMB1:cam1:ArrayRate_RBV) varies randomly.

When I set the Frame rate to be 10 and ROI to be 2464x2056 (full image size), The image rate is sometimes 22 or 2 or 8. There is also no tendency with ROI. The camera is Mako. Do you have any idea about this issue?



Best,

Jong Woo


References:
Inconsistency of image rate in ADVimba Jong Woo Kim via Tech-talk
RE: Inconsistency of image rate in ADVimba Mark Rivers via Tech-talk

Navigate by Date:
Prev: XY plot timezone issue Aaron Brown via Tech-talk
Next: EPICS collaboration meeting 2020 Heinz Junkes via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  <20202021  2022  2023  2024 
Navigate by Thread:
Prev: RE: Inconsistency of image rate in ADVimba Mark Rivers via Tech-talk
Next: Sequencer/SNL and PVA? Ralph Lange via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  <20202021  2022  2023  2024 
ANJ, 07 Oct 2020 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·