Zaber Launcher Tutorials
Zaber Motion Library
Sample Projects
Virtual DeviceDropdown icon
About3D Viewer
AccountDropdown icon
Sign InSign Up
Zaber Motion LibraryGetting Started
How-to Guides
Communication
Controlling multiple devicesFinding the right serial port nameImproving performance of X-USBDC (FTDI)Interaction with Zaber LauncherTCP/IP (network) communication
Library Features
Arbitrary unit conversionsError handlingEventsG-CodeNon-blocking (simultaneous) axis movementSaving and loading stateSending arbitrary commands
Device Features
Device I/OLockstepOscilloscopePosition Velocity Time (PVT)PVT Sequence GenerationSettingsStreamed movementTriggersWarning flags
Product-Specific APIs
MicroscopeProcess controllerVirtual devices
Advanced
Building a Standalone Application with MATLAB CompilerBuilding the C++ Library from Source CodeCustom transportsDevice databaseLoggingMATLAB Migration GuidePackaging Your Program with PyinstallerThread safety
API ReferenceSupportBinary Protocol (Legacy)
© 2026 Zaber Technologies Inc.

Finding the right serial port name

To communicate with a device, you first need to open the serial port that it's connected to. Before that, you need to know the name of the serial port to use. Select your operating system to find instructions for determining the serial port name:

  1. Open Windows Device Manager.
  2. Find "Ports (COM & LPT)" in the list.
  3. Expand "Ports (COM & LPT)" to see the names of all serial ports.

The title of your serial port depends on the way you connect the device to the computer:

Type of connection Example title
Onboard serial port of the computer Communications Port (COM3)
USB to Serial adaptor, such as Zaber's X-USBDC connector USB Serial Port (COM3)
Direct USB connection on a standalone controller X-MCB2 (COM3)

In any case, the port name is the text in brackets (i.e. COM3 in the previous examples).

If there are multiple ports that look like they may be valid, you may need to try them to see which connection works.

See a video of how to find the port name.

Your browser does not support the video tag.

Enter the following command in a terminal:

ls /dev | grep -E 'ttyUSB|ttyACM'
# Example output:
# ttyUSB0

If you are using USB to connect your devices, the output will likely be ttyUSB0. The port name is the output with the directory included: /dev/ttyUSB0.

Enter the following command in a terminal:

ls /dev/tty.*
# Example output:
# tty.usbserial-A4017DXH

If you are using USB to connect your devices, the output will look something like tty.usbserial-A4017DXH. The port name is the output with the directory included: /dev/tty.usbserial-A4017DXH.

Example Code

We have a Python COM Port Scan example that shows how to programmatically check all serial ports for Zaber devices.