Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lebt-alisson-scanner
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
icshwi
lebt-alisson-scanner
Commits
c1c63132
Commit
c1c63132
authored
9 years ago
by
Jean-François Denis
Browse files
Options
Downloads
Patches
Plain Diff
Add timing system EVG et EVR
parent
747e775e
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
startup/EMU.cmd
+45
-0
45 additions, 0 deletions
startup/EMU.cmd
with
45 additions
and
0 deletions
startup/EMU.cmd
+
45
−
0
View file @
c1c63132
...
@@ -2,6 +2,9 @@ require ifc1210scope
...
@@ -2,6 +2,9 @@ require ifc1210scope
require
FastAcquisition
,
agaget
require
FastAcquisition
,
agaget
require
DataAcquisition
,
agaget
require
DataAcquisition
,
agaget
require
singlemotion
require
singlemotion
require
mrfioc2
require
pev
require
mrfTraining
,
agaget
############################################################
############################################################
###############
configuration
carte
DTACQ
##################
###############
configuration
carte
DTACQ
##################
...
@@ -38,6 +41,33 @@ pmacCreateAxis($(MOTOR_PORT), 4)
...
@@ -38,6 +41,33 @@ pmacCreateAxis($(MOTOR_PORT), 4)
#
Set
scale
factor
to
resolution
of
floating
point
value
on
PMAC
.
#
Set
scale
factor
to
resolution
of
floating
point
value
on
PMAC
.
pmacSetAxisScale
(
GEOBRICK_MOTOR
,
4
,
32
)
pmacSetAxisScale
(
GEOBRICK_MOTOR
,
4
,
32
)
############################################################
###############
Initialisation
EVG
&
EVR
###################
############################################################
epicsEnvSet
(
"SYS"
"SYS0"
)
epicsEnvSet
(
"EVG"
"EVG0"
)
epicsEnvSet
(
"EVR"
"EVR0"
)
epicsEnvSet
(
"EVG_VMESLOT"
"6"
)
epicsEnvSet
(
"EVR_PCIDOMAIN"
"0x0"
)
epicsEnvSet
(
"EVR_PCIBUS"
"0x05"
)
epicsEnvSet
(
"EVR_PCIDEVICE"
"0x0"
)
epicsEnvSet
(
"EVR_PCIFUNCTION"
"0x0"
)
mrmEvgSetupVME
(
$
(
EVG
),
$
(
EVG_VMESLOT
),
0x100000
,
1
,
0x01
)
mrmEvrSetupPCI
(
$
(
EVR
),
$
(
EVR_PCIDOMAIN
),
$
(
EVR_PCIBUS
),
$
(
EVR_PCIDEVICE
),
$
(
EVR_PCIFUNCTION
))
dbLoadRecords
(
"evg-vme-ess230.db"
,
"EVG=$(EVG), SYS=$(SYS)"
)
dbLoadRecords
(
"evr-pmc-230.db"
,
"EVR=$(EVR), EVG=$(EVR), SYS=$(SYS)"
)
dbLoadRecords
(
"evgSoftSeq.template"
,
"EVG=$(EVG), SYS=$(SYS), SEQNUM=1, NELM=10"
)
dbLoadRecords
(
"evr-softEvent.template"
,
"EVR=$(EVR), SYS=$(SYS), EVT=1, CODE=1"
)
dbLoadRecords
(
"evr-pulserMap.template"
,
"EVR=$(EVR), SYS=$(SYS), EVT=1, PID=0, F=Trig, ID=0"
)
dbLoadRecords
(
"evr-pulserMap.template"
,
"EVR=$(EVR), SYS=$(SYS), EVT=1, PID=1, F=Trig, ID=0"
)
dbLoadRecords
(
"evr-pulserMap.template"
,
"EVR=$(EVR), SYS=$(SYS), EVT=1, PID=2, F=Trig, ID=0"
)
############################################################
############################################################
###################
Chargement
records
####################
###################
Chargement
records
####################
############################################################
############################################################
...
@@ -58,3 +88,18 @@ dbpf CARD0:FMC2:TRIGGERSOURCE "EXT-GPIO"
...
@@ -58,3 +88,18 @@ dbpf CARD0:FMC2:TRIGGERSOURCE "EXT-GPIO"
dbpf
CARD0
:FMC
2
:LEVEL
1
dbpf
CARD0
:FMC
2
:LEVEL
1
dbpf
CARD0
:FMC
2
:AUTOREARM
1
dbpf
CARD0
:FMC
2
:AUTOREARM
1
dbpf
CARD0
:FMC
2
:TRIGGER:MODE
"Soft"
dbpf
CARD0
:FMC
2
:TRIGGER:MODE
"Soft"
############################################################
###################
Configuration
Timing
###################
############################################################
dbpf
$
(
SYS
)-
$
(
EVR
)
:Time
-I
.TSE
0
dbpf
$
(
SYS
)-
$
(
EVG
)
:FrontInp
0
-TrigSrc
0
-SP
1
dbpf
SYS0
-EVR
0
:Pul
0
-Evt-Trig
0
-SP
1
dbpf
SYS0
-EVR
0
:Pul
1
-Evt-Trig
0
-SP
1
dbpf
SYS0
-EVR
0
:Pul
2
-Evt-Trig
0
-SP
1
dbpf
$
(
SYS
)-
$
(
EVR
)
:FrontOut
0
-Src-SP
0
dbpf
$
(
SYS
)-
$
(
EVR
)
:FrontOut
1
-Src-SP
1
dbpf
$
(
SYS
)-
$
(
EVR
)
:FrontOut
2
-Src-SP
2
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment