| Line 1 was replaced by line 1 |
| - !A Simple Driver Example |
| + !!A Simple Driver Example |
| Line 25 was replaced by line 25 |
| - proc stdConfig::ls335 {} { |
| + proc stdConfig::ls336 {} { |
| At line 44 added 1 line. |
| + !Explanation, line by line |
| Removed lines 46-47 |
| - ''Explanation, line by line'' |
| - |
| At line 93 added 35 lines. |
| + {{kids "LS336 settings" {}} |
| + |
| + We define the children of the main node. The text is the title in the |
| + SeaClient layout. |
| + |
| + {{node set -float wr}} |
| + |
| + The {{set}} node has type {{wr}}. This means |
| + that its value is written to the hardware as soon |
| + as it is changed and read back regularely (by default every 10 seconds). |
| + |
| + {{{ |
| + prop readcmd "SETP?1" |
| + prop readfmt "%g" |
| + prop writecmd "SETP 1,%g" |
| + }}} |
| + |
| + Specify the read command and format, and the |
| + write command. In the write command, %g will be |
| + replaced by the target value. |
| + |
| + !Is this all? |
| + |
| + We have not yet explained how the host and port of the connection |
| + is specified. This is done by the following command: |
| + |
| + {{{ |
| + cfgenv tem psts231.psi.ch:3006 |
| + }}} |
| + |
| + In this command we tell the system to use host {{psts231}} and |
| + port 3006 for connecting a device called tem. This information |
| + is persistent in the SeaServer of the instrument. It should not |
| + be used in any script or configuration file, as these are shared |
| + by the different instruments. |