Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
advLigoRTS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
CDS
software
advLigoRTS
Commits
5632a8db
Commit
5632a8db
authored
5 years ago
by
Jonathan Hanks
Browse files
Options
Downloads
Patches
Plain Diff
Added some help text to the standalone_edcu.
parent
b932391f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/epics/seq/standalone_edcu.cc
+39
-1
39 additions, 1 deletion
src/epics/seq/standalone_edcu.cc
with
39 additions
and
1 deletion
src/epics/seq/standalone_edcu.cc
+
39
−
1
View file @
5632a8db
...
...
@@ -37,6 +37,8 @@ extern "C" {
#include
"../../drv/gpstime/gpstime.h"
#include
"gps.hh"
#include
<iostream>
#define EDCU_MAX_CHANS 50000
// Gloabl variables
// ****************************************************************************************
...
...
@@ -814,6 +816,37 @@ checkFileCrc( const char* fName )
// }
//}
void
usage
(
const
char
*
prog
)
{
std
::
cout
<<
"Usage:
\n\t
"
<<
prog
<<
" <options>
\n\n
"
;
std
::
cout
<<
"-b <mbuf name> - The name of the mbuf to write to [edc_daq]
\n
"
;
std
::
cout
<<
"-l <log dir> - Directory to output logs to [logs]
\n
"
;
std
::
cout
<<
"-d <dcu id> - The dcu id number to use [52]
\n
"
;
std
::
cout
<<
"-i <ini file name> - The ini file to read [edc.ini]
\n
"
;
std
::
cout
<<
"-w <wait time in ms> - Number of ms to wait after each 16Hz "
"segment has starts [0]
\n
"
;
std
::
cout
<<
"-p <prefix> - Prefix to add to the connection stats channel "
"names
\n
"
;
std
::
cout
<<
"-h - this help
\n
"
;
std
::
cout
<<
"
\n
The standalone edcu is used to record epics data and put "
"it into a memory buffer which can "
;
std
::
cout
<<
"be consumed by the daqd tools.
\n
"
;
std
::
cout
<<
"Channels to record are listed in the input ini file. They "
"must be floats (datatype=4) and 16Hz, "
;
std
::
cout
<<
"datarate=16.
\n
"
;
std
::
cout
<<
"
\n
The standalone daq requires the LIGO mbuf and gpstime "
"modules to be loaded.
\n
"
;
std
::
cout
<<
"
\n
Some special channels are produced by the standalone_edcu, "
"and may be send in the data stream.
\n
"
;
std
::
cout
<<
"
\n\t
<prefix>EDCU_CHAN_CONN
\n\t
<prefix>EDCU_CHAN_NOCON
\n\t
<"
"prefix>EDCU_CHAN_CNT
\n
"
;
std
::
cout
<<
"
\n
In a typical setup standalone_edcu, local_dc, and "
"daqd_shmem would be run.
\n
"
;
std
::
cout
<<
"
\n
"
;
}
/// Called on EPICS startup; This is generic EPICS provided function, modified
/// for LIGO use.
int
...
...
@@ -853,7 +886,7 @@ main( int argc, char* argv[] )
int
delay_multiplier
=
0
;
int
cur_arg
=
0
;
while
(
(
cur_arg
=
getopt
(
argc
,
argv
,
"b:l:d:i:w:p:"
)
)
!=
EOF
)
while
(
(
cur_arg
=
getopt
(
argc
,
argv
,
"b:l:d:i:w:p:
h
"
)
)
!=
EOF
)
{
switch
(
cur_arg
)
{
...
...
@@ -878,6 +911,11 @@ main( int argc, char* argv[] )
case
'p'
:
prefix
=
optarg
;
break
;
case
'h'
:
default:
usage
(
argv
[
0
]
);
exit
(
1
);
break
;
}
}
...
...
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