Hi,
I am using the asynDriver R4-21 to run Mark River's areaDetectorR1-9-1
software on a Prosilica (i.e. Allied) GigE camera. Everything works
very well
except when the camera becomes offline (e.g. the Ethernet cable for the
Prosilica GigE camera is disconnected). Thankfully, the medm screen
indicated
the "disconnect" status when the Ethernet cable for the Prosilica GE
camera is
disconnected. However, one could still hit the 'acquire start/stop' and
other buttons
via the medm GUI and access the PVs.
One would wish to have a more detectable effect so that one could not
access
the camera's PVs, when the camera became offline. The attached patch
will disable
the PVs access, if the Ethernet cable for the GigE camera is
disconnected. If
the camera becomes online via Ethernet, the PVs will be accessible again.
The patch is tested with the GigE camera.
Cheers,
Kate Feng
--- asynRecord.c.orig 2012-12-21 17:34:45.000000000 -0500
+++ asynRecord.c 2013-05-16 13:41:37.651237452 -0400
@@ -874,12 +874,26 @@
asynPrint(pasynUser, ASYN_TRACE_FLOW,
"%s: exception %d\n",
pasynRec->name, (int) exception);
- if(callLock)
- dbScanLock((dbCommon *) pasynRec);
+
+ switch(exception) {
+ case asynExceptionConnect:
+ if ((pasynRec->cnct) && callLock) dbScanLock((dbCommon *) pasynRec);
+ break;
+ default:
+ if (callLock) dbScanLock((dbCommon *) pasynRec);
+ break;
+ }
/* There has been a change in connect or enable status */
monitorStatus(pasynRec);
- if(callLock)
- dbScanUnlock((dbCommon *) pasynRec);
+
+ switch(exception) {
+ case asynExceptionConnect:
+ if((pasynRec->cnct) && callLock) dbScanUnlock((dbCommon *) pasynRec);
+ break;
+ default:
+ if (callLock) dbScanUnlock((dbCommon *) pasynRec);
+ break;
+ }
}
static void queueTimeoutCallbackProcess(asynUser * pasynUser)
- Replies:
- RE: asynDriver R4-21: a possible patch for asynRecord.c: test on GigE camera Feng, Kate
- Navigate by Date:
- Prev:
Re: MEDM Eric Norum
- Next:
Modbus Zenon Szalata
- 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
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
Re: MEDM Eric Norum
- Next:
RE: asynDriver R4-21: a possible patch for asynRecord.c: test on GigE camera Feng, Kate
- 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
2020
2021
2022
2023
2024
|