Skip to content
Snippets Groups Projects
Commit 747e775e authored by Jean-François Denis's avatar Jean-François Denis
Browse files

init

parent eee0c183
No related branches found
No related tags found
No related merge requests found
opi/EMU.opi 0 → 100644
This diff is collapsed.
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:FMC2:TRIGGERSOURCE "EXT-GPIO"
dbpf CARD0:FMC2:LEVEL 1
dbpf CARD0:FMC2:AUTOREARM 1
dbpf CARD0:FMC2:TRIGGER:MODE "Soft"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment