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  <20132014  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  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: RE: IP330 modules question
From: Mark Rivers <[email protected]>
To: Geon-Yeong Mun <[email protected]>
Cc: "[email protected]" <[email protected]>
Date: Mon, 3 Jun 2013 13:20:37 +0000
What version of the ip330 software are you using?

The ip330::calibration function has an asynPrint statement to print the raw calibration values.  Please set asynTrace to enable those messages so we can see what they are.

Mark

________________________________________
From: Geon-Yeong Mun [[email protected]]
Sent: Monday, June 03, 2013 1:14 AM
To: Mark Rivers
Cc: [email protected]
Subject: RE: IP330 modules question

Yes. I added.
Printf is show the Raw Data value and calibration factor.

And, I using the internal power supply +-12v. J1,J2 jumper settings is
equal.

I don't know more about the interrupt vector.
ipacAddXy9660("0000,4 A=2,800000")
initIp330("IP330_1",0,0,"D","-5to5",0,15,4)

interrupt vector value was not 4 then IP330 was print error message about
vector.
And AVME9670 link LED was not blink.

Best regards.
Geon-Yeong.

-----Original Message-----
From: Mark Rivers [mailto:[email protected]]
Sent: Monday, June 03, 2013 11:54 AM
To: Geon-Yeong Mun; [email protected]
Subject: RE: IP330 modules question

Are the debugging print statements you show ones that you have added?

What voltage source are you using for the IP330, the internal +-12V, or
external +-15V?

Are you sure that interrupt vector 4 is correct?

The VoltCALLO values seem to be jumping all over the place in the
calibration routine.

Mark

________________________________
From: [email protected] [[email protected]] on
behalf of Geon-Yeong Mun [[email protected]]
Sent: Sunday, June 02, 2013 9:19 PM
To: [email protected]
Subject: IP330 modules question


Hi all.


I tried to run IP300 module, and read the Analog data.

All Raw data(16ch Diff mode) are displayed as shown below. This data's
source is 5 voltage.


Data: 65535

Data: 65535

Data: 50845

Data: 33453

Data: 65535

Data: 65535

Data: 33454

Data: 33453

Data: 33450

Data: 65535

Data: 65535

Data: 33452

Data: 33452

Data: 33453

Data: 65535

Data: 65535

Data: 33452

Data: 33453

Data: 65535

Data: 65535

Data: 65535

Data: 33451

Data: 33454

Data: 65535

Data: 65535

Data: 65535


This repeating pattern is the 33453 and 65535

Are you known about this?



Development environment

Epics base: 3.14.12.3

Target os : vxWorks 6.9

Hardware : AVME9670, IP330A

Modules : ipac 2.11, ip330



Best regards.

Geon-Yeong


-----------------------------------------------------------------------

boot device          : geisc

unit number          : 0

processor number     : 0

host name            : gymun-evr

file name            : /home/work/image/vxWorks

inet on ethernet (e) : 141.223.48.53:ffffff00

host inet (h)        : 141.223.48.51

gateway inet (g)     : 141.223.48.99

user (u)             : work

ftp password (pw)    : work

flags (f)            : 0x0

target name (tn)     : evrTest

startup script (s)   : /home/work/st.vxWorks.evr



Loading... 2354032

Starting at 0x100000...



Loading symbol table from gymun-evr:/home/work/image/vxWorks.sym ...done





                VxWorks



Copyright 1984-2013  Wind River Systems, Inc.



             CPU: Motorola MVME6100-0173 - MPC 7457

    Runtime Name: VxWorks

Runtime Version: 6.9

     BSP version: 6.9/0

         Created: May 23 2013, 18:22:53

ED&R Policy Mode: Deployed

   WDB Comm Type: WDB_COMM_END

             WDB: Ready.



Executing startup script '/home/work/st.vxWorks.evr'...



#================



ipAttach(1,"geisc")

value = 0 = 0x0

ifconfig("geisc1 inet 192.168.10.131 netmask 255.255.255.0 up")

value = 0 = 0x0



tyBackspaceSet(0177)

value = 127 = 0x7f

#ld < mrf.munch

ld < mrfTest.munch

value = 72237072 = 0x44e4010



# env setting

epicsEnvSet("ENGINEER","Geon-Yeong Mun")

value = 0 = 0x0

epicsEnvSet("LOCATION","TestLab")

value = 0 = 0x0

epicsEnvSet("EPICS_CA_MAX_ARRAY_BYTES","1000000")

value = 0 = 0x0

epicsEnvSet("EPICS_TS_NTP_INET","141.223.48.51")

value = 0 = 0x0



#dbLoadDatabase("dbd/mrf.dbd",0,0)

#mrf_registerRecordDeviceDriver(pdbbase)



dbLoadDatabase("dbd/mrfTest.dbd",0,0)

value = 0 = 0x0

mrfTest_registerRecordDeviceDriver(pdbbase)

value = 0 = 0x0





# IRQ 3: EVR

# IRQ 4: AVME9670



# EVG(A24)

#mrmEvgSetupVME("EVG1",2,0x00050000,4,0xc0)

#mrmEvgSetupVME("EVG1",2,0x00000000,4,0xc0)

# sysBusToLocalAdrs(0x0d,0x00100000,&a)Can't reg

ister 'system' comm

and -- no command i# EVR(A24)nterpreter

available.

#mrmEvrSetupVME("EVR1",5,0x00100000,3,0x26)

#mrmEvrSetupVME("EVR1",5,0x00200000,4,0x24)

#mrmEvrSetupVME("EVR1",5,0x08000000,3,0x26)

mrmEvrSetupVME("EVR1",2,0x00000000,3,0x26)

Setting up EVR in VME Slot 2

Found vendor: 00000eb2 board: 455246e6 rev.: 00000000

EVR check. EVR-230 'EVR1' slot 2

FPGA version... 0006

Found SFP Strangeness ffffffff

FWVersVME64 ion 0x12000006Out FP:

7 FPUNIV:4 RB:Found version 6

16 IFP:2

Using IRQ 35:38EVR FIFO task start



value = 0 = 0x0

# sysBusToLocalAdrs(0x0d,0x00280000,&k)

# sysBusToLocalAdrs(0x0d,0x00300000,&k)

#

# 0xF8 : 7C00000



# ACROMAG AVME9670

ipacAddXy9660("0000,4 A=2,800000")

Now finish parsing....  A=2,800000

AVME-IP: init success...1

value = 0 = 0x0



# ACROMAG IP330

# string : portName

# int carrierID

# int SlotID

# string type : "D" or "S" for differential or single-ended

# string range

# int firstChan

# int lastChan

# int interruptVector

#initIp330("IP330_1",0,0,"D","-5to5",0,15,4)

initIp330("IP330_1",0,0,"D","-5to5",0,15,4)

value = 0 = 0x0

configIp330("IP330_1",3,"Input",1000,60)

########### CALIBRATION ########

CH 00

Corrected_Count: 1.019773

Ideal_Volt_Span: 10.000000

m: 0.000156

Gain: 1.000000

VoltCALHI: 4.900000

VoltCALLO: 0.000000

CountCALHI: 64941.968750

CountCALLO: 33451.968750

drvIp330::calibrate channel 0 adj_slope 1.019773e+00 adj_offset
-1.319316e+03

########### CALIBRATION ########

CH 01

Corrected_Count: 1.018058

Ideal_Volt_Span: 10.000000

m: 0.000155

Gain: 1.000000

VoltCALHI: 4.900000

VoltCALLO: 0.000000

CountCALHI: 64941.718750

CountCALLO: 33398.687500

drvIp330::calibrate channel 1 adj_slope 1.018058e+00 adj_offset
-1.211921e+03

########### CALIBRATION ########

CH 02

Corrected_Count: -54.189974

Ideal_Volt_Span: 10.000000

m: -0.008269

Gain: 1.000000

VoltCALHI: 4.900000

VoltCALLO: 0.000000

CountCALHI: 64942.406250

CountCALLO: 65535.000000

drvIp330::calibrate channel 2 adj_slope -5.418997e+01 adj_offset
-6.613969e+04

########### CALIBRATION ########

CH 03

Corrected_Count: -54.178546

Ideal_Volt_Span: 10.000000

m: -0.008267

Gain: 1.000000

VoltCALHI: 4.900000

VoltCALLO: 0.000000

CountCALHI: 64942.281250

CountCALLO: 65535.000000

drvIp330::calibrate channel 3 adj_slope -5.417855e+01 adj_offset
-6.613982e+04

########### CALIBRATION ########

CH 04

Corrected_Count: 2.016120

Ideal_Volt_Span: 10.000000

m: 0.000308

Gain: 1.000000

VoltCALHI: 4.900000

VoltCALLO: 0.000000

CountCALHI: 64941.843750

CountCALLO: 49013.906250

drvIp330::calibrate channel 4 adj_slope 2.016120e+00 adj_offset
-3.276091e+04

########### CALIBRATION ########

CH 05

Corrected_Count: -54.189974

Ideal_Volt_Span: 10.000000

m: -0.008269

Gain: 1.000000

VoltCALHI: 4.900000

VoltCALLO: 0.000000

CountCALHI: 64942.406250

CountCALLO: 65535.000000

drvIp330::calibrate channel 5 adj_slope -5.418997e+01 adj_offset
-6.613969e+04

########### CALIBRATION ########

CH 06

Corrected_Count: 1.019771

Ideal_Volt_Span: 10.000000

m: 0.000156

Gain: 1.000000

VoltCALHI: 4.900000

VoltCALLO: 0.000000

CountCALHI: 64942.250000

CountCALLO: 33452.187500

drvIp330::calibrate channel 6 adj_slope 1.019771e+00 adj_offset
-1.319471e+03

########### CALIBRATION ########

CH 07

Corrected_Count: 1.021627

Ideal_Volt_Span: 10.000000

m: 0.000156

Gain: 1.000000

VoltCALHI: 4.900000

VoltCALLO: 0.000000

CountCALHI: 64941.968750

CountCALLO: 33509.125000

drvIp330::calibrate channel 7 adj_slope 1.021627e+00 adj_offset
-1.434795e+03

########### CALIBRATION ########

CH 08

Corrected_Count: -54.149996

Ideal_Volt_Span: 10.000000

m: -0.008263

Gain: 1.000000

VoltCALHI: 4.900000

VoltCALLO: 0.000000

CountCALHI: 64941.968750

CountCALLO: 65535.000000

drvIp330::calibrate channel 8 adj_slope -5.415000e+01 adj_offset
-6.614013e+04

########### CALIBRATION ########

CH 09

Corrected_Count: 1.019775

Ideal_Volt_Span: 10.000000

m: 0.000156

Gain: 1.000000

VoltCALHI: 4.900000

VoltCALLO: 0.000000

CountCALHI: 64941.843750

CountCALLO: 33451.906250

drvIp330::calibrate channel 9 adj_slope 1.019775e+00 adj_offset
-1.319317e+03

########### CALIBRATION ########

CH 10

Corrected_Count: 1.063591

Ideal_Volt_Span: 10.000000

m: 0.000162

Gain: 1.000000

VoltCALHI: 4.900000

VoltCALLO: 0.000000

CountCALHI: 64942.437500

CountCALLO: 34749.781250

drvIp330::calibrate channel 10 adj_slope 1.063591e+00 adj_offset
-3.940948e+03

########### CALIBRATION ########

CH 11

Corrected_Count: 11.663407

Ideal_Volt_Span: 10.000000

m: 0.001780

Gain: 1.000000

VoltCALHI: 4.900000

VoltCALLO: 0.000000

CountCALHI: 64942.625000

CountCALLO: 62189.343750

drvIp330::calibrate channel 11 adj_slope 1.166341e+01 adj_offset
-5.937987e+04

########### CALIBRATION ########

CH 12

Corrected_Count: 1.019800

Ideal_Volt_Span: 10.000000

m: 0.000156

Gain: 1.000000

VoltCALHI: 4.900000

VoltCALLO: 0.000000

CountCALHI: 64941.875000

CountCALLO: 33452.718750

drvIp330::calibrate channel 12 adj_slope 1.019800e+00 adj_offset
-1.320927e+03

########### CALIBRATION ########

CH 13

Corrected_Count: 1.019208

Ideal_Volt_Span: 10.000000

m: 0.000156

Gain: 1.000000

VoltCALHI: 4.900000

VoltCALLO: 0.000000

CountCALHI: 64942.031250

CountCALLO: 33434.593750

drvIp330::calibrate channel 13 adj_slope 1.019208e+00 adj_offset
-1.284147e+03

########### CALIBRATION ########

CH 14

Corrected_Count: -54.147143

Ideal_Volt_Span: 10.000000

m: -0.008262

Gain: 1.000000

VoltCALHI: 4.900000

VoltCALLO: 0.000000

CountCALHI: 64941.937500

CountCALLO: 65535.000000

drvIp330::calibrate channel 14 adj_slope -5.414714e+01 adj_offset
-6.614017e+04

########### CALIBRATION ########

CH 15

Corrected_Count: 1.020357

Ideal_Volt_Span: 10.000000

m: 0.000156

Gain: 1.000000

VoltCALHI: 4.900000

VoltCALLO: 0.000000

CountCALHI: 64941.968750

CountCALLO: 33470.000000

drvIp330::calibrate channel 15 adj_slope 1.020357e+00 adj_offset
-1.355746e+03

########### CALIBRATION ########

CH 00

Corrected_Count: -54.158558

Ideal_Volt_Span: 10.000000

m: -0.008264

Gain: 1.000000

VoltCALHI: 4.900000

VoltCALLO: 0.000000

CountCALHI: 64942.062500

CountCALLO: 65535.000000

drvIp330::calibrate channel 0 adj_slope -5.415856e+01 adj_offset
-6.614004e+04

########### CALIBRATION ########

CH 01

Corrected_Count: -54.144290

Ideal_Volt_Span: 10.000000

m: -0.008262

Gain: 1.000000

VoltCALHI: 4.900000

VoltCALLO: 0.000000

CountCALHI: 64941.906250

CountCALLO: 65535.000000

drvIp330::calibrate channel 1 adj_slope -5.414429e+01 adj_offset
-6.614020e+04

########### CALIBRATION ########

CH 02

Corrected_Count: 1.019775

Ideal_Volt_Span: 10.000000

m: 0.000156

Gain: 1.000000

VoltCALHI: 4.900000

VoltCALLO: 0.000000

CountCALHI: 64941.812500

CountCALLO: 33451.875000

drvIp330::calibrate channel 2 adj_slope 1.019775e+00 adj_offset
-1.319286e+03

########### CALIBRATION ########

CH 03

Corrected_Count: -142.248682

Ideal_Volt_Span: 10.000000

m: -0.021705

Gain: 1.000000

VoltCALHI: 4.900000

VoltCALLO: 0.000000

CountCALHI: 64942.250000

CountCALLO: 65168.000000

drvIp330::calibrate channel 3 adj_slope -1.422487e+02 adj_offset
-6.539836e+04

########### CALIBRATION ########

CH 04

Corrected_Count: 1.678135

Ideal_Volt_Span: 10.000000

m: 0.000256

Gain: 1.000000

VoltCALHI: 4.900000

VoltCALLO: 0.000000

CountCALHI: 64941.875000

CountCALLO: 45805.968750

drvIp330::calibrate channel 4 adj_slope 1.678135e+00 adj_offset
-2.627953e+04

########### CALIBRATION ########

CH 05

Corrected_Count: 1.019750

Ideal_Volt_Span: 10.000000

m: 0.000156

Gain: 1.000000

VoltCALHI: 4.900000

VoltCALLO: 0.000000

CountCALHI: 64942.156250

CountCALLO: 33451.468750

drvIp330::calibrate channel 5 adj_slope 1.019750e+00 adj_offset
-1.318114e+03

########### CALIBRATION ########

CH 06

Corrected_Count: -54.175690

Ideal_Volt_Span: 10.000000

m: -0.008267

Gain: 1.000000

VoltCALHI: 4.900000

VoltCALLO: 0.000000

CountCALHI: 64942.250000

CountCALLO: 65535.000000

drvIp330::calibrate channel 6 adj_slope -5.417569e+01 adj_offset
-6.613985e+04

########### CALIBRATION ########

CH 07

Corrected_Count: 11.856519

Ideal_Volt_Span: 10.000000

m: 0.001809

Gain: 1.000000

VoltCALHI: 4.900000

VoltCALLO: 0.000000

CountCALHI: 64942.031250

CountCALLO: 62233.593750

drvIp330::calibrate channel 7 adj_slope 1.185652e+01 adj_offset
-5.946988e+04

########### CALIBRATION ########

CH 08

Corrected_Count: -54.187117

Ideal_Volt_Span: 10.000000

m: -0.008268

Gain: 1.000000

VoltCALHI: 4.900000

VoltCALLO: 0.000000

CountCALHI: 64942.375000

CountCALLO: 65535.000000

drvIp330::calibrate channel 8 adj_slope -5.418712e+01 adj_offset
-6.613972e+04

########### CALIBRATION ########

CH 09

Corrected_Count: -54.175690

Ideal_Volt_Span: 10.000000

m: -0.008267

Gain: 1.000000

VoltCALHI: 4.900000

VoltCALLO: 0.000000

CountCALHI: 64942.250000

CountCALLO: 65535.000000

drvIp330::calibrate channel 9 adj_slope -5.417569e+01 adj_offset
-6.613985e+04

########### CALIBRATION ########

CH 10

Corrected_Count: 1.019763

Ideal_Volt_Span: 10.000000

m: 0.000156

Gain: 1.000000

VoltCALHI: 4.900000

VoltCALLO: 0.000000

CountCALHI: 64942.031250

CountCALLO: 33451.718750

drvIp330::calibrate channel 10 adj_slope 1.019763e+00 adj_offset
-1.318747e+03

########### CALIBRATION ########

CH 11

Corrected_Count: -66.207363

Ideal_Volt_Span: 10.000000

m: -0.010102

Gain: 1.000000

VoltCALHI: 4.900000

VoltCALLO: 0.000000

CountCALHI: 64941.781250

CountCALLO: 65426.812500

drvIp330::calibrate channel 11 adj_slope -6.620736e+01 adj_offset
-6.592174e+04

########### CALIBRATION ########

CH 12

Corrected_Count: 1.014113

Ideal_Volt_Span: 10.000000

m: 0.000155

Gain: 1.000000

VoltCALHI: 4.900000

VoltCALLO: 0.000000

CountCALHI: 64941.937500

CountCALLO: 33276.187500

drvIp330::calibrate channel 12 adj_slope 1.014113e+00 adj_offset
-9.641977e+02

########### CALIBRATION ########

CH 13

Corrected_Count: 1.019767

Ideal_Volt_Span: 10.000000

m: 0.000156

Gain: 1.000000

VoltCALHI: 4.900000

VoltCALLO: 0.000000

CountCALHI: 64942.031250

CountCALLO: 33451.843750

drvIp330::calibrate channel 13 adj_slope 1.019767e+00 adj_offset
-1.318999e+03

########### CALIBRATION ########

CH 14

Corrected_Count: -54.164267

Ideal_Volt_Span: 10.000000

m: -0.008265

Gain: 1.000000

VoltCALHI: 4.900000

VoltCALLO: 0.000000

CountCALHI: 64942.125000

CountCALLO: 65535.000000

drvIp330::calibrate channel 14 adj_slope -5.416427e+01 adj_offset
-6.613997e+04

########### CALIBRATION ########

CH 15

Corrected_Count: 9.344492

Ideal_Volt_Span: 10.000000

m: 0.001426

Gain: 1.000000

VoltCALHI: 4.900000

VoltCALLO: 0.000000

CountCALHI: 64941.906250

CountCALLO: 61505.375000

drvIp330::calibrate channel 15 adj_slope 9.344492e+00 adj_offset
-5.799871e+04

value = 0 = 0x0





Data: # EVG db

#dbLoadRecords("db/vme-evg230.db", "SYS=TST, D=evg:1, EVG=EVG1")

64694

# BNL specific timing sequence constructor



#dbLoadRecords("db/nsls2-inj-seqs.db","LN=LN-TS, BR=BR-TS, INJ=TST,
EVG=evg:1, SEQ=SoftSeq:0")Data:



# EVR

#

33452dbLoadRecords("db/evr-vmerf-230.db","SYS=TST, D=evr:1, EVR=EVR1")



Data: 33451

Data: 33452

Data: 33454

Data: 33453

Data: 33452

Data: 3value = 0 = 0x0



# IP330

#

dbLoadTemplate("db/ip330Scan.substitutions")

3448

Data: 36040

Data: 64906

Data: 63022

Data: 65535

Data: 65535

Data: 65535

Data: 65535

Data: 65535

Data: 65535

Data: 41509

Data: 33451

Data: 33453

Data: 33452

Data: 33452

Data: 33451

Data: 33451

Data: 33452

Data: 65535

Data: 65535

Data: 65535

Data: 65535

Data: 65535

Data: 65535

Data: 65535

Data: 65535

Data: 65535

Data: 33456

Data: 33451

Data: 33451

Data: 33452

Data: 33451

Data: 33453

Data: 33451

Data: 33453

Data: 65535

Data: 65535

Data: 65535

Data: 65535

Data: 65535

Data: 65535

Data: 65535

Data: 65535

Data: 65535

Data: 33454

Data: 33452

Data: 334value = 520 = 0x0



dbLoadRecords("db/iocAdminVxWorks.db", "IOC=evrTest")Data:

33452

Data: 33452

Data: 3345value = 0 = 0x0







iocInit()Data:

Starting iocInit

65535####

###################Data: ##############65535###############

###################Data: #####

## EPICS65535 R3.14.12.3 $Da

te: Mon 2012-12-17 Data: 14:11:47 -060065535$

## EPICS Base

built May 14 2013

Data: ##############65535###############

###################Data: ##############65535##############



Data: 45663

Data: 33452

Data: 33452

Data: 33452

Data: 33451

Data: 33452

Data: 33453

Data: 33451

Data: 65535

Data: 65535

Data: 65535

Data: 65535

Data: 65535

Data: 65535

Data: 65535

Data: 65535

Data: 65535

Data: 33456

Data: 33451

Data: 33451

Data: 33452










References:
IP330 modules question Geon-Yeong Mun
RE: IP330 modules question Geon-Yeong Mun

Navigate by Date:
Prev: EPICS cross compile with buildroot problems Tom Slejko
Next: RE: EPICS cross compile with buildroot problems Hu, Yong
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: RE: IP330 modules question Geon-Yeong Mun
Next: RE: IP330 modules question Geon-Yeong Mun
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 20 Apr 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·