Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ApplicationCore
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
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
ChimeraTK Mirror
ApplicationCore
Commits
f6adf7ff
Unverified
Commit
f6adf7ff
authored
5 years ago
by
Martin Christoph Hierholzer
Committed by
GitHub
5 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #121 from ChimeraTK/device_support_for_microDAQ
Device support for micro daq
parents
79b897fe
ed3213ec
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Modules/include/MicroDAQ.h
+4
-0
4 additions, 0 deletions
Modules/include/MicroDAQ.h
Modules/src/MicroDAQ.cc
+8
-0
8 additions, 0 deletions
Modules/src/MicroDAQ.cc
include/DeviceModule.h
+4
-0
4 additions, 0 deletions
include/DeviceModule.h
with
16 additions
and
0 deletions
Modules/include/MicroDAQ.h
+
4
−
0
View file @
f6adf7ff
...
...
@@ -66,6 +66,10 @@ namespace ChimeraTK {
/** Add a Module as a source to this DAQ. */
void
addSource
(
const
Module
&
source
,
const
RegisterPath
&
namePrefix
=
""
);
/**
* Overload that calls virtualiseFromCatalog.
*/
void
addSource
(
const
DeviceModule
&
source
,
const
RegisterPath
&
namePrefix
=
""
);
protected
:
void
mainLoop
()
override
;
...
...
This diff is collapsed.
Click to expand it.
Modules/src/MicroDAQ.cc
+
8
−
0
View file @
f6adf7ff
...
...
@@ -78,6 +78,14 @@ namespace ChimeraTK {
/*********************************************************************************************************************/
template
<
typename
TRIGGERTYPE
>
void
MicroDAQ
<
TRIGGERTYPE
>::
addSource
(
const
DeviceModule
&
source
,
const
RegisterPath
&
namePrefix
)
{
auto
mod
=
source
.
virtualiseFromCatalog
();
addSource
(
mod
,
namePrefix
);
}
/*********************************************************************************************************************/
template
<
typename
TRIGGERTYPE
>
template
<
typename
UserType
>
VariableNetworkNode
MicroDAQ
<
TRIGGERTYPE
>::
getAccessor
(
const
std
::
string
&
variableName
)
{
...
...
This diff is collapsed.
Click to expand it.
include/DeviceModule.h
+
4
−
0
View file @
f6adf7ff
...
...
@@ -267,7 +267,11 @@ namespace ChimeraTK {
boost
::
shared_mutex
recoverySharedMutex
;
friend
class
Application
;
// Access to virtualiseFromCatalog() is needed by ServerHistory
friend
struct
history
::
ServerHistory
;
// Access to virtualiseFromCatalog() is needed by MicroDAQ
template
<
typename
TRIGGERTYPE
>
friend
class
MicroDAQ
;
friend
struct
detail
::
DeviceModuleProxy
;
template
<
typename
T
>
...
...
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