--- title: "system.serial.write" description: "Write a String to a serial port using the platforms default character encoding." --- # system.serial.write > Write a String to a serial port using the platforms default character encoding. This function is used in **Python Scripting**. ## Description ## Client Permission Restrictions This scripting function has no [Client Permission](projects\project-properties\project-properties.md#client---permissions) restrictions. ## Syntax `system.serial.write(port, toWrite)` ### Parameters |Type|Parameter|Description| |--|--|--| |String |`port` | The previously configured serial port to use.| |String |`toWrite` | The String to write.| ### Returns Nothing ### Scope All ## Code Examples ```python title="Example #1" system.serial.write("COM1", "my string") ```