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
29d427bf
Commit
29d427bf
authored
5 years ago
by
Klaus Zenker (HZDR)
Browse files
Options
Downloads
Patches
Plain Diff
Add documentation.
parent
dc3741ab
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
Modules/include/ServerHistory.h
+18
-1
18 additions, 1 deletion
Modules/include/ServerHistory.h
with
18 additions
and
1 deletion
Modules/include/ServerHistory.h
+
18
−
1
View file @
29d427bf
...
...
@@ -24,6 +24,14 @@
* - CS
* - name of the history module
*
* It is also possible to connect a DeviceModule to the ServerHistory module. This
* requires a trigger, which is given as optional parameter to the \c addSource
* method. If the device variables are writable they are of push type. In this case
* the trigger will not be added. One has to use the LogicalNameMapping backend to
* force the device variables to be read only by using the \c forceReadOnly plugin.
* Using the LogicalNameMapping backend also allows to select individual device
* process variables to be connected to the \c ServerHistory.
*
*
* The following example shows how to integrate the \c ServerHistory module.
* \code
...
...
@@ -39,6 +47,10 @@
*
* ChimeraTK::ControlSystemModule cs;
*
* ChimeraTK::DeviceModule dev{this, "Dummy"};
*
* ChimeraTK::PeriodicTrigger trigger{this, "Trigger", "Trigger used for other modules"};
*
*
* TestModule test{ this, "test", "" };
* ...
...
...
@@ -46,9 +58,14 @@
*
*
* void myAPP::defineConnctions(){
* // connect a module with variables that are updated by the module, which
* // triggers an update of the history buffer
* history.addSource(test.findTag("History"), "history" + test->getName())
* history.findTag("CS").connectTo(cs);
* // will show up in the control system as history/test/measurement
* // add a device. Updating of the history buffer is trigger external by the given trigger
* history.addSource(dev..virtualiseFromCatalog(),"device_history",trigger.tick);
*
* history.findTag("CS").connectTo(cs);
* ...
* }
*
...
...
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