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  <20162017  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  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: RE: Merlin and AreaDetector
From: "Gofron, Kazimierz" <[email protected]>
To: "'[email protected]'" <[email protected]>, "[email protected]" <[email protected]>, "[email protected]" <[email protected]>
Date: Mon, 13 Jun 2016 23:02:41 +0000

Hi Giles,

 

I increased a timeout to 10 [s], but that did not resolve the labview messages in the IOC.

 

I have looked more into frame size with hex editor. The Labview .mib image header shows image size of 515x515.

There are 7 (00) bytes at offset $2A0 

Data from $2B0 : $81B00

There are 2 bytes at offset $81B10

Total “image” bytes 530528+7+2=530537, is larger than expected 530532 (512 x 512 image).

 

Kaz

 

cid:image002.png@01D1C593.A05C6850

 

 

The EPICS frame appends most of the “Header” information at the end of the frame, and also shows image sizes of 515 x 515.

 

00081980: 761a 0800 fefd 0200 1600 0000 8c1a 0800  v...............

00081990: fffd 0200 0001 0000 a21a 0800 0000 0000  ................

000819a0: 556e 6b6e 6f77 6e00 556e 6b6e 6f77 6e00  Unknown.Unknown.

000819b0: 4550 4943 5320 6172 6561 4465 7465 6374  EPICS areaDetect

000819c0: 6f72 0000 76f6 5012 3be0 c841 4672 616d  or..v.P.;..AFram

000819d0: 6520 4e75 6d62 6572 3a38 3236 0000 4368  e Number:826..Ch

000819e0: 6970 2043 6f75 6e74 3a37 3732 0000 5820  ip Count:772..X

000819f0: 5369 7a65 3a35 3135 0000 5920 5369 7a65  Size:515..Y Size

00081a00: 3a35 3135 0000 5069 7865 6c20 4465 7074  :515..Pixel Dept

00081a10: 683a 3136 0000 5365 6e73 6f72 204c 6179  h:16..Sensor Lay

00081a20: 6f75 743a 2020 3278 3247 0000 4368 6970  out:  2x2G..Chip

00081a30: 2053 656c 6563 743a 3135 0000 5368 7574   Select:15..Shut

00081a40: 7465 7220 5469 6d65 3a31 2e30 3030 3030  ter Time:1.00000

00081a50: 3000 436f 756e 7465 723a 3000 436f 6c6f  0.Counter:0.Colo

00081a60: 7572 204d 6f64 653a 3000 4761 696e 204d  ur Mode:0.Gain M

00081a70: 6f64 653a 3000 5468 7265 7368 6f6c 6420  ode:0.Threshold

00081a80: 303a 3130 2e30 3030 3030 3000 5468 7265  0:10.000000.Thre

00081a90: 7368 6f6c 6420 313a 3130 2e30 3030 3030  shold 1:10.00000

00081aa0: 3000 4163 7175 6973 6974 696f 6e20 4865  0.Acquisition He

00081ab0: 6164 6572 3a48 4452 2c09 0d0a 5469 6d65  ader:HDR,...Time

00081ac0: 2061 6e64 2044 6174 6520 5374 616d 7020   and Date Stamp

00081ad0: 2879 722c 206d 6e74 682c 2064 6179 2c20  (yr, mnth, day,

00081ae0: 6872 2c20 6d69 6e2c 2073 293a 0936 2f31  hr, min, s):.6/1

00081af0: 332f 3230 3136 2038 3a35 383a 3035 2050  3/2016 8:58:05 P

00081b00: 4d0d 0a43 6869 7020 4944 3a09 5732 3139  M..Chip ID:.W219

00081b10: 345f 4831 302c 5731 3436 5f49 3130 2c57  4_H10,W146_I10,W

00081b20: 3134 365f 4a35 2c57 3134 365f 4631 300d  146_J5,W146_F10.

00081b30: 0a43 6869 7020 5479 7065 2028 4d65 6469  .Chip Type (Medi

00081b40: 7069 7820 332e 302c 204d 6564 6970 6978  pix 3.0, Medipix

00081b50: 2033 2e31 2c20 4d65 6469 7069 7820 3352   3.1, Medipix 3R

00081b60: 5829 3a09 4d65 6469 7069 7820 3352 580d  X):.Medipix 3RX.

00081b70: 0a41 7373 656d 626c 7920 5369 7a65 2028  .Assembly Size (

00081b80: 3158 312c 2032 5832 293a 0920 2032 7832  1X1, 2X2):.  2x2

00081b90: 470d 0a43 6869 7020 4d6f 6465 2020 2853  G..Chip Mode  (S

00081ba0: 5000                                     P.

 

 

 

-----Original Message-----
From: [email protected] [mailto:[email protected]]
Sent: Monday, June 13, 2016 3:32 AM
To: [email protected]; Gofron, Kazimierz; [email protected]
Subject: RE: Merlin and AreaDetector

 

Hi Kaz,

 

The labview response messages are confirmation of correct execution of 4 commands which I would expect to be executed at startup. However the fact that they are reported as errors implies that they have come back to the IOC out of sequence. The two blank responses before could mean that a timeout occurred, I suggest increasing the timeout value in the medipix template and see if theses errors go away.

 

None of this explains the unusual frame size. If your device is generating 516x516 and correctly reports it to the driver then the driver should handle it correctly (but I have not tested those specific dimensions).

 

Regards,

   giles...

________________________________________

From: [email protected] [[email protected]] on behalf of Mark Rivers [[email protected]]

Sent: 13 June 2016 04:13

To: Gofron, Kazimierz; [email protected]

Subject: RE: Merlin and AreaDetector

 

Hi Kaz,

 

When we borrowed that detector and used areaDetector to save images they were 512x512, not 516x516.  Joanne Stubbs said she thinks there may be some different options on how to handle edge pixels, so perhaps your settings are different from ours.

 

Mark

 

________________________________

From: Gofron, Kazimierz [[email protected]]

Sent: Friday, June 10, 2016 7:51 PM

To: Mark Rivers; [email protected]

Subject: RE: Merlin and AreaDetector

 

Thanks Mark on poiners to increase the number of ROI regions. Both modifications of screens, and commonPlugins is easy enough.

 

It is a loaner quad Merlin, and i am working with it for last 2 days. Perhaps I am still overlooked something.

 

Strangely enough, the image from Merlin seems to be 516x516 pixels, and not 512x512 the way documentation indicates, and ADMerlin has it setup.

 

Kaz

 

Sent from my Sprint Samsung Galaxy Note5.

 

 

-------- Original message --------

From: Mark Rivers <[email protected]>

Date: 6/10/16 6:45 PM (GMT-05:00)

To: "Gofron, Kazimierz" <[email protected]>, [email protected]

Subject: RE: Merlin and AreaDetector

 

Hi Kaz,

 

> However, for the current application, we need 6 ROI regions, but AD provides only 4 ROI regions. Would increasing number of ROI regions to 6 in areaDetector be standardized?

 

4 NDPluginROI plugins are loaded in the example commonPlugins.cmd file.  You are free to edit that file to load more, or instantiate additional plugins in the st.cmd file in addition to those created in commonPlugins.cmd.  You will also need to modify the OPI screen to access the additional plugins.  Many sites customize what plugins are loaded, either not loaded unused plugins, loading additional instances of standard plugins, or loading new site-specific plugins they have written.

 

Those communication errors with the LabView socket server do not look correct.  I don't recall seeing those, but I only had the detector for a couple of weeks and so did not spend a lot of time testing it.

 

Is this a purchased unit or their loaner?

 

Mark

 

 

-----Original Message-----

From: Gofron, Kazimierz [mailto:[email protected]<redir.aspx?REF=Im7ztHz_clyDLFxbGzMrIw6-RY7nDnulWbyrpFnJAxPKNPFzOJPTCAFtYWlsdG86a2dvZnJvbkBibmwuZ292>]

Sent: Friday, June 10, 2016 5:19 PM

To: [email protected]

Cc: [email protected]

Subject: Merlin and AreaDetector

 

Dear all,

 

For Merlin Quad detector, I compiled ADMerlin with newest AreaDetector (2.5?), and things seem to work properly. However, for the current application, we need 6 ROI regions, but AD provides only 4 ROI regions. Would increasing number of ROI regions to 6 in areaDetector be standardized?

 

2. I am also seeing the "labview" messages in the ioc which may or may not be important.I am wondering if this is anything to worry about???

 

iocInit()

Starting iocInit

############################################################################

## EPICS R3.14.12.5 $Date: Tue 2015-03-24 09:57:35 -0500$ ## EPICS Base built Dec  2 2015 ############################################################################

reboot_restore: entry for file 'auto_settings.sav'

reboot_restore: Found filename 'auto_settings.sav' in restoreFileList.

*** restoring from '/epics/iocs/merlinIOC/as/save/auto_settings.sav' at initHookState 6 (before record/device init) ***

reboot_restore: done with file 'auto_settings.sav'

 

reboot_restore: entry for file 'auto_settings.sav'

reboot_restore: Found filename 'auto_settings.sav' in restoreFileList.

*** restoring from '/epics/iocs/merlinIOC/as/save/auto_settings.sav' at initHookState 7 (after record/device init) ***

reboot_restore: done with file 'auto_settings.sav'

 

cas warning: Configured TCP port was unavailable.

cas warning: Using dynamically assigned TCP port 57841, cas warning: but now two or more servers share the same UDP port.

cas warning: Depending on your IP kernel this server may not be cas warning: reachable with UDP unicast (a host's IP in EPICS_CA_ADDR_LIST)

iocRun: All initialization complete

# save things every thirty seconds

create_monitor_set("auto_settings.req", 30,"P=XF:10IDD-ES{Merlin:1}")

save_restore:readReqFile: unable to open file sseq_settings.req. Exiting.

save_restore:readReqFile: unable to open file sseq_settings.req. Exiting.

save_restore:readReqFile: unable to open file sseq_settings.req. Exiting.

save_restore:readReqFile: unable to open file sseq_settings.req. Exiting.

save_restore:readReqFile: unable to open file sseq_settings.req. Exiting.

save_restore:readReqFile: unable to open file sseq_settings.req. Exiting.

save_restore:readReqFile: unable to open file sseq_settings.req. Exiting.

save_restore:readReqFile: unable to open file sseq_settings.req. Exiting.

save_restore:readReqFile: unable to open file sseq_settings.req. Exiting.

save_restore:readReqFile: unable to open file sseq_settings.req. Exiting.

epics> auto_settings.sav: 826 of 826 PV's connected

2016/06/10 18:02:42.811 medipixDetector:mpxReadCmd error, status=1 unexpected response from labview: ''

2016/06/10 18:02:42.811 medipixDetector:writeFloat64 error, status=1 function=91, value=20.000000

2016/06/10 18:02:42.812 XF:10IDD-ES{Merlin:1}cam1:OperatingEnergy devAsynFloat64 pPvt->result.status=1, process error

2016/06/10 18:02:44.814 medipixDetector:mpxReadCmd error, status=1 unexpected response from labview: ''

2016/06/10 18:02:46.815 medipixDetector:mpxReadCmd error, status=1 unexpected response from labview: ''

2016/06/10 18:02:47.155 medipixDetector:mpxReadCmd error, status=0 unexpected response from labview: 'MPX,0000000022,CMD,STOPACQUISITION,0'

2016/06/10 18:02:47.162 medipixDetector:mpxReadCmd error, status=0 unexpected response from labview: 'MPX,0000000022,SET,OPERATINGENERGY,0'

2016/06/10 18:02:47.166 medipixDetector:mpxReadCmd error, status=0 unexpected response from labview: 'MPX,0000000017,SET,THRESHOLD0,0'

2016/06/10 18:02:47.169 medipixDetector:mpxReadCmd error, status=0 unexpected response from labview: 'MPX,0000000027,GET,THRESHOLD0,10.000000,0'

2016/06/10 18:02:47.186 medipixDetector:writeFloat64 error, status=1 function=83, value=10.000000

2016/06/10 18:02:47.186 XF:10IDD-ES{Merlin:1}cam1:ThresholdEnergy0 devAsynFloat64 pPvt->result.status=1, process error

 

epics>

 

Kazimierz

 

 

--

This e-mail and any attachments may contain confidential, copyright and or privileged material, and are for the use of the intended addressee only. If you are not the intended addressee or an authorised recipient of the addressee please notify us of receipt by returning the e-mail and do not use, copy, retain, distribute or disclose the information in or attached to the e-mail.

Any opinions expressed within this e-mail are those of the individual and not necessarily of Diamond Light Source Ltd.

Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments are free from viruses and we cannot accept liability for any damage which you may sustain as a result of software viruses which may be transmitted in or with the message.

Diamond Light Source Limited (company no. 4375679). Registered in England and Wales with its registered office at Diamond House, Harwell Science and Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom

 


References:
Merlin and AreaDetector Gofron, Kazimierz
RE: Merlin and AreaDetector Mark Rivers
RE: Merlin and AreaDetector Gofron, Kazimierz
RE: Merlin and AreaDetector Mark Rivers
RE: Merlin and AreaDetector giles.knap

Navigate by Date:
Prev: Re: Error msg Andrew Johnson
Next: RE: Merlin and AreaDetector Mark Rivers
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: RE: Merlin and AreaDetector giles.knap
Next: RE: Merlin and AreaDetector Mark Rivers
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 15 Jul 2016 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·