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  <20182019  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  2016  2017  <20182019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: RE: ADMythen --acquisition issues
From: Mark Rivers via Tech-talk <[email protected]>
To: 'zhaoying' <[email protected]>
Cc: "[email protected]" <[email protected]>
Date: Fri, 30 Nov 2018 14:19:59 +0000

Hi Ying,

 

I believe you uncommented this line to get your debugging output:

 

//printf("nread_expected = %d\tnread = %d\n", nread_expect,nread);

 

Can you please change that to:

printf("nread_expected=%d, nread=%d, status=%d, timeout=%f, eomReason=%d\n", nread_expect, nread, status, M1K_TIMEOUT+acquireTime, eomReason);

 

That will show more information returned by pasynOctetSyncIO->writeRead().

 

It seems like status must be asynSuccess, because otherwise you would have also seen the output from this statement:

 

                if(status != asynSuccess) {

                    asynPrint(pasynUserSelf, ASYN_TRACE_ERROR,

                          "%s:%s: error using readout command status=%d, nRead=%d, eomReason=%d\n",

                          driverName, functionName, status, (int)nread, eomReason);

                }

 

Since you don’t see that it seems like by pasynOctetSyncIO->writeRead() returned asynSuccess, even though it did not read the expected number of characters.  That seems strange.

 

Mark

 

 

From: [email protected] <[email protected]> On Behalf Of zhaoying via Tech-talk
Sent: Thursday, November 29, 2018 7:29 PM
To: [email protected]
Subject: ADMythen --acquisition issues

 

Hello, J. Sullivan:

We have a customized DCS6 (Detector control system for up to 6 detector modules ) with 5 Dextris Mythen detector modules. We are using ADMythen module to control those 5 Detectors. The result is as follows.

result

Figure 1Read back results

It can be seen the controlling part works well, but the read back data is all 0 which is not reasonable.

We tried to print the debug. The result is like figure 2.

微信图片_20181130083839

It can be seen “nread” never equals “nread_expected”. So we believe it happens in “acquisition” parts (from line 853 to line 947). But we have not find the actual line.  Any suggestions?

 

Thank you!

---Ying

 


Replies:
答复: ADMythen --acquisition issues zhaoying via Tech-talk
转发: ADMythen --acquisition issues zhaoying via Tech-talk
References:
ADMythen --acquisition issues zhaoying via Tech-talk

Navigate by Date:
Prev: Re: Question about this mailing list Mark Rivers via Tech-talk
Next: Re: Fwd: Re: streamdevice I/O Intr Christoph Schroeder 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  <20182019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: ADMythen --acquisition issues zhaoying via Tech-talk
Next: 答复: ADMythen --acquisition issues zhaoying 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  <20182019  2020  2021  2022  2023  2024 
ANJ, 03 Dec 2018 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·