Click or drag to resize
SerialReceiveCounted Method
Receive exactly the given number of characters from the ASCOM serial port and return as a string

Namespace: ASCOM.Utilities
Assembly: ASCOM.Utilities (in ASCOM.Utilities.dll) Version: 6.0.0.0 (6.3.0.2839)
Syntax
public string ReceiveCounted(
	int Count
)

Parameters

Count
Type: SystemInt32
The number of characters to return

Return Value

Type: String
String of length "Count" characters
Exceptions
ExceptionCondition
TimeoutExceptionThrown when a receive timeout occurs.
SerialPortInUseExceptionThrown when unable to acquire the serial port
NotConnectedExceptionThrown when this command is used before setting Connect = True
Remarks
If a timeout occurs a TimeoutException is raised.
See Also