Reference
Components
COM Port
Description
The COM Port component allows you to send and receive messages through a specified COM port.
Having specified the characteristics of the Port you need to send a trigger to the Open input. The Open output will respond with True if this
was a success. Any errors are reported through the Log output so long as you have the Log input set to true.
Data is sent as strings. Data is received as complete strings only if you specify a terminator. The terminator needs to be an ASCII code. So
for example, specify zero for null terminated strings or 16 to use carriage return.
If no terminator is specified then the component will deliver received data one byte at a time. If the Hex input is set to True then this will be a
two character hex code, otherwise it will be a single character.
You may find it useful to store this data in a String Queue for post processing.
Connectors
Inputs Type Outputs Type
Index of the COM port you
want to use. So 1 = COM1
and so on.
Int Whether the COM port
was opened
successfully.
Boolean
Baud rate. If not specified
then 9600 is used
Int Data received in from
the COM port
String
Stop bits (0 for 1, 1 for 1.5
and 2 for 2). Defaults to 1
stop bit.
Int Trigger when data has
been successfully sent
through the COMport
Trigger
Parity (0=none, 1=odd,
Int Log showing activity
String
61 of 494