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: Re: Epics iocInit()
From: Mark Rivers via Tech-talk <tech-talk at aps.anl.gov>
To: "'fandayu at tucsen.com'" <fandayu at tucsen.com>
Cc: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Wed, 8 Jul 2020 15:56:09 +0000

Hi,

 

I am trying to understand the output you sent in errorlog.txt

 

C:\Users\Administrator>cd C:\Epics\synApps\synApps_6_1\support\areaDetector-master\ADTucsen\bin\windows-x64

 

That is not the correct directory to cd to.  The directory should be

C:\Epics\synApps\synApps_6_1\support\areaDetector-master\ADTucsen\iocs\tucsenIOC\iocBoot\iocTucsen

 

 

C:\Epics\synApps\synApps_6_1\support\areaDetector-master\ADTucsen\bin\windows-x64>start_epics.bat

 

Where did you get that start_epics.bat file?  It does not come with ADTuscen.  For now you don’t need a start_epics.bat file.  If you want to use it then it belongs in the ADTucsen\iocs\tucsenIOC\iocBoot\iocTucsen directory.

 

 

C:\Epics\synApps\synApps_6_1\support\areaDetector-master\ADTucsen\bin\windows-x64>set ADTUCSEN=C:/Epics/synApps/synApps_6_1/support/areaDetector-master/ADTucsen

C:\Epics\synApps\synApps_6_1\support\areaDetector-master\ADTucsen\bin\windows-x64>set ADCORE=C:/Epics/synApps/synApps_6_1/support/areaDetector-master/ADCore

 

You should not need either of those SET commands.

 

C:\Epics\synApps\synApps_6_1\support\areaDetector-master\ADTucsen\bin\windows-x64>tucsenApp st.cmd

 

How is it finding tucsenApp?  Have you copied it to the ADTucsen\bin\windows-x64 directory, or did you add something to your PATH?  That is not where tucsenApp.exe gets installed by “make”.

 

< envPaths

epicsEnvSet("IOC","iocWindows")

epicsEnvSet("TOP","C:/Epics/synApps/synApps_6_1/support/mca-R7-8")

epicsEnvSet("SUPPORT","C:/Epics/synApps/synApps_6_1/support")

epicsEnvSet("CALC","C:/Epics/synApps/synApps_6_1/support/calc-R3-7-3")

epicsEnvSet("SSCAN","C:/Epics/synApps/synApps_6_1/support/sscan-R2-11-3")

epicsEnvSet("BUSY","C:/Epics/synApps/synApps_6_1/support/busy-R1-7-2")

epicsEnvSet("STD","C:/Epics/synApps/synApps_6_1/support/std-R3-6")

epicsEnvSet("SNCSEQ","C:/Epics/synApps/synApps_6_1/support/seq-2-2-6")

epicsEnvSet("AUTOSAVE","C:/Epics/synApps/synApps_6_1/support/autosave-R5-10")

epicsEnvSet("ASYN","C:/Epics/synApps/synApps_6_1/support/asyn-R4-37")

epicsEnvSet("MCA","C:/Epics/synApps/synApps_6_1/support/mca-R7-8")

epicsEnvSet("EPICS_BASE","C:/Epics/base-7.0.3.1")

errlogInit(20000)

 

Where did you get that envPaths file?  That file cannot be one that was built with ADTucsen. 

If you were in the correct directory, ADTucsen\iocs\tucsenIOC\iocBoot\iocTucsen and if the Makefile there has the correct ARCH then it will build a good version of envPaths for you there.

 

dbLoadDatabase("C:/Epics/synApps/synApps_6_1/support/mca-R7-8/dbd/tucsenApp.dbd")

filename="C:\Epics\base-7.0.3.1\modules\database\src\ioc\dbStatic\dbLexRoutines.c" line number=264

No such file or directory dbRead opening file C:/Epics/synApps/synApps_6_1/support/mca-R7-8/dbd/tucsenApp.dbd

 

Your st.cmd file is loading some non-existent tucsenApp.dbd file from the mca-R6-8/dbd directory.  It should be loading it from ADTucsen\iocs\tucsenIOC\dbd.

 

Mark

 

From: fandayu at tucsen.com <fandayu at tucsen.com>
Sent: Tuesday, July 7, 2020 8:41 PM
To: Mark Rivers <rivers at cars.uchicago.edu>
Cc: tech-talk at aps.anl.gov
Subject: Re: Re: Epics iocInit()

 

Hi Mark

    the error log in attached(errorlog.txt)

thak you for help

 


 

From: Mark Rivers

Date: 2020-07-07 20:48

Subject: Re: Re: Epics iocInit()

You definitely had errors early in your IOC boot, because no records are loaded.

 

 

Please send the complete output from the IOC when you start it.  To do this you need to do the following:

 

 

- Open a Windows cmd console window.

 

- Right click in the top title bar and open Defaults

 

- Check the Quick Edit Mode box and set the Buffer Size to a large number like 3000.

 

 

Now when you run the IOC terminal you can select the entire text you want to copy with the mouse and press Enter.  Now the text is in your Windows paste buffer and you can paste it either into a file or directly into your tech-talk message.

 

Mark

 

________________________________

Sent: Tuesday, July 7, 2020 5:50 AM

To: Mark Rivers

Subject: Re: Re: Epics iocInit()

 

Hi Mark

 

 

  *   I've managed to compile it all.But the run appears

 

  *   as attached (1.jpg and 2.jpg)

 

________________________________

 

Date: 2020-07-07 10:33

Subject: Re: RE: Epics iocInit()

Hi Mark

thank you for you reply:

           Do you know that there is already an areaDetector driver for Tucsen cameras?  It was written by David Vine.  I don’t know the current status.

     https://github.com/djvine/ADTucsen. ---- This is very good news for me. I didn't know that before,

 

  *   That's why I wanted to develop it myself, but it was very difficult

 

  *   Now I'll try the one you developed(https://github.com/djvine/ADTucsen.)

 

  *   I want to know if we can develop it ourselves.

 

  *   if we can develop it ourselves,how to do it.

 

  *   could you cc David Vine in this mail.

 

________________________________

 

Date: 2020-07-07 00:44

To: 'fandayu at tucsen.com'<mailto:fandayu at tucsen.com>

Subject: RE: Re: Epics iocInit()

Hi,

 

 

Ø   YES our campany makes cameras, I'm a software engineer from tucsen.

 

Ø  YES,this is areaDetector IOC We want to develop our camera on Epics software>..

 

Ø  > - What IOC application is it?  Is it one you wrote, or one you got from some EPICS module?

 

Ø  year I refer to ioc from Andor3

 

Do you mean it is an areaDetector driver that you wrote based on ADAndor3?

 

Do you know that there is already an areaDetector driver for Tucsen cameras?  It was written by David Vine.  I don’t know the current status.

 

If you were not aware of that, it might be a better place to start than the ADAndor3 driver.

 

If you do the following:

 

cd to your iocBoot/iocXXX directory, where XXX is whatever you named it.

 

Type the following command:

 

..\..\bin\windows-x64\XXX.exe st.cmd

 

where XXX is the name of your application, what to you see?  Please send the complete output.

 

 

Ø  Could you please tell me,Is Andor areaDetector-camera the software your helped develop or they developed it themselves?

 

The EPICS areaDetector ADAndor3 driver was written by the EPICS community, including me.  It was not written by Andor.

 

Mark

 

 

 

Sent: Monday, July 6, 2020 4:09 AM

To: Mark Rivers <rivers at cars.uchicago.edu>

Subject: Re: Re: Epics iocInit()

 

Hi Mark

     Firstly, thank you very much for you relpy.

Now I will answer your some question:

 

- It looks like this is Windows, correct?

Yes, this is Windows

-  What does the error message say in English?

the error message mean:There was a problem that caused the program to stop working properly.Please close the program

- What versions of EPICS base and other modules (asyn, etc.)?

EPICS base ver:base-7.0.3.1  asyn ver:asyn-R4-37  busy ver: busy-R1-7-2 std-R3-6 .... and so on

- It looks like tucsen.com makes cameras.  Is this an areaDetector IOC?

YES our campany makes cameras, I'm a software engineer from tucsen.

 

·         YES,this is areaDetector IOC We want to develop our camera on Epics software.

- What IOC application is it?  Is it one you wrote, or one you got from some EPICS module?

year I refer to ioc from Andor3

- Do you get any output in the IOC console before you get that error?  If the error is a missing DLL then you probably won't.

 

·         I added the necessary DLL files,So I think it should not be caused by DLL

- If you do get output then please send the complete output.

·

 

o    It crashes when it runs and there's no output, right

 

o    sometimes I find if i

 

§  Adding this function( createParam(TucsenPixelEncodingString,    asynParamInt32,   &TucsenPixelEncoding);

 

§  ) will cause the program to crash

 

§  In particular this enumeration(asynParamInt32

 

§  )

§

 

§  Could I trouble you for help,thk

 

________________________________

 

Date: 2020-07-04 22:10

CC: EPICS tech-talk<mailto:tech-talk at aps.anl.gov>

Subject: Re: Epics iocInit()

Hi,

 

 

There is way too little information in your message to answer your question.  Most of the people on tech-talk cannot read Chinese so we don't know what the error message says.  But even if we did we need to know a lot more.

 

 

- It looks like this is Windows, correct?

 

-  What does the error message say in English?

 

- What versions of EPICS base and other modules (asyn, etc.)?

 

- It looks like tucsen.com makes cameras.  Is this an areaDetector IOC?

 

- What IOC application is it?  Is it one you wrote, or one you got from some EPICS module?

 

- Do you get any output in the IOC console before you get that error?  If the error is a missing DLL then you probably won't.

 

- If you do get output then please send the complete output.

 

 

Mark

 

 

 

________________________________

Sent: Friday, July 3, 2020 12:31 AM

Subject: Epics iocInit()

 

hi

 

 

The code crashes when it is iocInit() .Do you have any other good Suggestions

 

________________________________

 

 

 


Replies:
Re: RE: Epics iocInit() fandayu--- via Tech-talk
References:
Epics iocInit() fandayu--- via Tech-talk
Re: Epics iocInit() Mark Rivers via Tech-talk
Re: Re: Epics iocInit() fandayu--- via Tech-talk
RE: Re: Epics iocInit() Mark Rivers via Tech-talk
Re: RE: Epics iocInit() fandayu--- via Tech-talk
Re: Re: Epics iocInit() fandayu--- via Tech-talk
Re: Re: Epics iocInit() Mark Rivers via Tech-talk
Re: Re: Epics iocInit() fandayu--- via Tech-talk

Navigate by Date:
Prev: Re: GitHub Software Releases in support of EPICS Web Applications Cobb, Tom (DLSLtd,RAL,LSCI) via Tech-talk
Next: Re: GitHub Software Releases in support of EPICS Web Applications Bruno Martins 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: Re: Epics iocInit() fandayu--- via Tech-talk
Next: Re: RE: Epics iocInit() fandayu--- 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, 10 Jul 2020 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·