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
747e775e
Commit
747e775e
authored
9 years ago
by
Jean-François Denis
Browse files
Options
Downloads
Patches
Plain Diff
init
parent
eee0c183
No related branches found
No related tags found
No related merge requests found
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
opi/EMU.opi
+5681
-0
5681 additions, 0 deletions
opi/EMU.opi
startup/EMU.cmd
+59
-2
59 additions, 2 deletions
startup/EMU.cmd
with
5740 additions
and
2 deletions
opi/EMU.opi
0 → 100644
+
5681
−
0
View file @
747e775e
This diff is collapsed.
Click to expand it.
startup/EMU.cmd
+
59
−
2
View file @
747e775e
require
EMU
,
jfdenis
require
ifc1210scope
require
FastAcquisition
,
agaget
require
DataAcquisition
,
agaget
require
singlemotion
dbLoadRecords
(
"EMU.db"
)
############################################################
###############
configuration
carte
DTACQ
##################
############################################################
#
It
is
required
to
increase
the
channel
access
maximum
size
since
large
waveforms
will
be
transferred
.
epicsEnvSet
EPICS_CA_MAX_ARRAY_BYTES
40000000
#
IFC1210Scope
debug
level
0
..99
(
0
-disabled
)
#
Enabling
debug
will
limit
the
acquisition
frequency
to
1
Hz
.
IFC1210ScopeDebugLevel
(
0
)
#
Initialize
the
driver
(
Crate
slot
1
,
FMC
slot
2
)
IFC1210ScopeConfig
(
0
,
1
,
2
,
""
,
""
,
0
,
0
)
############################################################
###############
configuration
Moteur
#######################
############################################################
#
Set
environmental
variables
epicsEnvSet
(
"PREFIX"
,
"MOTIONTRAINING"
)
epicsEnvSet
(
"ASYN_PORT"
,
"GEOBRICK_ASYN"
)
epicsEnvSet
(
"MOTOR_PORT"
,
"GEOBRICK_MOTOR"
)
epicsEnvSet
(
"MOTOR_NAME"
,
"MTR4"
)
#
Connection
to
GEOBRICK
,
create
a
asyn
port
pmacAsynIPConfigure
(
$
(
ASYN_PORT
),
"192.6.94.2:1025"
)
#
Create
pmac
controller
:
Motor
port
,
Asyn
Port
,
asyn
address
,
Number
of
axes
,
Moving
pollperiod
(
ms
),
idle
pollperiod
(
ms
)
pmacCreateController
(
$
(
MOTOR_PORT
),
$
(
ASYN_PORT
),
0
,
4
,
50
,
300
)
#
Create
axis
:
motor
port
,
axis
index
pmacCreateAxis
(
$
(
MOTOR_PORT
),
4
)
#
Set
scale
factor
to
resolution
of
floating
point
value
on
PMAC
.
pmacSetAxisScale
(
GEOBRICK_MOTOR
,
4
,
32
)
############################################################
###################
Chargement
records
####################
############################################################
dbLoadTemplate
(
EMU
.subs
)
#
**********************************************************
#
#
***********************
INIT
****************************
#
#
**********************************************************
#
iocInit
############################################################
###################
Configuration
acquisition
##############
############################################################
dbpf
CARD0
:FMC
2
:TRIGGERSOURCE
"EXT-GPIO"
dbpf
CARD0
:FMC
2
:LEVEL
1
dbpf
CARD0
:FMC
2
:AUTOREARM
1
dbpf
CARD0
:FMC
2
:TRIGGER:MODE
"Soft"
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