Diff: ScriptContext

Search SINQ Wiki:
SINQ LIN

SINQ Wiki
- Main Page
- Search SINQ Wiki
- Sample Environment
- Probenumg. Intern
- Troubleshooting SICS

This Page
- Page Info
- Printer Friendly

Referenced by
NewFeaturesInSICS

Wiki Info
- Unused pages
- Undefined pages
- RecentChanges
- Page Index
- System Info
- JSPWiki Docu
- SandBox
- OneMinuteWiki
- Create a New Page




JSPWiki v2.0.52


Difference between version 16 and version 12:
Lines 5-9 were replaced by lines 5-7
- of configuration and action scripts.
- The action scripts are called from the ScriptContext system
- with in a certain context: a sics hipadaba node and a
- controller object. The access to the context is implemented
- with the {{sct}} command.
+ of initialization and action scripts. The action scripts
+ are called from the ScriptContext system within a certain
+ context: a sics hipadaba node and a controller object.
Line 11 was replaced by line 9
- !Initialization Script
+ !Tutorial
Lines 13-14 were replaced by line 11
- The scripts should be placed in a
- file with a path {{~/sea/tcl/drivers/<driver-name>.tcl}}
+ * [A simple driver example]
Lines 16-18 were replaced by line 13
- If different drivers share common code, the common code may
- be placed in {{~/sea/tcl/common/}}. The individual drivers
- may then contain only an appropriate {{source}} command.
+ !Reference
Lines 20-21 were replaced by lines 15-16
- The initialization script must have the name
- {{stdConfig::<driver-name>}}.
+ * [initialization commands|StdSctInitCmds]
+ * [standard action scripts]
Removed line 23
- ''Example of an initialization script''
Removed lines 25-26
- In this example no action scripts have to be defined,
- only scripts from stdsct.tcl are used.
Lines 28-45 were replaced by line 20
- {{[controller|SeaController] std sendterminator=\r timeout=5
- \\[controllerDesc|SeaControllerDesc] "LakeShore 336 controller"
- \\prop [startcmd|SeaStdProp] "*IDN?"
- \\
- \\[obj|SeaObj] LS336 -float rd
- \\prop [readcmd|SeaStdProp] "KRDG?A"
- \\prop [readfmt|SeaStdProp] "%g"
- \\[kids|SeaKids] "LS336 settings" {
- \\ [node|SeaNode] set -float wr
- \\ prop [readcmd|SeaStdProp] "SETP?1"
- \\ prop [readfmt|SeaStdProp] "%g"
- \\ prop [writecmd|SeaStdProp] "SETP 1,%g"
- }
- }}
-
- The first command to be called is {{[controller|SeaController]}}:
- As terminator for commands CR is used, and a timeout of 5 sec is
- specified.
+ ----
At line 46 added 1 line.
+ to be done
At line 47 added 3 lines.
+ If different drivers share common code, the common code may
+ be placed in {{~/sea/tcl/common/}}. The individual drivers
+ may then contain only an appropriate {{source}} command.

Back to ScriptContext, or to the Page History.