get_serial_param🔗
Short description🔗
get_serial_param — Get the parameters of a serial device.
Signature🔗
get_serial_param( serial SerialHandle, out integer BaudRate, out integer DataBits, out string FlowControl, out string Parity, out integer StopBits, out integer TotalTimeOut, out integer InterCharTimeOut )
Description🔗
get_serial_param returns the current parameter settings of
the serial device passed in SerialHandle. For a
description of the parameters of a serial device, see
set_serial_param.
Execution information🔗
Execution information
-
Multithreading type: reentrant (runs in parallel with non-exclusive operators).
-
Multithreading scope: global (may be called from any thread).
-
Processed without parallelization.
This operator modifies the state of the following input parameter:
During execution of this operator, access to the value of this parameter must be synchronized if it is used across multiple threads.
Parameters🔗
SerialHandle (input_control, state is modified) serial → (handle)
Serial interface handle.
BaudRate (output_control) integer → (integer)
Speed of the serial interface.
DataBits (output_control) integer → (integer)
Number of data bits of the serial interface.
FlowControl (output_control) string → (string)
Type of flow control of the serial interface.
Parity (output_control) string → (string)
Parity of the serial interface.
StopBits (output_control) integer → (integer)
Number of stop bits of the serial interface.
TotalTimeOut (output_control) integer → (integer)
Total timeout of the serial interface in ms.
InterCharTimeOut (output_control) integer → (integer)
Inter-character timeout of the serial interface in ms.
Result🔗
If the parameters are correct and the parameters of the device could
be read, the operator get_serial_param returns the value
2 (H_MSG_TRUE). Otherwise an exception is raised.
Combinations with other operators🔗
Combinations
Possible predecessors
Possible successors
See also
Module🔗
Foundation