User Tools

Site Tools


software

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
software [2025/11/21 15:58] holtzsoftware [2026/02/06 05:05] (current) 10.253.228.246
Line 18: Line 18:
 An interactive client can be run from a Python environment. APOsong provides convenience routines to connect to Alpaca devices and provide user-friendly commands to control the telescope, dome, camera etc., but you can also use all regular Python functionality, providing for a powerful environment. Within the APOsong software, interactive image display is enabled using the pyvista display tool and built-in, e.g. for the expose() command, but of course any other Python packages can be used interactively.  An interactive client can be run from a Python environment. APOsong provides convenience routines to connect to Alpaca devices and provide user-friendly commands to control the telescope, dome, camera etc., but you can also use all regular Python functionality, providing for a powerful environment. Within the APOsong software, interactive image display is enabled using the pyvista display tool and built-in, e.g. for the expose() command, but of course any other Python packages can be used interactively. 
  
-To access the command set:+To start an ipython session and access the command set:
  
 <code> <code>
-from aposong import *+aposong
 </code> </code>
  
Line 36: Line 36:
 ===== Robotic software ===== ===== Robotic software =====
  
-Alternatively, a robotic client is implemented in the robotic.py module in this APOsong repository. This makes use of the command set provided by aposong.py, but adds in functionality for opening and closing the dome at appropriate times and under appropriate conditions, and selecting targets and exposure sequences from entries in the Postgres database. +Alternatively, a robotic client is implemented in the robotic.py module in this APOsong repository. This makes use of the command set provided by aposong.py, but adds in functionality for opening and closing the dome at appropriate times and under appropriate conditions, and selecting targets and exposure sequences from entries in Postgres database on song1m.
  
-For SONG operation, robotic operations will be conducted through Postgres database syncs from Aarhus, details TBD when this is implemented ...+For SONG operation, robotic operations are conducted through Postgres database syncs from Aarhus to the song1m_db machine. Requested observations are loaded into the obs_request_4 table in db_song with information about the 
 +target and the observing sequence. As the request is startedcompleted, or aborted, the status is 
 +communicated back through the obs_reqeust_status_4 table in db_apoOther tables in db_apo communicate 
 +the state of the APO system so that the conductor can choose appropriate targets
  
 ===== song1m computer ===== ===== song1m computer =====
Line 50: Line 53:
 This should show you a list of commands (which you can see again with the commands() function), and a list of connected devices. This should show you a list of commands (which you can see again with the commands() function), and a list of connected devices.
  
-Several other processes also need to be running on song1m:+Two other processes also need to be running on song1m:
 - status  : updates status window and database with various information - status  : updates status window and database with various information
-- spectemps : queries spectrograph temperature devices and log to database 
 - guider : process that handles guiding through socket connection to main aposong process - guider : process that handles guiding through socket connection to main aposong process
 +
 +These are normally run in different tabs in a terminal on a VNC desktop.
  
 ===== pwi1m computer ===== ===== pwi1m computer =====
Line 186: Line 190:
 The Alpyca servers runs on port 5555 on dome1m. To start the Alpaca devices after a reboot: The Alpyca servers runs on port 5555 on dome1m. To start the Alpaca devices after a reboot:
 <code> <code>
-cd APOalpyca/device  +/home/ocs/APOalpyca/bin/dome_app
-python dome_app.py+
 </code> </code>
 +
 +which will kill any existing servers and start a new server. Since we have issues with the server stopping
 +working in the early afternoon, a cron job restarts the server each afternoon.
  
  
software.1763740713.txt.gz · Last modified: by holtz