Have a Question?

Python and command prompt communication instructions


  1. Alicat Python and Python-driven command prompt (Windows Powershell) drivers have been developed principally by Pat Fuller at NuMat Technologies. Download the drivers from github.com: https://github.com/numat/alicat
  2. In order to run the command prompt/Powershell driver, Python will first have to be installed on the computer. Install the latest stable Python 3 release: https://www.python.org/downloads/
  3. Once Python has been installed, command the following in the command prompt: Command prompt text
  4. If the Python PIP package manager is installed and enabled, command the following instead:Command prompt text

Command Prompt (Powershell) usage

  1. Enter “alicat –help” or “alicat -h” to access a menu of possible arguments and usage information:Command prompt text
  2. If you only have one Alicat connected to your target COM port, command the port name to return data from the Alicat:Command prompt text
  3. To poll a device with unit ID A, enter the following command:Command prompt text
  4. The response from either of these commands (step 2 or 3) should look like this:Command prompt text

Python usage

Use this command to open a serial connection to an Alicat device on the specified port:

Command prompt text

If the Alicat is communicating on the specified port, it will return the same dictionary as when polled via Powershell.

Using this with Windows COM port COM1, for example, would look like this:

Command prompt text

Contact an applications engineer for support

WordPress Video Lightbox Plugin