LBTO AzCam Server Software Notes

This is the beginning of a general page for details about LBTO's use of the AzCam software.
There is a CAN document with some overview info: LBTO AzCam Configuration and Checkout

AzCam Troubleshooting

  • where are the machines, KVMs, PDUs, how to connect : Commissioning/AzCamServer
  • how to run GCS command line utilities for testing: Commissioning/RunningGCS
  • Pepsi notes: Commissioning/PepsiAzCamNotes
  • logging can be enabled by clicking the shortcut on the azcamserver machine for Logging, it writes separate log files for each of the 8 azcamserver processes running
  • event 6006 in the event log can be searched for to find shutdown, and 12 from Kernel-General is an "OS is starting" event -- these help to see when a Windows machine was rebooted

Commands to use directly in an AzCamServer window (not AzCamConsole), type:
exposure.GuideMode=0
exposure.Expose()

Note: Make sure after your test you do a exposure.GuideMode=1 as exposure.GuideMode=0 turns of the guider.

will get a bias (0 second) image, or
exposure.Expose(2.2, 'object') 

will get a 2.2 second exposure. You do not need to worry about shutter commands since there are no shutter parameters for the LBT guiders.
If you don't include the object it resets the exposure time to 1.0 seconds.

NOTE that the Expose command on the azcamserver takes seconds, but the gcsclient command for readGuideCam with the -e expects milliseconds.

Typing help(exposure.Expose) should display the code comments and arguments.

To get several images:
exposure.Sequence()

will do this directly. So

exposure.Sequence(3)

will take 3 images of the same type as last setup by exposure.Expose()

More notes from Mike Lesser:
You can type just controller.Reset() to only reset the camera. It should respond OK.
Try controller.conserver.Test() to see if you are communicating from AzCamServer to the ControllerServer.

> controller.conserver.Test()
Message 0: this is a controllerserver test message.
Message 1: this is a controllerserver test message.
Message 2: this is a controllerserver test message.
Message 3: this is a controllerserver test message.
Message 4: this is a controllerserver test message.
Message 5: this is a controllerserver test message.
Message 6: this is a controllerserver test message.
Message 7: this is a controllerserver test message.
Message 8: this is a controllerserver test message.
Message 9: this is a controllerserver test message.

NOTE: GCS usually sets binning to 2x2 for LUCI guide cameras. So, the images directly from AzCamServer did not have binning set. To set the binning for AGW1 the way GCS does:
focalplane.SetRoi(16,536,40,508,2,2)
controller.SetRoi() 

These values will be different for LUCI2.


OTHER COMMANDS
controller.ControllerType
             

Returns 'gen3' or 'mag' for AzCam generation 3, or Magellan

tempcon.GetTemperatures()
             

Returns the CCD and dewar temps that GCS reads.

AzCam Interfaces (to GCS)

azcamserver to GCS interface

AzCam Software Installation

Here are the step-by-step details for installing the AzCam software in our AGW environment.

There are files captured in SVN here: https://svn.lbto.org/view/azcam/trunk/
but there is more than necessary here - we'll have to clean it up so it's a nice install

AzCam Server

At LBTO, we need Python and the AzCam server software installed on azcamserver and the machines running both the server and controller:
agw3-cam, agw4-cam, agw7-cam, agw8-cam

  1. Create a directory on the machine called C:\ITLInstallFiles
  2. Copy the Python_32bit.zip file from https://svn.lbto.org/repos/azcam/trunk/ITLInstallFiles/Python_32bit.zip and unzip in C:\ITLInstallFiles
  3. Extract all the files from the zip file and execute the python-2.7.msi installation which installs into C:\Python27
  4. Execute the Install_Python32.bat file which installs 10 Python packages required for AzCam (setuptools, ipython, pyreadline, numpy, PIL, matplotlib, pyfits, astropy, PyQt, scipy)
    click through the installtion pop-ups to get each package
  5. Execute SetPythonPat.bat
  6. Copy the files from https://svn.lbto.org/repos/azcam/trunk/ITLInstallFiles/AzCam_5.1 to C:\ITLInstallFiles
    These files can also be found on the ITL site, under Advanced -> Installation.
  7. Execute the AzCamServer_5.1.msi installation
  8. Copy and unzip the file https://svn.lbto.org/repos/azcam/trunk/ITLInstallFiles/lbtguiders.zip to C:\AzCam\systems
    This file can also be found on the ITL files site
  9. Modify the C:\AzCam\systems\lbtguiders\LBTGuidersConfiguration.txt file for the machine you're on. The files should all be the same except for the server name and the StartUpFlag values. The flags represent what to start up. See the LBTGuidersConfiguration.txt: AzCam configuration file from azcamserver machine serving LUCIs and MODS as an example.

AzCam Controller Server

The Controller Server software is the PCI card driver and the Windows service for the controller. This is necessary on all the machines except azcamserver :
agw1-cam, agw2-cam, agw3-cam, agw4-cam, agw7-cam, agw8-cam, mods1-cam, and mods2-cam

  1. Create a directory on the machine called C:\ITLInstallFiles if it doesn't already exist
  2. Copy the files from https://svn.lbto.org/repos/azcam/trunk/ITLInstallFiles/AzCam_5.1 to C:\ITLInstallFiles
  3. Execute the AstroArcControllerServerInstaller_5.1.msi installation for a Leach controller installation ( agw1-cam, agw2-cam, mods1-cam, mods2-cam ) OR
    Execute the MagControllerServerInstaller_5.1.msi installation for a Magellan controller installation ( agw3-cam, agw4-cam, agw7-cam, agw8-cam )
  4. See the notes here for installing the driver: http://azcam.itl.arizona.edu/AzCam/index.html?ControllerServer.html
  5. In a CMD window running as an administrator, run
    C:\AzCam\ControllerServers\ControllerServers_5.1\MagControllerServer\MagControllerServerIinstaller\InstallControllerServerService.bat OR
    C:\AzCam\ControllerServers\ControllerServers_5.1\AstroArcControllerServer\AstroArcControllerServerInstaller\InstallControllerServerService.bat
  6. Edit the XYNTService.ini file in the xxxxControllerServerInstaller\xxxxControllerServerService directory to match the port that the AzCamServer will use to find this controller server.
    And edit the RunControllerServer.bat script in the directory above this to match the ports/boards of the ini file.
  7. Install the service by running the C:\AzCam\ControllerServers\ControllerServers_5.1\xxxxControllerServerInstaller\xxxxControllerServerInstaller\InstallControllerServerService.bat
  8. There are scripts in the xxxxControllerServerInstaller directory to run the service manually if you want to see what's going on with it: start, stop, run, install, uninstall.
    First, StopControllerServerService , then you can run manually with RunControllerServer . Then, to restart it in the background, you can use StartControllerServerService .

Simple Installation in Tucson for Testing

See notes here for testing in Tucson on AGW1 in September-2015 and AGW4 in April-2016.
I Attachment Action Size Date Who Comment
AzCamConfigfileCommands.pngpng AzCamConfigfileCommands.png manage 6 K 29 Aug 2016 - 22:54 UnknownUser Az Cam Config File commands help screenshot
AzCamControllerCommands.pngpng AzCamControllerCommands.png manage 10 K 29 Aug 2016 - 22:54 UnknownUser Az Cam Controller commands screenshot
AzCamExposureCommands.pngpng AzCamExposureCommands.png manage 28 K 29 Aug 2016 - 22:55 UnknownUser Az Cam Exposure Commands screenshots
AzCamExposureCommands1.pngpng AzCamExposureCommands1.png manage 7 K 29 Aug 2016 - 22:55 UnknownUser Az Cam Exposure Commands screenshots
LBTGuidersConfiguration.txttxt LBTGuidersConfiguration.txt manage 2 K 25 Aug 2015 - 22:42 UnknownUser Az Cam configuration file from azcamserver machine serving LUCIs and MODS
agw1-cam-BIOS-AdvancedProcessorOptions.jpgjpg agw1-cam-BIOS-AdvancedProcessorOptions.jpg manage 2 MB 24 Sep 2015 - 21:23 UnknownUser Snapshot of agw1-cam BIOS settings files
agw1-cam-BIOS-BootSettings.jpgjpg agw1-cam-BIOS-BootSettings.jpg manage 3 MB 24 Sep 2015 - 21:23 UnknownUser Snapshot of agw1-cam BIOS settings files
agw1-cam-BIOS-ControllerInfo.jpgjpg agw1-cam-BIOS-ControllerInfo.jpg manage 2 MB 24 Sep 2015 - 21:23 UnknownUser Snapshot of agw1-cam BIOS settings files
agw1-cam-BIOS-PolicyControl.jpgjpg agw1-cam-BIOS-PolicyControl.jpg manage 2 MB 24 Sep 2015 - 21:23 UnknownUser Snapshot of agw1-cam BIOS settings files
agw1-cam-BIOS2.jpgjpg agw1-cam-BIOS2.jpg manage 2 MB 24 Sep 2015 - 21:21 UnknownUser Snapshot of agw1-cam BIOS setting
Topic revision: r19 - 26 Aug 2020, JohnHill
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback