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

Namespace: ASCOM.Utilities
Assembly: ASCOM.Utilities (in ASCOM.Utilities.dll) Version: 6.0.0.0 (6.2.0.2774)
Syntax
public byte[] ReceiveCountedBinary(
	int Count
)

Parameters

Count
Type: SystemInt32
The number of characters to return

Return Value

Type: Byte
Byte array of size "Count" elements
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.

This function exists in the COM component but is not documented in the help file.

See Also