software
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| software [2025/11/21 15:56] – holtz | software [2026/05/21 14:17] (current) – 24.4.246.2 | ||
|---|---|---|---|
| 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, | 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, | ||
| - | To access the command set: | + | To start an ipython session and access the command set: |
| < | < | ||
| - | from aposong | + | aposong |
| </ | </ | ||
| Line 36: | Line 36: | ||
| ===== Robotic software ===== | ===== Robotic software ===== | ||
| - | Alternatively, | + | Alternatively, |
| - | For SONG operation, robotic operations | + | For SONG operation, robotic operations |
| + | target and the observing sequence. As the request is started, completed, or aborted, the status | ||
| + | communicated back through the obs_reqeust_status_4 table in db_apo. Other 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 | + | Two other processes also need to be running on song1m: |
| - status | - status | ||
| - | - 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 147: | Line 151: | ||
| Run ASCOM remote for QHY interface and Esatto focuser interface. | Run ASCOM remote for QHY interface and Esatto focuser interface. | ||
| - | Run Alpyca server for thermocouple interface | + | A desktop icon has been set up to start the Alpyca server for the thermocouple interface. This just starts |
| < | < | ||
| cd APOalpyca/ | cd APOalpyca/ | ||
| Line 154: | Line 158: | ||
| Since the QHY power is controlled by the thermocouple interface, the ASCOM remote interface won't connect until this is run: it will prompt you to connect the ASCOM device within 10 seconds. | Since the QHY power is controlled by the thermocouple interface, the ASCOM remote interface won't connect until this is run: it will prompt you to connect the ASCOM device within 10 seconds. | ||
| + | |||
| + | The system should then be ready for remote usage. | ||
| + | |||
| + | The two programs (ASCOM remote and Alpyca server) have been put into Startup folder so they should start by themselves if the computer is restarted (may take a minute or two). | ||
| + | |||
| ===== dome1m ===== | ===== dome1m ===== | ||
| Line 181: | 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: | ||
| < | < | ||
| - | cd APOalpyca/device | + | /home/ocs/APOalpyca/bin/dome_app |
| - | python | + | |
| </ | </ | ||
| + | |||
| + | 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. | ||
| Line 197: | Line 208: | ||
| * git for Windows | * git for Windows | ||
| - | Modify timezone, location, display setting (for remote VNC), firewall as needed (for ASCOM Remote and TigerVNC), and power settings (don't let computer go to sleep). | + | Modify timezone, location, display setting (for remote VNC), firewall as needed (for ASCOM Remote and TigerVNC), and power settings (don't let computer go to sleep). In device manager, turn off Power Managment for all USB devices; disable USB selective suspend settings in Control Panel. |
software.1763740577.txt.gz · Last modified: by holtz
