Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
wr2rf-vme
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
5
Issues
5
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
wr2rf-vme
Commits
9c542be8
Commit
9c542be8
authored
Nov 24, 2021
by
John Robert Gill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added TX + RX slot numbers as arguments.
parent
894e1f48
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
sps_cycle_sim.sh
software/scripts/sps_cycle_sim.sh
+8
-8
No files found.
software/scripts/sps_cycle_sim.sh
View file @
9c542be8
...
...
@@ -3,15 +3,15 @@
# After calling wr2rf_init.sh for both tx and rx wr2rf_vme cards. The sequence outlined below
# can be used to "simulate" a cycle of the sps. The slot numbers used are specific to cfv-774-celma4
# card configuration and should be adapted...
# slot 2 is TX, slots 4+5 RX
./wr2rf
-s
4 set-rfout 1 mix
./wr2rf
-s
4 set-rfout 2 mix
./wr2rf
-s
5 set-rfout 1 mix
./wr2rf
-s
5 set-rfout 2 mix
# configure the tx + rx slots from the input arguments
tx
=
$1
rx
=
$2
./wr2rf
-s
$rx
set-rfout 1 mix
./wr2rf
-s
$rx
set-rfout 2 mix
# reset the RX wr2rf trigger unit
sh vtu_setup.sh 4
sh vtu_setup.sh 5
sh vtu_setup.sh
$rx
freq_LHCPILOT
=
43347.158955
freq_SFTION1
=
42966.157844
...
...
@@ -27,6 +27,6 @@ ftw_hex=`echo "obase=16;ibase=10; $ftw_h1" | bc -q`
echo
"FTW calculated as
$ftw_hex
"
usleep 10
./wr2rf
-s
2
ftw-send1 0x
$ftw_hex
reset
./wr2rf
-s
$tx
ftw-send1 0x
$ftw_hex
reset
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