コード例 #1
0
        /// <summary>
        /// Connect telescope in MaximDL
        /// </summary>
        /// <returns></returns>
        public string ConnectTelescope()
        {
            if (MaximApplicationObj == null)
            {
                MaximApplicationObj = new MaxIm.Application();
            }
            try
            {
                MaximApplicationObj.TelescopeConnected = true;
                Logging.AddLog("MaximDL telescope connected", LogLevel.Activity);
                return("MaximDL telescope connected");
            }
            catch (Exception ex)
            {
                MaximLogError("MaximDL telescope connection failed", ex, LogLevel.Important);

                return("MaximDL telescope connection failed ");
            }
        }
コード例 #2
0
        /// <summary>
        /// Connect focuser in MaximDL
        /// </summary>
        /// <returns></returns>
        public string ConnectFocuser()
        {
            if (MaximApplicationObj == null)
            {
                MaximApplicationObj = new MaxIm.Application();
            }
            try
            {
                MaximApplicationObj.FocuserConnected = true;
                Logging.AddLog("Focuser in MaximDL connected", LogLevel.Activity);

                return("Focuser in MaximDL connected");
            }
            catch (Exception ex)
            {
                MaximLogError("MaximDL focuser connection failed", ex, LogLevel.Important);

                return("MaximDL focuser connection failed");
            }
        }
コード例 #3
0
 public void Init()
 {
     CCDCamera           = new MaxIm.CCDCamera();
     MaximApplicationObj = new MaxIm.Application();
 }