Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
X
xxx-R6-1
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
synApps_6_1_Working
xxx-R6-1
Commits
2ebab608
Commit
2ebab608
authored
13 years ago
by
mooney
Browse files
Options
Downloads
Patches
Plain Diff
Struck 3820 must be run from iocsh
parent
05b46d0e
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
iocBoot/iocvxWorks/st_SIS3820.iocsh
+26
-0
26 additions, 0 deletions
iocBoot/iocvxWorks/st_SIS3820.iocsh
with
26 additions
and
0 deletions
iocBoot/iocvxWorks/st_SIS3820.iocsh
0 → 100644
+
26
−
0
View file @
2ebab608
# Note that this won't work from the vxWorks shell. It ,must be executed by iocsh.
epicsEnvSet("PREFIX", "xxx:3820:")
epicsEnvSet("RNAME", "mca")
epicsEnvSet("MAX_SIGNALS", "2")
epicsEnvSet("MAX_CHANS", "2000")
epicsEnvSet("PORT", "SIS3820/1")
# For MCA records FIELD=READ, for waveform records FIELD=PROC
epicsEnvSet("FIELD", "READ")
epicsEnvSet("MODEL", "SIS3820")
#drvSIS3820Config("Port name", baseAddress, interruptVector, interruptLevel, channels,
# signals, use DMA, fifoBufferWords)
drvSIS3820Config($(PORT), 0xA8000000, 224, 6, $(MAX_CHANS), $(MAX_SIGNALS), 1, 0x2000)
# This loads the scaler record and supporting records
dbLoadRecords("$(STD)/stdApp/Db/scaler32.db", "P=$(PREFIX), S=scaler1, DTYP=Asyn Scaler, OUT=@asyn($(PORT)), FREQ=50000000")
# This database provides the support for the MCS functions
dbLoadRecords("$(MCA)/mcaApp/Db/SIS38XX.template", "P=$(PREFIX), PORT=$(PORT), SCALER=$(PREFIX)scaler1")
# Load either MCA or waveform records below
# The number of records loaded must be the same as MAX_SIGNALS defined above
# Load the MCA records
dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX), M=$(RNAME)1, DTYP=asynMCA, INP=@asyn($(PORT) 0), PREC=3, CHANS=$(MAX_CHANS)")
dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX), M=$(RNAME)2, DTYP=asynMCA, INP=@asyn($(PORT) 1), PREC=3, CHANS=$(MAX_CHANS)")
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