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  <20092010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  <20092010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: How to let Hytec8401ADC works on interrupt way ?
From: "liuping" <[email protected]>
To: <[email protected]>
Date: Wed, 26 Aug 2009 11:25:44 +0800

Hi, everyone

I have the trouble of Hytec 8401ADC working way. I can let it works well if I set the SCAN field to 1 second. But if I/O Intr" was set, there are no any responses. I use 10Hz/5V pulse to trigger Hy8401ADC. The driver was downloaded from SLS. So who can help me to let it works on interrupt way?

In my opinion, I think I made some wrong parameters in the function of Hy8401ipConfigure(). I dont know how to set the parameters of vector and interrupt state. In my example, I set intl=3, inte=1. Also I am not sure I need to change some switch on slots of VME or not.

 

They are abstracted from st.cmd :

#                                      slot int options

 IPAC6 = ipacEXTAddCarrier(&EXTHy8002, "8 6 10")

 

#-------- 8401 (Analogue Input)------------------------------------------------

#                 card,  slot, ipsl, intl, inte, aity, clks,  clkr, inhi, samp, spac, trig

Hy8401ipConfigure (  60, IPAC6,    A,  3,    1,    0,    0,    15,    0,    100,    1,   100)

 

It is the record what I used:

record(ai, "Hy8401:ADC-01")

{

  field(SCAN, "I/O Intr")

  field(LINR, "LINEAR")

  field(EGUF, "10")

  field(EGUL, "-10")

  field(DESC, "ADC Site A Ch 0")

  field(PREC, "6")

  field(EGU, "Volts")

  field(HOPR, "10")

  field(LOPR, "-10")

  field(DTYP, "Hy8401ip")

  field(INP, "#C60 S0 @")

}

 

They are the output information of VME/IOC:

#                                      slot int options

 IPAC6 = ipacEXTAddCarrier(&EXTHy8002, "8 6 10")

Id: drvHy8002.c,v 1.10 2001/11/20 12:21:42 wscott Exp

8002 initialise 8 6 10

PROM manufacturer ID: 0x8003 (HyTec Electronics Ltd., Reading, UK)

PROM model #: 0x8002, board rev. 0x03

PROM Xilinx rev.: 0x03, 0x00, 0x07

PROM Serial #: 0x00 0x00 0x00 0x00 0x01 0xcf

new symbol "IPAC6" added to symbol table.

IPAC6 = 0x1ee6a5a0: value = 0 = 0x0

 

#-------- 8401 (Analogue Input)------------------------------------------------

#                  card,  slot, ipsl, intl, inte, aity, clks,  clkr, inhi, samp, spac, trig

Hy8401ipConfigure (  60, IPAC6,    0,  3,    1,    0,    0,    15,    0,    100,    1,   100)

$Id: drvHy8401ip.c,v 1.8 2005/10/27 09:07:01 mga83 Exp $

Hy8401ipConfigure: card 60, VME slot 0, IP slot 0,

           vector 3, itr state 1, ai type 0,

           clock src 0, clock rate 15, inhibit 0,

           samples 100, spacing 1, trigger 100

 

value = 0 = 0x0

 

 

 

 

===================================
 

LIU Ping

 

Beamline Control Group
Shanghai Synchrotron Radiation Facility
Shanghai Institute of Applied Physics
Chinese Academy of Sciences
Zhangheng Rd 239,Pudong Dist.,
Shanghai 201204
China
Tel:+86-21-33933237

 

http://ssrf.sinap.ac.cn
===================================

 


Replies:
Re: How to let Hytec8401ADC works on interrupt way ? graham

Navigate by Date:
Prev: RE: StripTool Y range Kevin Anderson
Next: problem using epid record Maurizio Montis
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  <20092010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: RE: StripTool Y range Kevin Anderson
Next: Re: How to let Hytec8401ADC works on interrupt way ? graham
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  <20092010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 31 Jan 2014 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·