Optional
Telescope.CommandString() Method
Send a string comand to the telescope, returning the response string
Syntax
Telescope.CommandString(Command [, Raw])
The method syntax has these parts:
Part |
Description |
Command (String) |
The command string to be sent to the telescope |
Raw (Boolean) |
Bypass any delimiters or framing around the command (optional, default = False) |
Return (String) |
The response data from the telescope resulting from the sent command. |
Remarks
If the optional Raw parameter is set True, the driver must not insert or append any delimiters; this must send the unmodified raw string directly to the device. Raw=True also indicates that any delimiters in the device's response string must be returned to the client. If the driver cannot support Raw=True, it must raise an error if Raw is set to True.
If you use this feature of the Telescope driver interface, your application will be dependent on the low-level protocol used by the particular scope you are connected to. Thus your application will not work with any arbitrary type of telescope.
Raises an error if there is a problem communicating with the telescope.
Copyright © 2001-2004, The ASCOM Initiative