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 don’t 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
===================================