Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Benoit Rousselle
bliss
Commits
adfaeed5
Commit
adfaeed5
authored
Mar 18, 2019
by
Damien Naudet
Browse files
Update config_wago.md
parent
0067c6ed
Changes
1
Hide whitespace changes
Inline
Side-by-side
doc/docs/config_wago.md
View file @
adfaeed5
...
...
@@ -82,34 +82,4 @@ First, you have to declare the type of board and then you can map the logical na
*
The last Card type shows how to behave in the case that there is nothing attached to the channel: you can just map with an underscore.
The key counter_names have to be organized as a comma separated list of logical names. These names should be already defined in the preceding mapping.
The key counter_gain_names associates a counter with gains when the hardware requires it (e.g.novelec electrometer with 3 different gains).
## Reading
Reading a single channel:
WAGOTEST [1]: wcid00a.get('f2ex')
Out [1]: 0
Or several at once:
WAGOTEST [2]: wcbm20g.get('f3ex', 'f4ex')
Out [2]: [0, 0]
## Writing
Writing a single value to a single channel:
WAGOTEST [3]: wcbm20g.set('f3ex', 1)
Writing several values to a single channel:
WAGOTEST [4]: wcbm20g.set('f3ex', 1, 3, 6)
Writing to several channels:
WAGOTEST [5]: wcbm20g.set('f3ex', 1, 'f2ex', 3)
Or even mixing both:
WAGOTEST [6]: wcbm20g.set('f3ex', 1, 3, 6, 'f2ex', 3)
The key counter_gain_names associates a counter with gains when the hardware requires it (e.g.novelec electrometer with 3 different gains).
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment