Commit adfaeed5 authored by Damien Naudet's avatar Damien Naudet
Browse files

Update config_wago.md

parent 0067c6ed
......@@ -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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment