User Tools

Site Tools


information_for_astronomers:user_guide:advancedscripting

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Last revision Both sides next revision
information_for_astronomers:user_guide:advancedscripting [2012/07/31 15:19]
127.0.0.1 external edit
information_for_astronomers:user_guide:advancedscripting [2014/10/23 13:51]
bwinkel
Line 2: Line 2:
  
 (Erstmal intern, bis alles ausgiebig getestet ist) (Erstmal intern, bis alles ausgiebig getestet ist)
 +
 +=== Working with TOPO modes ===
 +It is possible to change the TOPO modes via scripts. There are two different ways:
 +  - Use the scripts ''​@tauto'',​ ''​@tnorth'',​ or ''​@tsouth''​ to load a TOPO item into the observing queue. When ''​control''​ encounters one of these items, it will simply change the TOPO mode.
 +  - In any other script, one can use the Key ''​TopoMode <​TOPO>''​ (with one of AUTO, NORTH, SOUTH) to have ''​control''​ change the TOPO. Note, that subsequent measurements won't switch back to the previous TOPO.
 +
  
 === Mixing scripts of different type === === Mixing scripts of different type ===
Line 46: 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
 +
 +# Filterbox
 +FB:spare1
 +FB:spare2
 +# note: currently, only spare1/​spare2 setups are possible, these also set certain bandwidths at the XFFTS,
 +# so only use this if you know what you're doing!
 +</​code>​
  
 === Recursive use of source names === === Recursive use of source names ===
Line 65: Line 90:
 </​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).**
  
  
  
  
information_for_astronomers/user_guide/advancedscripting.txt ยท Last modified: 2014/11/20 23:50 by bwinkel