/// <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 "); } }
/// <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"); } }
public void Init() { CCDCamera = new MaxIm.CCDCamera(); MaximApplicationObj = new MaxIm.Application(); }