Component: SerialPort ( Comms): Difference between revisions
Appearance
m Text replacement - "class="wikitable" style="width:60%; background-color:#FFFFFF;"" to "class="mtx-class-macrotable wikitable"" |
m Text replacement - "width="10%" align="center" style="background-color:#D8C9D8;" align="center"" to "width="10%" align="center" class="mtx-class-macrohead"" |
||
| Line 32: | Line 32: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Close''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Close''' | ||
|- | |- | ||
| Line 46: | Line 46: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetProductId''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetProductId''' | ||
|- | |- | ||
| Line 60: | Line 60: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetVendorId''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetVendorId''' | ||
|- | |- | ||
| Line 74: | Line 74: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Open''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Open''' | ||
|- | |- | ||
| Line 88: | Line 88: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReceiveString''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReceiveString''' | ||
|- | |- | ||
| Line 112: | Line 112: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''RequestPort''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''RequestPort''' | ||
|- | |- | ||
| Line 126: | Line 126: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SendString''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SendString''' | ||
|- | |- | ||
Revision as of 14:17, 13 July 2026
| Author | MatrixTSL |
| Version | 0.1 |
| Category | Comms |
SerialPort component
Allows connection to a serial port e.g. a standard serial COM port from the browser.
Detailed description
No detailed description exists yet for this component
Examples
Simple Data
Example program showing how to use communicate to a standard serial COM port.
Macro reference
Close
| Close | |
| Closes the serial port | |
| Return | |
GetProductId
| GetProductId | |
| Returns the productId of the selected USB COM port | |
| Return | |
GetVendorId
| GetVendorId | |
| Returns the vendortId of the selected USB COM port | |
| Return | |
Open
| Open | |
| Attempts to open a serial port that has already been selected using RequestPort Returns true if port is successfully opened | |
| Return | |
ReceiveString
| ReceiveString | |
| Receives a string from the serial port | |
| Timeout | |
| Time (in ms) to wait for data | |
| NumChars | |
| Number of characters to try to receive | |
| Return | |
RequestPort
SendString
| SendString | |
| Sends a text string through an open serial port | |
| sText | |
| Return | |
Property reference
Component Source Code
Please click here to download the component source project: FC_Comp_Source_WEBEXP_SerialPort.fcsx
Please click here to view the component source code (Beta): FC_Comp_Source_WEBEXP_SerialPort.fcsx