| Line 1 was replaced by line 1 |
| - !A Simple Driver Example |
| + !!A Simple Driver Example |
| Line 11 was replaced by line 11 |
| - or, if for some reason you want to give the name of the controller |
| + or, if for some reason the name of the controller has to be given |
| Lines 19-20 were replaced by lines 19-20 |
| - If no controller name is given an underscore character is prepended |
| - to the object name to set the controller name. |
| + If no controller name is given it is set to the object name |
| + prepended by an underscore character. |
| Lines 25-28 were replaced by line 25 |
| - namespace eval ls336 {} { |
| - } |
| - |
| - proc stdConfig::ls335 {} { |
| + proc stdConfig::ls336 {} { |
| At line 47 added 1 line. |
| + !Explanation, line by line |
| Line 49 was replaced by line 47 |
| - ''Explanation, line by line'' |
| + {{proc stdConfig::ls335 {} { }} |
| At line 50 added 3 lines. |
| + The initialization script must be in the namespace |
| + {{stdConfig}} |
| + |
| Lines 87-88 were replaced by lines 88-121 |
| - This is the format for converting the result to a floatin gpoint value. |
| - In this case it is a normal floating point value. For |
| + This is the format for converting the result to a floating point value. |
| + In this case it is a normal floating point value. For the format syntax |
| + see the tcl [scan|http://www.tcl.tk/man/tcl8.5/TclCmd/scan.htm] |
| + command. |
| + |
| + {{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 |
| + }}} |
| At line 89 added 5 lines. |
| + 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. |