Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC ADC 100M 14b 4cha - Testing
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
FMC ADC 100M 14b 4cha - Testing
Commits
d313bf3d
Commit
d313bf3d
authored
May 21, 2014
by
Matthieu Cattin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
struct: Update paths, works in standalone, fails when launch from pts.
parent
e6c22156
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
57 additions
and
129 deletions
+57
-129
fmcadc100m14b4cha.sh
fmcadc100m14b4cha.sh
+2
-2
run_pts.sh
run_pts.sh
+1
-1
fmc_adc_spec.py
tests/fmc_adc_spec.py
+6
-1
test00.py
tests/test00.py
+2
-8
test01.py
tests/test01.py
+3
-9
test02.py
tests/test02.py
+3
-8
test03.py
tests/test03.py
+3
-9
test04.py
tests/test04.py
+3
-8
test05.py
tests/test05.py
+3
-8
test06.py
tests/test06.py
+3
-9
test07.py
tests/test07.py
+4
-9
test08.py
tests/test08.py
+4
-9
test09.py
tests/test09.py
+4
-9
test19.py
tests/test19.py
+4
-9
test22.py
tests/test22.py
+4
-9
test23.py
tests/test23.py
+4
-10
test25.py
tests/test25.py
+4
-11
No files found.
fmcadc100m14b4cha.sh
View file @
d313bf3d
...
...
@@ -47,7 +47,7 @@ do
echo
"Test series run
$nb_test
out of
$nb_test_limit
"
echo
" "
sudo
./pts
.py
-b
FmcAdc100M14b4cha
-s
$serial
-e
$extra_serial
-t
./test/fmcadc100m14b4cha/python
-l
$LOGDIR
00 01 02 03 04 05 06 07 08 09 22 19 23 25
sudo
./pts
/pts.py
-b
FmcAdc100M14b4cha
-s
$serial
-e
$extra_serial
-t
./tests
-l
$LOGDIR
00 01 02 03 04 05 06 07 08 09 22 19 23 25
if
[
"
$nb_test
"
!=
"
$nb_test_limit
"
]
then
...
...
@@ -69,4 +69,4 @@ read reply
if
[
"
$reply
"
=
"y"
]
then
sudo
shutdown
-h
now
fi
\ No newline at end of file
fi
run_pts.sh
100644 → 100755
View file @
d313bf3d
...
...
@@ -5,4 +5,4 @@ echo "**************************************************************************
echo
"* FmcAdc100M14b4cha Test program *"
echo
"********************************************************************************"
echo
" "
cd
~/
pts
&&
sudo
./fmcadc100m14b4cha.sh
cd
~/
fmc-adc-tst
&&
sudo
./fmcadc100m14b4cha.sh
tests/fmc_adc_spec.py
View file @
d313bf3d
...
...
@@ -13,8 +13,13 @@ import time
import
random
import
math
# Add common modules and libraries location to path
sys
.
path
.
append
(
'../pts/'
)
sys
.
path
.
append
(
'../pts/gnurabbit/python/'
)
sys
.
path
.
append
(
'../pts/common/'
)
sys
.
path
.
append
(
'../pts/common/fmceeprom/'
)
# Import specific modules
#import rr
from
sdb
import
*
from
csr
import
*
from
onewire
import
*
...
...
tests/test00.py
View file @
d313bf3d
...
...
@@ -12,19 +12,13 @@ import sys
import
time
import
os
# Add common modules and libraries location to path
sys
.
path
.
append
(
'../../../'
)
sys
.
path
.
append
(
'../../../gnurabbit/python/'
)
sys
.
path
.
append
(
'../../../common/'
)
# Import specific modules
from
fmc_adc_spec
import
*
# Import common modules
from
ptsexcept
import
*
import
rr
# Import specific modules
from
fmc_adc_spec
import
*
"""
test00: Load gateware, verify gateware type and test mezzanine presence line.
"""
...
...
tests/test01.py
View file @
d313bf3d
...
...
@@ -12,19 +12,13 @@ import sys
import
time
import
os
# Add common modules and libraries location to path
sys
.
path
.
append
(
'../../../'
)
sys
.
path
.
append
(
'../../../gnurabbit/python/'
)
sys
.
path
.
append
(
'../../../common/'
)
# Import common modules
from
ptsexcept
import
*
import
rr
# Import specific modules
from
fmc_adc_spec
import
*
from
fmc_adc
import
*
# Import common modules
from
ptsexcept
import
*
import
rr
"""
test01: Test 1-wire thermometer and read the unique ID.
...
...
tests/test02.py
View file @
d313bf3d
...
...
@@ -12,19 +12,14 @@ import sys
import
time
import
os
# Add common modules and libraries location to path
sys
.
path
.
append
(
'../../../'
)
sys
.
path
.
append
(
'../../../gnurabbit/python/'
)
sys
.
path
.
append
(
'../../../common/'
)
# Import specific modules
from
fmc_adc_spec
import
*
from
fmc_adc
import
*
# Import common modules
from
ptsexcept
import
*
import
rr
# Import specific modules
from
fmc_adc_spec
import
*
from
fmc_adc
import
*
"""
test02: Test EEPROM access
...
...
tests/test03.py
View file @
d313bf3d
...
...
@@ -12,19 +12,13 @@ import sys
import
time
import
os
# Add common modules and libraries location to path
sys
.
path
.
append
(
'../../../'
)
sys
.
path
.
append
(
'../../../gnurabbit/python/'
)
sys
.
path
.
append
(
'../../../common/'
)
# Import common modules
from
ptsexcept
import
*
import
rr
# Import specific modules
from
fmc_adc_spec
import
*
from
fmc_adc
import
*
# Import common modules
from
ptsexcept
import
*
import
rr
"""
test03: Test mezzanine front-panel LEDs
...
...
tests/test04.py
View file @
d313bf3d
...
...
@@ -11,19 +11,14 @@ import sys
import
time
import
os
# Add common modules and libraries location to path
sys
.
path
.
append
(
'../../../'
)
sys
.
path
.
append
(
'../../../gnurabbit/python/'
)
sys
.
path
.
append
(
'../../../common/'
)
# Import specific modules
from
fmc_adc_spec
import
*
from
fmc_adc
import
*
# Import common modules
from
ptsexcept
import
*
import
rr
# Import specific modules
from
fmc_adc_spec
import
*
from
fmc_adc
import
*
"""
test04: Test Si570 programmable oscillator
...
...
tests/test05.py
View file @
d313bf3d
...
...
@@ -11,19 +11,14 @@ import sys
import
time
import
os
# Add common modules and libraries location to path
sys
.
path
.
append
(
'../../../'
)
sys
.
path
.
append
(
'../../../gnurabbit/python/'
)
sys
.
path
.
append
(
'../../../common/'
)
# Import specific modules
from
fmc_adc_spec
import
*
from
fmc_adc
import
*
# Import common modules
from
ptsexcept
import
*
import
rr
# Import specific modules
from
fmc_adc_spec
import
*
from
fmc_adc
import
*
"""
test05: Test LTC2174 ADC
...
...
tests/test06.py
View file @
d313bf3d
...
...
@@ -11,19 +11,13 @@ import sys
import
time
import
os
# Add common modules and libraries location to path
sys
.
path
.
append
(
'../../../'
)
sys
.
path
.
append
(
'../../../gnurabbit/python/'
)
sys
.
path
.
append
(
'../../../common/'
)
# Import common modules
from
ptsexcept
import
*
import
rr
# Import specific modules
from
fmc_adc_spec
import
*
from
fmc_adc
import
*
# Import common modules
from
ptsexcept
import
*
import
rr
from
PAGE.Agilent33250A
import
*
...
...
tests/test07.py
View file @
d313bf3d
...
...
@@ -11,20 +11,15 @@ import sys
import
time
import
os
# Add common modules and libraries location to path
sys
.
path
.
append
(
'../../../'
)
sys
.
path
.
append
(
'../../../gnurabbit/python/'
)
sys
.
path
.
append
(
'../../../common/'
)
# Import common modules
from
ptsexcept
import
*
import
rr
# Import specific modules
from
fmc_adc_spec
import
*
from
fmc_adc
import
*
from
numpy
import
*
# Import common modules
from
ptsexcept
import
*
import
rr
"""
test07: Test offset DACs
...
...
tests/test08.py
View file @
d313bf3d
...
...
@@ -12,15 +12,6 @@ import sys
import
time
import
os
# Add common modules and libraries location to path
sys
.
path
.
append
(
'../../../'
)
sys
.
path
.
append
(
'../../../gnurabbit/python/'
)
sys
.
path
.
append
(
'../../../common/'
)
# Import common modules
from
ptsexcept
import
*
import
rr
# Import specific modules
from
fmc_adc_spec
import
*
from
fmc_adc
import
*
...
...
@@ -30,6 +21,10 @@ import find_usb_tty
from
PAGE.Agilent33250A
import
*
from
PAGE.SineWaveform
import
*
# Import common modules
from
ptsexcept
import
*
import
rr
"""
test08: Test analogue front-end switches
...
...
tests/test09.py
View file @
d313bf3d
...
...
@@ -12,15 +12,6 @@ import sys
import
time
import
os
# Add common modules and libraries location to path
sys
.
path
.
append
(
'../../../'
)
sys
.
path
.
append
(
'../../../gnurabbit/python/'
)
sys
.
path
.
append
(
'../../../common/'
)
# Import common modules
from
ptsexcept
import
*
import
rr
# Import specific modules
from
fmc_adc_spec
import
*
from
fmc_adc
import
*
...
...
@@ -31,6 +22,10 @@ import find_usb_tty
from
PAGE.Agilent33250A
import
*
from
PAGE.SineWaveform
import
*
# Import common modules
from
ptsexcept
import
*
import
rr
"""
test09: Test analogue front-end frequency response,
...
...
tests/test19.py
View file @
d313bf3d
...
...
@@ -12,15 +12,6 @@ import sys
import
time
import
os
# Add common modules and libraries location to path
sys
.
path
.
append
(
'../../../'
)
sys
.
path
.
append
(
'../../../gnurabbit/python/'
)
sys
.
path
.
append
(
'../../../common/'
)
# Import common modules
from
ptsexcept
import
*
import
rr
# Import specific modules
from
numpy
import
*
from
pylab
import
*
...
...
@@ -33,6 +24,10 @@ import find_usb_tty
from
PAGE.Agilent33250A
import
*
from
PAGE.SineWaveform
import
*
# Import common modules
from
ptsexcept
import
*
import
rr
"""
test19: Calibration
...
...
tests/test22.py
View file @
d313bf3d
...
...
@@ -12,15 +12,6 @@ import sys
import
time
import
os
# Add common modules and libraries location to path
sys
.
path
.
append
(
'../../../'
)
sys
.
path
.
append
(
'../../../gnurabbit/python/'
)
sys
.
path
.
append
(
'../../../common/'
)
# Import common modules
from
ptsexcept
import
*
import
rr
# Import specific modules
from
fmc_adc_spec
import
*
from
fmc_adc
import
*
...
...
@@ -31,6 +22,10 @@ import find_usb_tty
from
PAGE.Agilent33250A
import
*
from
PAGE.SineWaveform
import
*
# Import common modules
from
ptsexcept
import
*
import
rr
"""
test22: Test FMC temperature stability
...
...
tests/test23.py
View file @
d313bf3d
...
...
@@ -13,21 +13,15 @@ import time
import
datetime
import
os
# Add common modules and libraries location to path
sys
.
path
.
append
(
'../../../'
)
sys
.
path
.
append
(
'../../../gnurabbit/python/'
)
sys
.
path
.
append
(
'../../../common/'
)
sys
.
path
.
append
(
'../../fmceeprom/python/'
)
# Import specific modules
from
fmc_adc_spec
import
*
from
fmc_adc
import
*
# Import common modules
from
ptsexcept
import
*
from
fmc_eeprom
import
*
import
rr
# Import specific modules
from
fmc_adc_spec
import
*
from
fmc_adc
import
*
"""
test23: Write IPMI information and calibration data to FMC EEPROM.
...
...
@@ -47,7 +41,7 @@ def main (default_directory='.'):
MANUFACTURER
=
"CERN"
PRODUCT_NAME
=
"FmcAdc100m14b4cha"
PART_NUMBER
=
"EDA-02063-V5-0"
SERIAL_FILENAME
=
"../
../../
serial.txt"
SERIAL_FILENAME
=
"../serial.txt"
SERIAL_FILENAME
=
os
.
path
.
join
(
default_directory
,
SERIAL_FILENAME
)
CALIBR_FILENAME
=
"calibration_data.txt"
CALIBR_FILENAME
=
os
.
path
.
join
(
default_directory
,
CALIBR_FILENAME
)
...
...
tests/test25.py
View file @
d313bf3d
...
...
@@ -12,17 +12,6 @@ import sys
import
time
import
os
# Add common modules and libraries location to path
sys
.
path
.
append
(
'../../../'
)
sys
.
path
.
append
(
'../../../gnurabbit/python/'
)
sys
.
path
.
append
(
'../../../common/'
)
sys
.
path
.
append
(
'../../fmceeprom/python/'
)
# Import common modules
from
ptsexcept
import
*
from
fmc_eeprom
import
*
import
rr
# Import specific modules
from
fmc_adc_spec
import
*
from
fmc_adc
import
*
...
...
@@ -35,6 +24,10 @@ from PAGE.Agilent33250A import *
from
PAGE.SineWaveform
import
*
from
ctypes
import
*
# Import common modules
from
ptsexcept
import
*
from
fmc_eeprom
import
*
import
rr
"""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment