Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
patch-control
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository 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
Carmelo Pellegrino
patch-control
Commits
400328e3
Commit
400328e3
authored
9 years ago
by
Carmelo Pellegrino
Browse files
Options
Downloads
Patches
Plain Diff
developing all the needed points; control of the DM implemented
parent
5726176d
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
rsselector.sh
+44
-1
44 additions, 1 deletion
rsselector.sh
with
44 additions
and
1 deletion
rsselector.sh
+
44
−
1
View file @
400328e3
...
...
@@ -19,10 +19,53 @@ function createList() {
echo
${
LIST
[*]
}
}
selected
=
`
zenity
--title
"Run Setup Selector"
\
function
dm_driver
()
{
echo
"set session target = run"
sleep
$1
echo exit
echo
y
}
# Ask for the run setup
rs_file
=
`
zenity
--title
"Run Setup Selector"
\
--list
\
--text
"Select one of the following Run Setups:"
\
--radiolist
\
--column
=
"Selection"
\
--column
=
"Run Setup file"
\
$(
createList
${
folder
}
)
`
if
[
-z
"
${
rs_file
}
"
]
;
then
zenity
--error
--text
=
"No Run Setup file selectet, aborting"
exit
-1
fi
# Peak the run number
run_number
=
`
get_run_number
`
# Copy selected run setup file, changing the run number
# Ask for run duration
run_duration
=
`
zenity
--title
"Run duration"
\
--list
\
--text
"Select one of the following duration:"
\
--radiolist
\
--column
=
"Selection"
\
--column
=
"Minutes"
\
FALSE 5 TRUE 10 FALSE 20
`
# Launch the DM
dm_driver
${
run_duration
}
| mono DetectorControl.exe
--control
--reset
&
# Launch the DAQ
DAQ.sh
# Point the browser to the correct address, if required
zenity
--question
\
--text
=
"Would you like to open the DetectorManager GUI?"
\
--cancel-label
=
"No, thanks"
&&
firefox http://localhost:1301/
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