Main Page | Data Structures | File List | Data Fields | Globals

ccdtemp.c File Reference

AzCam Server CCD Temperature Control Functions. More...

#include "azcam.h"

Functions

int GetTemp (azcam_t *cam, char *reply)
 Get the Detector and Dewar temperatures.
int SetTemp (azcam_t *cam, float temp, char *reply)
 Set the CCD temperature set point.
int SetTempCal (azcam_t *cam, int diode, int detector, int dewar, char *reply)
 Set the calibration curves used for each temperature sensor.


Detailed Description

AzCam Server CCD Temperature Control Functions.

The following are a suite of interface functions that provide access to all of the AzCam server temperature control commands.

All routines call the communication layer routines in iosubs.c to take care of common handling of timeout, errors, and reply processing.

All of the server temperature control commands documented in Section 10 of the AzCam Programmers Reference Manual have been implemented except the following:

  ReadTemperature - GetTemp fulfilled the same basic function
  
SetTemperature has been shortened to SetTemp to match the pattern set by GetTemp and SetTempCal.

Author:
R. Pogge, OSU Astronomy Dept. (pogge@astronomy.ohio-state.edu)
Date:
2005 May 17

Function Documentation

int GetTemp azcam_t cam,
char *  reply
 

Get the Detector and Dewar temperatures.

Parameters:
cam pointer to an azcam struct with the server parameters
reply string to contain any reply text
Returns:
0 if successful, -1 on errors, with error text in reply. Temperature values are in azcam::CCDTemp and azcam::DewarTemp.
Queries the AzCam server and readout out the detector and dewar temperatures in degrees C, storing the results in the azcam::CCDTemp and azcam::DewarTemp data members.

See also:
SetTemp(), SetTempCal()

int SetTemp azcam_t cam,
float  temp,
char *  reply
 

Set the CCD temperature set point.

Parameters:
cam pointer to an azcam struct with the server parameters
temp CCD detector set point in degrees Celsius
reply string to contain any reply text
Returns:
0 if successful, -1 on errors, with error text in reply
Sets the target detector temperature setpoint in degrees C. Temperatures may be given to the nearest 0.1C.

The new setpoint temperature is stored in azcam::SetPoint data member for use by the application.

SetTemp implements the SetTemperature server command. The name was shortened to match the syntax of the related GetTemp and SetTempCal server commands.

See also:
GetTemp(), SetTempCal()

int SetTempCal azcam_t cam,
int  diode,
int  detector,
int  dewar,
char *  reply
 

Set the calibration curves used for each temperature sensor.

Parameters:
cam pointer to an azcam struct with the server parameters
diode sensor type of the diode
detector sensor type of the detector temperature sensor
dewar sensor type of the dewar temperature
reply string to contain any reply text
Returns:
0 if successful, -1 on errors, with error text in reply
Sets the calibration curves to be used by each of the temperature sensors monitored by the AzCam server. There are three types of temperature calibration curves available, depending on the type of sensor used:
     DT670 - DT670 diode
     AD590 - AD590 sensor
     N914 - 1N914 diode 
  
Note that there is an oddity about C in that parameters defined as "macros" with #define statements apparently cannot begin with numbers, which is why for the 1N914 diode we use N914 not 1N914 as the value passed to the subroutine. Go figure.

See also:
GetTemp(), SetTemp()


Generated on Tue May 24 13:55:31 2005 for AzCam CCD Camera Client API by  doxygen 1.4.2