This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
information_for_astronomers:user_guide:advancedscripting [2014/08/05 15:20] bwinkel |
information_for_astronomers:user_guide:advancedscripting [2014/11/20 23:50] (current) bwinkel |
||
---|---|---|---|
Line 52: | Line 52: | ||
</code> | </code> | ||
''QPosition 1'' means, the focus offset will be put at the top of the queue, while ''QPosition 0'' puts it to the current position (the latter being more useful in a script). Note, that one has to use a (dummy) source and catalog in the script. | ''QPosition 1'' means, the focus offset will be put at the top of the queue, while ''QPosition 0'' puts it to the current position (the latter being more useful in a script). Note, that one has to use a (dummy) source and catalog in the script. | ||
+ | |||
+ | === Configuring devices === | ||
+ | Some devices can be configured via scripts, e.g., the current receiver (and version) can be changed, MultiFiBa and Filterbox can be configured: | ||
+ | |||
+ | <code> | ||
+ | # Receiver commands | ||
+ | FE: P50mm; VERn 2; Frequency 6.0 | ||
+ | FE: S110mm; VERn 1; Frequency 2.6 | ||
+ | |||
+ | # MultiFiBa | ||
+ | MF:S99128 | ||
+ | MF:A03@100 | ||
+ | </code> | ||
=== Recursive use of source names === | === Recursive use of source names === | ||
Line 71: | Line 84: | ||
</code> | </code> | ||
- | Now one can call ''@masterscript:W3MAIN'' from any form, and it will correctly replace the sources. If it is called without source name, ObsInp will use the sources it finds in the root scripts (it doesn't work, if the masterscript still contains source names). | + | Now one can call ''@masterscript:W3MAIN'' from any form, and it will correctly replace the sources. If it is called without source name, ObsInp will use the sources it finds in the root scripts (it doesn't work, if the masterscript still contains source names). **Warning: at the moment, recursive scripting is buggy (or rather has unintended behavior).** |