C# Class ASCOM.cam8_v051.Camera

Inheritance: ICameraV2
Show file Open project: vakulenko/CAM8_software

Public Properties

Property Type Description
driverID string

Private Properties

Property Type Description
CameraConnect bool
CameraDisconnect bool
CameraGetCameraState int
CameraGetImage uint
CameraGetImageReady bool
CameraIsConnected bool
CameraSetGain bool
CameraSetOffset bool
CameraStartExposure bool
CameraStopExposure bool
CheckConnected void
RegUnregASCOM void
RegisterASCOM void
UnregisterASCOM void

Public Methods

Method Description
AbortExposure ( ) : void
Action ( string actionName, string actionParameters ) : string
Camera ( ) : System
CommandBlind ( string command, bool raw ) : void
CommandBool ( string command, bool raw ) : bool
CommandString ( string command, bool raw ) : string
Dispose ( ) : void
PulseGuide ( GuideDirections Direction, int Duretion ) : void
SetupDialog ( ) : void

Displays the Setup Dialog form. If the user clicks the OK button to dismiss the form, then the new settings are saved, otherwise the old values are reloaded. THIS IS THE ONLY PLACE WHERE SHOWING USER INTERFACE IS ALLOWED!

StartExposure ( double Duration, bool Light ) : void
StopExposure ( ) : void

Private Methods

Method Description
CameraConnect ( ) : bool
CameraDisconnect ( ) : bool
CameraGetCameraState ( ) : int
CameraGetImage ( ) : uint
CameraGetImageReady ( ) : bool
CameraIsConnected ( ) : bool
CameraSetGain ( int val ) : bool
CameraSetOffset ( int val ) : bool
CameraStartExposure ( int Bin, int StartX, int StartY, int NumX, int NumY, double Duration, bool light ) : bool
CameraStopExposure ( ) : bool
CheckConnected ( string message ) : void

Use this function to throw an exception if we aren't connected to the hardware

RegUnregASCOM ( bool bRegister ) : void

Register or unregister the driver with the ASCOM Platform. This is harmless if the driver is already registered/unregistered.

RegisterASCOM ( Type t ) : void
UnregisterASCOM ( Type t ) : void

Method Details

AbortExposure() public method

public AbortExposure ( ) : void
return void

Action() public method

public Action ( string actionName, string actionParameters ) : string
actionName string
actionParameters string
return string

Camera() public method

public Camera ( ) : System
return System

CommandBlind() public method

public CommandBlind ( string command, bool raw ) : void
command string
raw bool
return void

CommandBool() public method

public CommandBool ( string command, bool raw ) : bool
command string
raw bool
return bool

CommandString() public method

public CommandString ( string command, bool raw ) : string
command string
raw bool
return string

Dispose() public method

public Dispose ( ) : void
return void

PulseGuide() public method

public PulseGuide ( GuideDirections Direction, int Duretion ) : void
Direction GuideDirections
Duretion int
return void

SetupDialog() public method

Displays the Setup Dialog form. If the user clicks the OK button to dismiss the form, then the new settings are saved, otherwise the old values are reloaded. THIS IS THE ONLY PLACE WHERE SHOWING USER INTERFACE IS ALLOWED!
public SetupDialog ( ) : void
return void

StartExposure() public method

public StartExposure ( double Duration, bool Light ) : void
Duration double
Light bool
return void

StopExposure() public method

public StopExposure ( ) : void
return void

Property Details

driverID public static property

public static string driverID
return string